Method and device for controlling air conditioner and air conditioner

By multiplexing ultrasonic signals through the air conditioner speaker and microphone, combining the surface area comparison table and obstacle influence coefficient, human height data is calculated and reported, solving the problem of high additional equipment costs, realizing accurate height perception and personalized control of the air conditioner, and improving the user experience.

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

Patent Information

Application Number
CN202510830478.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

In the existing technology, user height detection requires additional dedicated equipment, which increases the cost of equipment purchase and installation, resulting in high costs and difficulty in achieving accurate human height perception.

Method used

The air conditioner's speakers and microphones are used to multiplex the transmission and reception of ultrasonic signals. By measuring the energy difference and distance value of the ultrasonic reflection signal, combined with the pre-stored surface area comparison table and obstacle influence coefficient, the height data of the moving human body is calculated and reported to the application layer for air conditioning control.

Benefits of technology

Without increasing additional hardware costs, it achieves accurate human height perception, improves the intelligence level and personalized control capabilities of the air conditioner, and provides a more comfortable and flexible air supply experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120627366A_ABST
    Figure CN120627366A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of air conditioner control, and discloses a method for controlling an air conditioner, which comprises the following steps of: controlling a loudspeaker to emit an ultrasonic signal for detecting the height of a moving human body so as to receive a corresponding ultrasonic reflection signal through a microphone; under the condition that the ultrasonic reflection signal shows that the moving human body exists in the room, the distance value between the moving human body and the air conditioner and the ultrasonic signal energy difference are determined; determining height data of the moving human body according to the distance value between the moving human body and the air conditioner and the ultrasonic signal energy difference; and reporting the height data of the moving human body to an application layer so as to control the air conditioner according to the height data. Thus, by multiplexing the loudspeaker and the microphone of the air conditioner voice module, the air conditioner has the function of detecting the height of the moving human body, and after the obtained data is uploaded to the application layer, the air conditioner is driven to adjust parameters, so that a more personalized control scheme is provided on the premise of keeping zero transformation cost of an existing hardware architecture. The invention further discloses a device for controlling the air conditioner and the air conditioner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of air-conditioning control, for example, to a method and device for controlling an air-conditioning, and an air-conditioning. Background Art

[0002] With the rapid development of smart home technology, air conditioners are increasingly integrating voice interaction features, allowing users to directly adjust parameters such as temperature and air speed through voice commands, significantly improving operational convenience. The widespread adoption of voice-activated air conditioners has further fueled the diverse application of sensing technologies. Currently, mainstream solutions include millimeter-wave radar, ultrasonic sensors, and Wi-Fi signal sensing, which optimize air delivery paths by capturing information such as human movement and location. However, existing sensing technologies primarily focus on basic location detection or motion recognition, and accurate perception of individual user characteristics still relies on external devices.

[0003] In related technologies, user height detection typically requires dedicated equipment independent of the air conditioner, such as a camera combined with an image algorithm or infrared sensor to measure human height data. This equipment requires the installation and configuration of a communication module, which undoubtedly increases the equipment purchase and installation costs.

[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] While related technologies can achieve height recognition to a certain extent, they require additional height detection equipment, which is costly. Therefore, how to achieve accurate human height perception without increasing the cost of additional detection equipment has become a technical problem that needs to be solved urgently.

[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, an apparatus, and an air conditioner for controlling an air conditioner, which can achieve accurate human height perception without increasing the cost of additional detection equipment.

[0009] In some embodiments, the method for controlling the air conditioner includes: controlling a speaker to emit an ultrasonic signal for detecting the height of an active human body, so as to receive a corresponding ultrasonic reflection signal through a microphone; when the ultrasonic reflection signal indicates that there is an active human body in the room, determining the distance value between the active human body and the air conditioner and the ultrasonic signal energy difference; determining the height data of the active human body based on the distance value between the active human body and the air conditioner and the ultrasonic signal energy difference; and reporting the height data of the active human body to the application layer so as to control the air conditioner according to the height data.

[0010] In some embodiments, the method for controlling an air conditioner includes: obtaining static environmental energy in the room where the air conditioner is located; and using the difference between the dynamic reflection signal energy collected when there is an active human body in the room where the air conditioner is located and the static environmental energy as the ultrasonic signal energy difference.

[0011] In some embodiments, the method for controlling the air conditioner includes: determining the surface area of ​​the active person based on the distance value between the active person and the air conditioner and the ultrasonic signal energy difference; determining the height data of the active person based on the surface area of ​​the active person and the width parameter of the active person.

[0012] In some embodiments, the method for controlling the air conditioner includes: obtaining a pre-stored human body surface area comparison table, wherein the human body surface area comparison table contains the distance values ​​of different active human bodies and the air conditioner, and the active human body surface areas corresponding to different ultrasonic signal energy differences; matching the surface area corresponding to the distance value of the active human body and the air conditioner and the ultrasonic signal energy difference in the human body surface area comparison table, and using it as the surface area of ​​the active human body.

[0013] In some embodiments, the method for controlling the air conditioner includes: obtaining a pre-stored human body surface area comparison table, the human body surface area comparison table containing the distance values ​​of different active human bodies and the air conditioner, and the active human body surface areas corresponding to different ultrasonic signal energy differences; matching the basic surface area corresponding to the distance value of the active human body and the air conditioner and the ultrasonic signal energy difference in the human body surface area comparison table; determining the obstacle influence coefficient according to the type of obstacle in the environment; adjusting the basic surface area according to the obstacle influence coefficient, so as to use the adjusted surface area as the active human body surface area.

[0014] In some embodiments, the method for controlling the air conditioner includes: obtaining the body weight index of the active person; when the body weight index of the active person falls within a preset range, directly calling a pre-stored default width value as the active person width parameter; when the body weight index of the active person is greater than the maximum value of the preset range, calculating the person width parameter based on the pre-stored width and the adjustment amplitude.

[0015] In some embodiments, the method for controlling an air conditioner includes: using the quotient of the surface area of ​​the active person and the width parameter of the active person as the height data of the active person.

[0016] In some embodiments, the device for controlling the air conditioner includes: a control module, configured to control the speaker to emit an ultrasonic signal for detecting the height of an active human body, so as to receive the corresponding ultrasonic reflection signal through a microphone; a first determination module, configured to determine the distance value between the active human body and the air conditioner and the ultrasonic signal energy difference when the ultrasonic reflection signal indicates that there is an active human body in the room; a second determination module, configured to determine the height data of the active human body based on the distance value between the active human body and the air conditioner and the ultrasonic signal energy difference; a reporting module, configured to report the height data of the active human body to the application layer so that the air conditioner can be controlled according to the height data.

[0017] In some embodiments, the apparatus for controlling an air conditioner includes: a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned method for controlling an air conditioner when running the program instructions.

[0018] In some embodiments, the air conditioner includes: an air conditioner body; and the aforementioned device for controlling the air conditioner, installed on the air conditioner body.

[0019] The method, device, and air conditioner for controlling an air conditioner provided by the embodiments of the present disclosure can achieve the following technical effects:

[0020] This solution dynamically transmits directional ultrasonic waves and simultaneously captures the reflected signals to accurately analyze the real-time distance between a person and the air conditioner, as well as the ultrasonic signal energy difference. This information is then used to calculate height data. This solution reuses the speaker and microphone of the air conditioner's voice module to enable the air conditioner to detect a person's height. This data is then uploaded to the application layer in real time, allowing the air conditioner to dynamically adjust airflow angle, temperature, and wind speed parameters. This allows for a more personalized air conditioning control solution while maintaining zero modification costs within the existing hardware architecture. This provides a new approach and direction for achieving high-precision height sensing and personalized control within the smart home industry, while maintaining limited hardware costs.

[0021] 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

[0022] 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,

[0023] Figure 1 is a schematic diagram of a method for controlling an air conditioner provided by an embodiment of the present disclosure;

[0024] Figure 2 is a schematic diagram of a method for calculating ultrasonic signal energy difference provided by an embodiment of the present disclosure;

[0025] Figure 3 is a schematic diagram of a method for determining height data of a moving person provided by an embodiment of the present disclosure;

[0026] Figure 4 is a schematic diagram of a device for controlling an air conditioner provided by an embodiment of the present disclosure;

[0027] Figure 5 is a schematic diagram of another device for controlling an air conditioner provided by an embodiment of the present disclosure;

[0028] Figure 6 It is a structural diagram of an air conditioner provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] 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.

[0030] 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.

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

[0032] 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.

[0033] 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.

[0034] 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.

[0035] 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.

[0036] In the embodiments of the present disclosure, 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, Wi-Fi, 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.

[0037] Figure 1 This is a schematic diagram of a method for controlling an air conditioner provided by an embodiment of the present disclosure; Figure 1 As shown, optionally, an embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:

[0038] S11, the air conditioning control speaker transmits an ultrasonic signal for detecting the height of a moving person, and the microphone receives a corresponding ultrasonic reflection signal.

[0039] S12, when the ultrasonic reflection signal indicates that there is a moving human body in the room, the air conditioner determines the distance between the moving human body and the air conditioner and the ultrasonic signal energy difference.

[0040] S13, the air conditioner determines the height data of the active person according to the distance between the active person and the air conditioner and the energy difference of the ultrasonic signal.

[0041] S14, the air conditioner reports the height data of the active person to the application layer so that the air conditioner can be controlled according to the height data.

[0042] In this solution, the air conditioner includes a voice module, which consists of a speaker and a microphone. Specifically, the air conditioner controls the speaker to emit an ultrasonic signal for detecting the height of a moving person, and the microphone receives the corresponding ultrasonic reflection signal. During the signal transmission phase, the air conditioner precisely controls the speaker, driving it to periodically emit ultrasonic signals of precise duration and stable frequency according to predetermined parameters such as signal frequency and power. Understandably, due to the transmission characteristics of ultrasonic waves in air, higher frequencies result in greater loss. Therefore, an ultrasonic signal in the 18kHz to 22kHz frequency range is selected. This frequency range not only avoids the transmission loss caused by excessively high frequencies, but also, because it is close to the low-frequency band, it can operate normally with minimal attenuation of the frequency response characteristics of conventional speaker devices, effectively detecting moving people at greater distances while preventing the noise impact of low-frequency bands that may be perceived by people with sensitive hearing. Optionally, the speaker power is generally selected in the 3-5W range, which can effectively meet the needs of detecting moving people within a space of 1-4 meters.

[0043] When receiving signals, the microphone is constantly on standby, focused on capturing ultrasonic signals reflected by moving bodies. When the transmitted ultrasonic signal encounters a moving body, it returns according to a specific reflection pattern. The microphone, with its highly sensitive acoustic properties, can accurately identify and receive these extremely weak reflected signals. It then quickly converts the received acoustic signal into an electrical signal and transmits it to the air conditioner for processing. In an optimized solution, to enhance reception, the microphone's placement takes into account the air conditioner's internal structural layout, ensuring it can receive the maximum possible amount of reflected signals from different directions.

[0044] This approach achieves efficient resource utilization by reusing the voice module for ultrasonic transmission and reception. Eliminating the need for dedicated ultrasonic transmission and reception hardware, the system leverages the air conditioner's existing speakers and microphones for voice interaction, reducing hardware costs and simplifying the air conditioner's internal design. Furthermore, by reusing the existing voice module's acoustic components, it can operate collaboratively with the voice interaction service, avoiding interference between functions. This significantly enhances the intelligent integration of the air conditioner product and lays a solid foundation for the subsequent implementation of more intelligent control functions based on ultrasonic sensing.

[0045] In this solution, in order to determine whether there is a human body, the microphone that controls the air conditioner will continuously receive the reflected signal and analyze it in real time. The active human body causes specific changes in the intensity and pattern of the reflected signal. In this way, by monitoring these changes, such as the periodic fluctuations in the amplitude of the reflected signal and the difference from the static environment, the set threshold and pattern recognition algorithm are used to distinguish the reflected signal of the active human body from the reflected signal of the static environment, thereby determining the presence of a human body. Furthermore, after determining that there is an active human body in the room, the air conditioner will calculate the distance between the human body and the air conditioner based on the ultrasonic reflected signal. In one example, it can rely on the propagation speed of ultrasonic waves in the air and the round-trip time delay of the reflected signal. The air conditioner accurately measures the time difference from the emission of the ultrasonic signal to the reception of the reflected signal, and then uses the formula to obtain the distance value between the active human body and the air conditioner. Specifically, the formula includes:

[0046] d=(v×Δt) / 2

[0047] Where d is the distance between the active person and the air conditioner, v is the ultrasonic velocity, and Δt is the time difference. This solution can accurately calculate the distance between the active person and the air conditioner.

[0048] At the same time, the air conditioner can measure and record the ultrasonic energy level in the static indoor environment before starting ultrasonic detection or during the silent period before detecting a moving human body. This step is completed during the initialization phase of the air conditioner. The static environmental energy includes the ultrasonic energy emitted by the air conditioner speaker and reflected by static objects in the room. It is convenient to obtain the static environmental energy by collecting the reflected signal energy over a period of time when no one is active and calculating the average value. When a moving human body is detected, the air conditioner collects the dynamic reflected signal energy in real time, which includes the ultrasonic energy reflected by the moving human body. Furthermore, the air conditioner compares the dynamic reflected signal energy with the static environmental energy and calculates the difference between the two. The difference reflects the contribution of the moving human body to the ultrasonic reflection and can be used for subsequent calculations of the surface area and height of the moving human body. This solution utilizes the characteristics of the ultrasonic reflection signal and realizes the detection and parameter calculation of moving human bodies without the need for additional hardware. It not only improves the intelligence level of the air conditioner, but also reduces hardware costs and optimizes the user experience.

[0049] Furthermore, the air conditioner can determine the height of a person using a variety of methods. In one example, the air conditioner determines the surface area of ​​the person based on the distance between the person and the air conditioner and the ultrasonic signal energy difference. Specifically, the air conditioner refers to a table of ultrasonic energy differences and surface areas of a person, previously measured through experiments and stored in the module. This table contains data on the correspondence between ultrasonic signal energy differences and surface areas of a person at different distances. By matching the currently measured distance and ultrasonic signal energy difference with the data in the table, the air conditioner can quickly find the corresponding surface area of ​​the person. Experimental data shows a positive correlation between ultrasonic signal energy differences and surface area of ​​a person: the larger the surface area, the greater the difference in reflected ultrasonic energy. Therefore, this method can more accurately determine the surface area of ​​a person. Furthermore, the air conditioner can determine the height of the person based on the surface area and the person's width parameter. The person's width parameter can be obtained based on user input or a default setting. Generally, person width is related to body mass index. The width parameter for a normal person can be set to a default value, while the width parameter for an obese person needs to be adjusted based on experimental data. During the calculation, the air conditioner divides the surface area of ​​the moving person by the body width parameter to obtain the moving person's height data. This method, based on the principle that the surface area of ​​the human body is proportional to the product of height and width, can quickly calculate height data through simple mathematical operations. In another example, a machine learning algorithm can be trained on a large amount of experimental data to establish a mapping model that can directly predict a person's height based on the distance value and the ultrasonic signal energy difference. This method can further improve the calculation accuracy, but requires more preliminary data collection and training. In another example, when the air conditioner detects a moving person in a standing position, the air conditioner can calculate the real-time distance between the person and the air conditioner using the time-of-flight method, while also combining the Doppler effect to analyze the signal energy difference ΔE between ultrasonic receivers at different orientations. Based on the principle of beamforming, the air conditioner can input the distance value and energy difference information into a three-dimensional spatial model to establish an energy attenuation distribution map of the human contour, and then calculate the approximate body surface area S using a surface integral algorithm. At this time, the body proportion parameters in the ergonomic database are introduced. For example, the typical ratio of shoulder width W to height α (α≈0.23 to 0.27) is used as the conversion coefficient, and the target height value is calculated by the formula H=S / (W×α). In another example, the air conditioner uses the Fresnel zone characteristics of ultrasound. When the height of the human body changes, the ultrasonic attenuation rate of different frequency bands will produce characteristic differences. The air conditioner can compare the energy attenuation ratio β of the 5kHz~8kHz frequency band and the 10~12kHz frequency band, and combine the distance parameter to establish a wavelength far-field diffraction model, and establish a mapping relationship between the diffraction ripple spacing and the human body height. At the same time, the adaptive Kalman filter algorithm is used to eliminate environmental reflection interference, and the recognition accuracy is improved through covariance analysis of multi-cycle measurement data.For moving people, motion trajectory tracking technology can also be combined to collect multiple sets of distance-energy difference data during lateral movement to construct a height-related spatial feature matrix. This solution, by providing several optional height data determination methods, allows the air conditioner to flexibly select the most appropriate detection method based on different environmental conditions and user needs, thereby improving the accuracy, reliability, and adaptability of height detection, better implementing intelligent control, enhancing the user experience, and meeting the application needs of diverse scenarios.

[0050] Furthermore, after the air conditioner calculates the height of a person in motion, it reports this height data to the application layer through its internal communication mechanism. Specifically, after calculating the height data, the air conditioner packages it in a specific data format and sends it to the air conditioner's main control unit via an internal communication interface (such as I2C, SPI, or UART). After receiving this data, the main control unit stores it in a specific area of ​​its memory so that applications can access and process it in real time. Accordingly, at the application layer, the application can execute control logic based on the received height data to achieve intelligent air conditioner control. For example, for shorter children or adults, the air conditioner can automatically adjust the air supply angle and speed to avoid directing cold air onto the person, thereby providing a more comfortable user experience. For taller users, the air conditioner can appropriately increase the air supply height to ensure that the cold air reaches the main body parts, improving the cooling effect. Furthermore, the air conditioner can combine other sensor data (such as temperature and humidity) to optimize the overall air supply strategy based on the height data, achieving more personalized comfort control. Understandably, to implement this functionality, the air conditioner application needs to be pre-configured with the corresponding control logic. This involves defining airflow angle and wind speed parameters for different height ranges and setting corresponding trigger conditions. When new height data is reported to the application layer, the application reads this data in real time and compares it with pre-set parameters to determine whether the air conditioner's operating status needs to be adjusted. If adjustment is required, the application sends corresponding control signals to the air conditioner's actuators (such as the air supply motor and damper) to achieve precise air supply control. For example, the application can define the following control logic: when the height is detected to be less than 140 cm, the air supply angle is adjusted to a downward tilt of 15 degrees and the wind speed is set to low speed; when the height is between 140 cm and 180 cm, the default air supply angle and medium wind speed are maintained; when the height is over 180 cm, the air supply angle is adjusted to an upward tilt of 10 degrees and the wind speed is set to high speed. In this way, the air conditioner can provide a personalized air supply experience based on different user heights, improving user comfort and satisfaction.

[0051] In an optimized solution, the air conditioner can also integrate height data with other intelligent functions, such as interacting with mobile applications. Users can use the mobile application to view the height data of the current occupants in the room in real time and manually adjust the air conditioner's operating parameters as needed. This not only increases user engagement but also makes air conditioner control more flexible and convenient. By reporting the height data of active people to the application layer and performing corresponding air conditioner control, more intelligent and personalized air supply control can be achieved, significantly improving the user experience.

[0052] The method for controlling an air conditioner, provided by the disclosed embodiments, dynamically transmits directional ultrasonic waves and simultaneously captures the reflected signals to accurately analyze the real-time distance between a person and the air conditioner, as well as the ultrasonic signal energy difference. Height data is then calculated based on this distance and ultrasonic signal energy difference. This solution, by reusing the speaker and microphone of the air conditioner's voice module, enables the air conditioner to detect the height of a person. By uploading the resulting data to the application layer in real time, the air conditioner can dynamically adjust the air supply angle, temperature, and wind speed parameters. This provides a more personalized air conditioning control solution while maintaining zero modification costs for the existing hardware architecture. This provides a new approach and direction for achieving high-precision height sensing and personalized control within the smart home industry, while maintaining limited hardware costs.

[0053] Figure 2 is a schematic diagram of a method for calculating ultrasonic signal energy difference provided by an embodiment of the present disclosure; Figure 2 As shown, optionally, the ultrasonic signal energy difference is calculated in the following manner, including:

[0054] S21, the air conditioner obtains static environmental energy in the room where the air conditioner is located.

[0055] S22, the air conditioner uses the difference between the dynamic reflection signal energy collected when there is a moving human body in the room where the air conditioner is located and the static environment energy as the ultrasonic signal energy difference.

[0056] In this solution, the air conditioner uses a microphone to collect ultrasonic reflection signals from the indoor environment during the initial startup phase or during a silent period before detecting human activity. During this period, the primary reflection signals in the indoor environment come from static objects such as walls and furniture. The air conditioner analyzes the collected signals, calculates their energy value, and uses this as the static environment energy. This process is typically performed when no one is active to ensure that the collected signals represent only the reflection characteristics of the static environment.

[0057] When the air conditioner detects the presence of a moving person in the room, it uses a microphone to collect the energy of the dynamic reflected signal in real time. As you can understand, because the human body reflects ultrasound differently than static objects, the presence of a moving person causes a change in the energy of the reflected signal. Therefore, the air conditioner analyzes the dynamic reflected signal in real time and calculates its energy value. It then compares the dynamic reflected signal energy with the previously acquired static ambient energy and calculates the difference, ΔE. This difference is used as the ultrasonic signal energy difference, reflecting the impact of the moving person on ultrasonic reflection.

[0058] This solution, using the aforementioned method to calculate ultrasonic signal energy differences, can effectively extract the reflection signal characteristics of moving people in complex indoor environments. This method utilizes the differences in reflection signals between static and dynamic environments and requires no additional hardware, relying solely on the air conditioner's built-in voice module. This not only reduces the system's hardware cost but also improves its integration and reliability. Furthermore, by precisely calculating the ultrasonic signal energy difference, the air conditioner can more accurately sense the presence and location of moving people, providing a reliable data foundation for further intelligent control, thereby enhancing the user experience.

[0059] In one optimized solution, the air conditioner employs a variety of techniques to improve calculation accuracy. For example, the signal processing module may apply filtering algorithms to remove noise interference, ensuring a purer signal. Furthermore, the air conditioner may utilize an array of multiple microphones to receive reflected signals, using beamforming technology to improve the signal's directionality and resolution, thereby more accurately capturing signals reflected from moving bodies. This solution effectively removes noise interference and improves signal directionality and resolution, significantly improving the air conditioner's accuracy in capturing and calculating signals reflected from moving bodies.

[0060] Figure 3 This is a schematic diagram of a method for determining the height data of a moving person provided by an embodiment of the present disclosure; Figure 3 As shown, optionally, in S13, the air conditioner determines the height data of the active person based on the distance between the active person and the air conditioner and the energy difference of the ultrasonic signal, including:

[0061] S31, the air conditioner determines the surface area of ​​the moving person according to the distance between the moving person and the air conditioner and the energy difference of the ultrasonic signal.

[0062] S32: The air conditioner determines the height data of the active person according to the surface area and width parameters of the active person.

[0063] In this solution, the air conditioner can determine the surface area of ​​an active person using various methods. In one method, the air conditioner pre-generates a human surface area comparison table, which details the distance values ​​of different active people from the air conditioner and the corresponding surface areas of different ultrasonic signal energy differences. Once the air conditioner obtains the currently measured distance value and ultrasonic signal energy difference, it searches this comparison table to find the entry that most closely matches the current measurement data and uses the corresponding surface area as the surface area of ​​the current active person. This method leverages the correspondence established through extensive experimental data to quickly and accurately determine the human surface area without requiring complex real-time calculations, thereby improving the system's response speed and accuracy. In another method, the air conditioner first obtains a pre-stored human surface area comparison table. However, after determining the baseline surface area, the air conditioner further considers the impact of environmental obstacle types on the ultrasonic signal. Specifically, based on user input or pre-set environmental information, the air conditioner determines the type of obstacle in the current environment (e.g., whether there are curtains, wall coverings, etc.) and determines the corresponding obstacle impact coefficient based on the obstacle type. The air conditioner then uses this coefficient to adjust the base surface area, using the following formula: Adjusted surface area = base surface area × (1 ± obstacle influence coefficient). This method more accurately reflects the actual environment's interference with the ultrasonic signal, thereby improving the accuracy of surface area measurement, especially in complex and changing indoor environments.

[0064] Furthermore, the air conditioner can determine the height data of the active person based on the surface area of ​​the active person and the width parameter of the active person. The body width parameter is usually related to the fatness of the person and can be determined by the body mass index (BMI) input by the user. The corresponding relationship between body width and body mass index is preset inside the air conditioner, and the corresponding body width parameter is obtained according to the user's BMI value. Subsequently, the height data of the active person is calculated using the formula: height = surface area / body width. This method is based on the proportional relationship between the surface area of ​​the human body and the height and width. Through simple mathematical operations, the height data can be quickly obtained, realizing the convenience and efficiency of height measurement.

[0065] This solution not only improves the accuracy and adaptability of measurements, but also provides reliable data support for subsequent personalized air-conditioning control, enabling the air-conditioning to be intelligently adjusted according to human height, thereby improving user comfort and usage experience.

[0066] Optionally, in S31, the air conditioner determines the surface area of ​​the active person based on the distance between the active person and the air conditioner and the ultrasonic signal energy difference, including:

[0067] The air conditioner obtains a pre-stored human body surface area comparison table, which contains distance values ​​of different active human bodies from the air conditioner and active human body surface areas corresponding to different ultrasonic signal energy differences.

[0068] The air conditioner matches the surface area corresponding to the distance between the active human body and the air conditioner and the ultrasonic signal energy difference in the human body surface area comparison table, and uses it as the surface area of ​​the active human body.

[0069] In this solution, the air conditioner can establish a multi-dimensional parameter mapping table through experimental calibration. For people of different heights (below 140cm, 140-180cm, and above 180cm) and distance parameters in the range of 0.5 meters to 3 meters (step length 0.5 meters), multiple groups of test scenes are arranged in a standard experimental environment. The ultrasonic transmitter of the voice module sends signals in the 18kHz-22kHz frequency band, and the microphone records the reflected energy difference ΔE in real time, and simultaneously uses a three-dimensional scanner to calibrate the actual surface area data of the human body, and finally generates a comparison table containing 18 types of distances, ultrasonic signal energy differences, and human body surface areas. Here, the human body surface area comparison table contains the distance values ​​of different active human bodies and air conditioners, and the surface areas of active human bodies corresponding to different ultrasonic signal energy differences.

[0070] Furthermore, when the air conditioner detects the presence of a moving person through ultrasonic reflection signals and obtains the distance between the current moving person and the air conditioner, as well as the ultrasonic signal energy difference, it enters the surface area matching process. The air conditioner uses these two parameters as query conditions and matches them against a human surface area comparison table. The comparison table is typically stored in a structured manner, such as using a dictionary or hash table, to facilitate fast search. The air conditioner finds the entry that most closely matches the current distance value and energy difference and uses the surface area recorded in that entry as the surface area of ​​the current moving person. If the current measurement value does not exactly match the pre-stored value in the comparison table, the air conditioner may use an interpolation algorithm to calculate an approximate surface area value to improve matching accuracy.

[0071] This solution uses a pre-stored human surface area comparison table to quickly and accurately determine the surface area of ​​an active person without the need for complex real-time calculations. This significantly improves the system's response speed and operational efficiency. Furthermore, the comparison table is based on extensive experimental data, covering a variety of practical application scenarios, ensuring the accuracy and reliability of the measurement results. Furthermore, the interpolation algorithm used in the matching process effectively handles subtle changes in the actual environment, further enhancing the adaptability and robustness of the air conditioner. This solution not only improves the accuracy of the air conditioner's surface area measurement of active people but also provides a solid data foundation for subsequent height calculation and intelligent control, enhancing the air conditioner's intelligence and user experience.

[0072] Optionally, in S31, the air conditioner determines the surface area of ​​the active person based on the distance between the active person and the air conditioner and the ultrasonic signal energy difference, including:

[0073] The air conditioner obtains a pre-stored human body surface area comparison table, which contains distance values ​​of different active human bodies from the air conditioner and active human body surface areas corresponding to different ultrasonic signal energy differences.

[0074] The air conditioner matches the basic surface area corresponding to the distance value between the active human body and the air conditioner and the ultrasonic signal energy difference in the human body surface area comparison table.

[0075] The air conditioner determines the obstacle impact coefficient based on the type of obstacles in the environment.

[0076] The air conditioner adjusts the basic surface area according to the obstacle influence coefficient to use the adjusted surface area as the active human body surface area.

[0077] In this solution, the air conditioner can access a pre-stored human surface area comparison table. This table, generated based on extensive experimental data, covers the surface areas corresponding to different distances between the air conditioner and the person in different activities, as well as different ultrasonic signal energy differences. The experimental environment simulates a variety of home scenarios, including different types of obstacles and materials, to ensure the data's broad applicability.

[0078] Optionally, the air conditioner can match the basic surface area corresponding to the distance value between the active human body and the air conditioner and the ultrasonic signal energy difference in the human body surface area comparison table. Specifically, the air conditioner uses the measured distance value and energy difference as query conditions to search in the comparison table. The comparison table is stored in a structured manner, such as using a dictionary or hash table to facilitate fast search. The air conditioner will find the entry closest to the current distance value and energy difference, and use the surface area recorded in the entry as the basic surface area. If the current measurement value is not completely consistent with the pre-stored value in the comparison table, the air conditioner may use an interpolation algorithm to calculate an approximate surface area value.

[0079] Furthermore, the air conditioner can determine the obstacle influence coefficient based on the type of obstacles in the environment. For example, if there are curtains in the environment, the influence coefficient may be 10%; if there are wall coverings, the influence coefficient may be 5%. The user can select the corresponding obstacle type through the air conditioner's settings menu, or the air conditioner can calculate it through the default settings. It should be noted that these influence coefficients are determined based on experimental measurement results. In this way, the air conditioner adjusts the basic surface area according to the obstacle influence coefficient. The adjustment formula is: adjusted surface area = basic surface area × (1 ± influence coefficient). The positive and negative signs here are determined according to the experimental measurement results. For example, if the obstacle causes the ultrasonic signal to attenuate, so that the basic surface area is underestimated, then use a plus sign to adjust the surface area upward; conversely, if the obstacle causes the signal to be enhanced, so that the basic surface area is overestimated, then use a minus sign to adjust the surface area downward.

[0080] In one example, assume the base surface area is 0.5 square meters and there are curtains in the environment with an influence coefficient of 10%. According to experimental measurements, curtains will cause the base surface area to be underestimated, so an adjustment is needed using a plus sign. Adjusted surface area = 0.5 × (1 + 10%) = 0.55 square meters. If there is wall covering in the environment with an influence coefficient of 5%, and the wall covering causes the base surface area to be overestimated, then the adjusted surface area = 0.5 × (1 - 5%) = 0.475 square meters.

[0081] This solution, by combining a pre-stored comparison table with the obstacle influence coefficient, can more accurately reflect the surface area of ​​active human bodies in real-world environments. This not only improves measurement accuracy but also enhances the adaptability and robustness of the air conditioner, enabling it to operate stably and reliably in diverse indoor environments. Precisely adjusting the surface area provides more reliable data support for subsequent height calculation and intelligent control of the air conditioner, further enhancing the user experience.

[0082] Optionally, the air conditioner determines the surface area of ​​the moving person based on the distance between the moving person and the air conditioner and the ultrasonic signal energy difference, including:

[0083] The air conditioner determines the obstacle impact coefficient based on the type of obstacles in the environment.

[0084] The air conditioner corrects the ultrasonic signal energy difference according to the obstacle influence coefficient.

[0085] The air conditioner obtains a pre-stored human body surface area comparison table, which contains distance values ​​of different active human bodies from the air conditioner and active human body surface areas corresponding to different ultrasonic signal energy differences.

[0086] The air conditioner matches the surface area corresponding to the distance between the active human body and the air conditioner and the corrected ultrasonic signal energy difference in the human body surface area comparison table, and uses it as the surface area of ​​the active human body.

[0087] As you can understand, different types of obstacles will reflect and attenuate ultrasonic signals to varying degrees. For example, curtains significantly attenuate ultrasonic waves, while wall coverings have a relatively small effect. Experimental measurements show that curtains have an influence coefficient of approximately 10%, while wall coverings have an influence coefficient of approximately 5%. Therefore, users can select the corresponding obstacle type through the air conditioner's settings interface to help the air conditioner determine the accurate influence coefficient.

[0088] Furthermore, the air conditioner can use the determined obstacle influence coefficient to correct the original ultrasonic signal energy difference. The correction formula is: Corrected Energy Difference = Original Energy Difference × (1 ± Influence Coefficient). The positive and negative signs here are determined based on experimental results. If the obstacle causes signal attenuation, the energy difference is increased by a plus sign, and vice versa, the energy difference is decreased by a minus sign.

[0089] The air conditioner then accesses a pre-stored human surface area comparison table and uses the corrected energy difference to match the corresponding surface area in the table. Specifically, the air conditioner uses the measured distance value and the corrected energy difference as query conditions to search for a matching entry in the comparison table. If the measured value does not exactly match the pre-stored value in the comparison table, the air conditioner uses an interpolation algorithm to calculate an approximate surface area value. This allows the air conditioner to use the matched surface area as the surface area of ​​the moving person for subsequent height calculation and intelligent control.

[0090] This solution, by introducing an obstacle influence factor to correct for ultrasonic signal energy differences, enables more accurate measurement of the active human surface area in various indoor environments. This solution not only improves measurement accuracy but also enhances the adaptability and robustness of the air conditioner, enabling it to better cope with complex indoor environments. Precise surface area measurement provides reliable data support for the air conditioner's subsequent height calculation and intelligent control, further enhancing the air conditioner's intelligence and user experience.

[0091] Optionally, the air conditioner determines the active human body width parameter by:

[0092] Air conditioning to obtain the body mass index of active people.

[0093] When the body mass index of the active person falls within a preset range, the air conditioner directly calls a pre-stored default width value as the width parameter of the active person.

[0094] When the body mass index of the active person is greater than the maximum value of the preset range, the air conditioner calculates the body width parameter based on the pre-stored width and the adjustment range.

[0095] In this solution, the air conditioner can connect to the smart body fat scale at home via Bluetooth or Wi-Fi to automatically obtain body mass index data, ensuring the accuracy and real-time nature of the data. In this way, the air conditioner can determine the body width parameter based on the obtained body mass index. Specifically, a preset range of body mass index can be pre-stored inside the air conditioner. For example, the preset range is 20 to 28, which covers the normal body mass index of most adults. In this way, when the body mass index of an active person falls within this preset range, the air conditioner directly calls the pre-stored default width value as the width parameter of the active person. It should be noted that the default width value is a standard value derived from a large amount of ergonomic data, usually set to about 0.5 meters, which is suitable for most adults of normal weight.

[0096] In another case, when the body mass index of the active person is greater than the maximum value of the preset range, that is, when the body mass index exceeds 28, the air conditioner will calculate the body width parameter based on the pre-stored width and adjustment range. The pre-stored width refers to the standard width value for people of normal weight, and the adjustment range is a parameter adjusted according to the impact of overweight on the width. It can be understood that according to experimental data, the impact of overweight people (body mass index over 28) on the width is about 10%. Therefore, the air conditioner can calculate the body width parameter according to the following formula:

[0097] Body width = pre-stored width × (1 + adjustment range)

[0098] For example, if the pre-stored width is 0.5 meters and the adjustment range is 10%, when the body mass index of the active person is 32, the body width is calculated as follows:

[0099] Human body width = 0.5 × (1 + 10%) = 0.55 meters

[0100] In addition, the air conditioner may also provide user customization options, allowing users to select body parameters according to actual conditions, further improving the accuracy of calculations.

[0101] This solution, by obtaining the body mass index of active users and calculating body width parameters based on a preset range and adjustment range, allows the air conditioner to more accurately reflect the actual width of users of different body types. This provides more reliable data support for subsequent height calculations, improving the accuracy of height measurement, thereby enhancing the intelligence level of the air conditioner and the user experience.

[0102] The air conditioner also considers the uneven distribution of body shapes to further optimize the width parameter. For example, for individuals with a higher body mass index due to well-developed muscles, the air conditioner may combine other sensor data or user-defined settings to fine-tune the calculation to improve accuracy.

[0103] Optionally, in S32, the air conditioner determines the height data of the active person according to the surface area and width parameters of the active person, including:

[0104] The air conditioner uses the quotient of the active person's surface area and the active person's width parameter as the active person's height data.

[0105] In this solution, based on a simplified model from ergonomics, a person's height can be estimated by dividing the measured active body surface area by the acquired active body width parameter. The calculation formula is: Height = Width ÷ Surface Area. The advantage of this method is that the calculation process is simple and easy to implement, and it can quickly estimate a person's height without the need for additional complex equipment or algorithms. For example, if the measured active body surface area is 0.8 square meters and the acquired active body width parameter is 0.5 meters, the calculated height is 1.6 meters.

[0106] Other methods exist for determining the height of a person using the surface area and width parameters of a person. For example, a machine learning algorithm can be introduced to train a large number of samples containing surface area, width, and corresponding height data to build a more accurate mapping model. This model can take into account more details and complexities of human morphology, thereby improving the accuracy of height estimation. This solution can provide a simple and fast height estimation method that, to a certain extent, meets the human height data requirements of intelligent air conditioning control and is easy to implement and apply under existing technical conditions.

[0107] Figure 4 is a schematic diagram of a device for controlling an air conditioner provided by an embodiment of the present disclosure; Figure 4 As shown, optionally, in combination Figure 4 As shown, an embodiment of the present disclosure provides an apparatus 200 for controlling an air conditioner, comprising a control module 41, a first determination module 42, a second determination module 43, and a reporting module 44. The control module 41 is configured to control a speaker to transmit an ultrasonic signal for detecting the height of an active person, so as to receive a corresponding ultrasonic reflection signal through a microphone; the first determination module 42 is configured to determine the distance value between the active person and the air conditioner and the ultrasonic signal energy difference when the ultrasonic reflection signal indicates that there is an active person in the room; the second determination module 43 is configured to determine the height data of the active person based on the distance value between the active person and the air conditioner and the ultrasonic signal energy difference; and the reporting module 44 is configured to report the height data of the active person to the application layer so as to control the air conditioner according to the height data.

[0108] The air conditioner control device 200 provided in the disclosed embodiment accurately analyzes the real-time distance between a person and the air conditioner and the ultrasonic signal energy difference by dynamically emitting directional ultrasonic waves and simultaneously capturing the reflected signals. Height data is then calculated based on the real-time distance between the person and the air conditioner and the ultrasonic signal energy difference. This solution reuses the speaker and microphone of the air conditioner's voice module to enable the air conditioner to detect the person's height. The resulting data is uploaded to the application layer in real time, which then drives the air conditioner to dynamically adjust the air supply angle, temperature, and wind speed parameters. This provides a more personalized air conditioner control solution while maintaining zero modification costs for the existing hardware architecture. This provides a new approach and direction for achieving high-precision height sensing and personalized control within the smart home industry with limited hardware costs.

[0109] Figure 5 is another schematic diagram of a device for controlling an air conditioner provided by an embodiment of the present disclosure; Figure 5 As shown, an embodiment of the present disclosure provides a device 300 for controlling an air conditioner, comprising a processor 30 and a memory 31. Optionally, the device 30 may further comprise a communication interface 32 and a bus 33. The processor 30, the communication interface 32, and the memory 31 may communicate with each other via the bus 33. The communication interface 32 may be used for information transmission. The processor 30 may call logic instructions in the memory 31 to execute the method for controlling an air conditioner according to the above embodiment.

[0110] In addition, the logic instructions in the memory 31 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.

[0111] Memory 31, 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 30 executes the program instructions / modules stored in memory 31 to execute functional applications and process data, thereby implementing the air conditioner control method in the above-described embodiments.

[0112] The memory 31 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 31 may include high-speed random access memory and non-volatile memory.

[0113] Figure 6 This is a schematic diagram of the structure of an air conditioner provided by an embodiment of the present disclosure; Figure 6As shown, an embodiment of the present disclosure provides an air conditioner 100, comprising: an air conditioner body, and the above-mentioned device 200 (300) for controlling the air conditioner. The device 200 (300) for controlling the air conditioner is installed on the air conditioner body. The installation relationship described here is not limited to placement inside the air conditioner body, but also includes installation connections with other components of the air conditioner 100, 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 200 (300) for controlling the air conditioner can be adapted to a feasible air conditioner body, thereby realizing other feasible embodiments.

[0114] 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 an air conditioner.

[0115] 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, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code.

[0116] 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.

[0117] 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.

[0118] 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.

[0119] 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 an air conditioner, characterized in that: The air conditioner includes a voice module, which includes a speaker and a microphone; the method includes: Controlling the speaker to transmit an ultrasonic signal for detecting the height of a moving person, and receiving a corresponding ultrasonic reflection signal through the microphone; When the ultrasonic reflection signal indicates that there is a moving person in the room, determining the distance between the moving person and the air conditioner and the ultrasonic signal energy difference; Determine the height of the active person based on the distance between the active person and the air conditioner and the energy difference of the ultrasonic signal; Report the height data of the active person to the application layer so that the air conditioning can be controlled according to the height data.

2. The method according to claim 1, characterized in that The ultrasound signal energy difference is calculated by: Obtain the static environmental energy in the room where the air conditioner is located; The difference between the dynamic reflected signal energy and the static environment energy collected when there is a moving human body in the room where the air conditioner is located is used as the ultrasonic signal energy difference.

3. The method according to claim 1, characterized in that The height data of the moving person is determined based on the distance between the moving person and the air conditioner and the energy difference of the ultrasonic signal, including: The surface area of ​​the moving human body is determined based on the distance between the moving human body and the air conditioner and the energy difference of the ultrasonic signal; The height data of the moving person is determined according to the surface area of ​​the moving person and the width parameters of the moving person.

4. The method according to claim 3, characterized in that The surface area of ​​the moving person is determined based on the distance between the moving person and the air conditioner and the ultrasonic signal energy difference, including: Obtaining a pre-stored human body surface area comparison table, wherein the human body surface area comparison table includes different distance values ​​between active human bodies and the air conditioner and active human body surface areas corresponding to different ultrasonic signal energy differences; The surface area corresponding to the distance between the moving human body and the air conditioner and the energy difference of the ultrasonic signal is matched in the human body surface area comparison table and is used as the surface area of ​​the moving human body.

5. The method according to claim 3, characterized in that The surface area of ​​the moving person is determined based on the distance between the moving person and the air conditioner and the ultrasonic signal energy difference, including: Obtaining a pre-stored human body surface area comparison table, wherein the human body surface area comparison table includes different distance values ​​between active human bodies and the air conditioner and active human body surface areas corresponding to different ultrasonic signal energy differences; Matching the basic surface area corresponding to the distance between the active human body and the air conditioner and the ultrasonic signal energy difference in the human body surface area comparison table; Determine the obstacle impact coefficient based on the type of obstacles in the environment; The basic surface area is adjusted according to the obstacle influence coefficient, so that the adjusted surface area is used as the active human body surface area.

6. The method according to claim 3, characterized in that The active body width parameter is determined by: Obtaining the body mass index of active people; When the body mass index of the active person falls within a preset range, the pre-stored default width value is directly called as the active person width parameter; When the body mass index of the active person is greater than the maximum value of the preset range, the body width parameter is calculated according to the pre-stored width and the adjustment range.

7. The method according to claim 3, characterized in that Determine the height data of the active person based on the active person's surface area and the active person's width parameters, including: The quotient of the surface area of ​​the moving body and the width parameter of the moving body is used as the height data of the moving body.

8. A device for controlling an air conditioner, characterized in that: The voice module includes a speaker and a microphone; the method includes: a control module configured to control the speaker to transmit an ultrasonic signal for detecting the height of a moving person, and to receive a corresponding ultrasonic reflection signal through the microphone; A first determining module is configured to determine a distance between the moving person and the air conditioner and an energy difference of the ultrasonic signal when the ultrasonic reflection signal indicates that there is a moving person in the room; a second determining module configured to determine the height data of the moving person based on the distance between the moving person and the air conditioner and the energy difference of the ultrasonic signal; The reporting module is configured to report the height data of the active person to the application layer so as to perform air conditioning control according to the height data.

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

10. An air conditioner, characterized in that: include: Air conditioner body; The device for controlling an air conditioner according to claim 8 or 9, is mounted on the air conditioner body.