Method and apparatus for measuring space size, and storage medium
The air conditioner voice module sends ultrasonic waves and processes the reflected signals, which solves the problems of high cost and low accuracy in detecting the indoor space size of the air conditioner. It achieves accurate detection without hardware, reduces costs and improves control accuracy.
Patent Information
- Application Number
- PCT/CN2024/081823
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-03-15
- Publication Date
- 2024-09-26
AI Technical Summary
When existing air conditioners detect the size of indoor space, additional hardware sensors are required, which are costly and prone to failure, affecting control accuracy.
The ultrasonic measurement signal is sent through the voice module and the reflected signal is collected. Combined with signal processing technology, including filtering, separation and normalization, the reflected signal is calculated to determine the size of the indoor space where the air conditioner is located, avoiding the use of hardware sensors.
It achieves accurate space size detection without additional hardware, reduces costs, provides an accurate data basis for air conditioning control, and avoids detection errors caused by poor anti-interference.
Smart Images

Figure CN2024081823_26092024_PF_FP
Abstract
Description
Method, device and storage medium for detecting space size
[0001] This application is based on the Chinese patent application with application number 202310265636.8 and application date March 17, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0002] The present application relates to the technical field of space size detection, for example, to a method, device and storage medium for detecting space size. Background Art
[0003] As people's living standards continue to improve, smart home appliances are gradually becoming part of their lives. With the successful use of voice interaction in air conditioners, how to increase the functional diversity of air conditioner voice modules has become a focus of technical personnel.
[0004] Currently, air conditioners typically use infrared or millimeter-wave radar sensing to measure the size of the room in which the air conditioner is located. However, these detection methods require additional hardware sensors to accurately detect the room size, which is costly. Furthermore, if the additional hardware sensors fail during use, the room size information will not be accurately determined, further affecting the user's control accuracy. Therefore, accurately detecting the room size of the air conditioner has become a pressing technical problem.
[0005] 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.
[0006] 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, device, and storage medium for detecting the size of a space, which can accurately detect the size of a room where an air conditioner is located.
[0009] In some embodiments, the method for detecting the size of a space includes: controlling the voice module to send an ultrasonic measurement signal within a first time period according to preset parameters; controlling the voice module to collect a reflected signal of the ultrasonic measurement signal within a second time period; determining the size of the space in the room where the air conditioner is located based on the reflected signal; wherein the second time period is greater than the first time period.
[0010] In some embodiments, the method for detecting the size of a space includes: processing the reflected signal; and determining the size of the space in the room where the air conditioner is located based on the processed reflected signal.
[0011] In some embodiments, the method for detecting the size of a space includes: filtering the reflected signal to obtain a filtered reflected signal; separating the filtered reflected signal to filter out the target reflected signal; and normalizing the target reflected signal to obtain a processed reflected signal.
[0012] In some embodiments, the method for detecting the size of a space includes: dividing the indoor space where the air conditioner is located into multiple intervals based on the processed reflection signal and preset segmentation rules; and taking the sum of the volumes of the multiple intervals as the size of the indoor space where the air conditioner is located.
[0013] In some embodiments, the method for detecting the size of a space includes: calculating the surface area of an obstacle in the interval and the distance between the obstacle and the air conditioner; and determining the volume of the interval as the product of the surface area of the obstacle and the distance between the obstacle and the air conditioner.
[0014] In some embodiments, the method for detecting the size of a space includes: obtaining a conversion compensation coefficient; calculating the energy attenuation of an interval, the energy difference of a reflected wave in the interval, and the initial sound pressure of a wave source; and calculating the surface area of obstacles in the interval based on the conversion compensation coefficient, the energy attenuation of the interval, the energy difference of a reflected wave in the interval, and the initial sound pressure of a wave source.
[0015] In some embodiments, the method for detecting the size of a space includes: obtaining the speed of sound waves in the room where the air conditioner is located; determining the sending time of the ultrasonic measurement signal of the voice module and the receiving time of the reflected signal within the interval; and calculating the distance between the obstacle and the air conditioner based on the sending time, the receiving time and the speed of sound waves in the room where the air conditioner is located.
[0016] In some embodiments, the device for detecting the size of a space includes: a first control module, configured to control the voice module to send an ultrasonic measurement signal within a first time period according to preset parameters; a second control module, configured to control the voice module to collect a reflected signal of the ultrasonic measurement signal within a second time period; a determination module, configured to determine the size of the space in the room where the air conditioner is located based on the reflected signal; wherein the second time period is greater than the first time period.
[0017] In some embodiments, the apparatus for detecting the size of a space includes: a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned method for detecting the size of a space when running the program instructions.
[0018] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, they execute the aforementioned method for detecting the size of the space.
[0019] The method, device, and storage medium for detecting room size provided by the disclosed embodiments can achieve the following technical effects: controlling a voice module to transmit an ultrasonic measurement signal according to preset parameters within a first duration; controlling the voice module to collect the reflected signal of the ultrasonic measurement signal within a second duration; and then determining the room size of the room where the air conditioner is located based on the reflected signal. This solution can accurately determine the room size of the room where the air conditioner is located by combining the reflected signal of the ultrasonic measurement signal, avoiding the inability to accurately detect room size due to the poor anti-interference performance of existing detection methods. It also eliminates the need for additional hardware detection devices, effectively reducing costs and providing a precise data foundation for air conditioner control.
[0020] 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
[0021] 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,
[0022] FIG1 is a schematic diagram of a method for detecting the size of a space provided by an embodiment of the present disclosure;
[0023] FIG2 is a schematic diagram of a method for processing a reflection signal provided by an embodiment of the present disclosure;
[0024] FIG3 is a schematic diagram of another method for detecting space size provided by an embodiment of the present disclosure;
[0025] FIG4 is a schematic diagram of a device for detecting the size of a space provided by an embodiment of the present disclosure;
[0026] FIG5 is a schematic diagram of another device for detecting the size of a space provided by an embodiment of the present disclosure;
[0027] FIG6 is a schematic structural diagram of an air conditioner provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] 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.
[0029] 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.
[0030] Unless otherwise stated, the term "plurality" means two or more.
[0031] 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.
[0032] 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.
[0033] 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.
[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[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, 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.
[0037] FIG1 is a schematic diagram of a method for detecting the size of a space provided by an embodiment of the present disclosure. In conjunction with FIG1 , an embodiment of the present disclosure provides a method for detecting the size of a space, including:
[0038] S11, the air conditioning control voice module sends an ultrasonic measurement signal within a first time period according to preset parameters.
[0039] S12, the air conditioning control voice module collects a reflection signal of the ultrasonic measurement signal within a second time period.
[0040] S13, the air conditioner determines the size of the room where the air conditioner is located based on the reflected signal.
[0041] In this solution, a method for detecting room size is applied to an air conditioner equipped with a voice module. Here, the voice module includes a built-in speaker and microphone, and the speaker is configured to periodically play ultrasonic waves. Specifically, the air conditioner control voice module transmits an ultrasonic measurement signal within a first duration according to preset parameters, including: the speaker of the air conditioner driving voice module transmits an ultrasonic measurement signal within the first duration according to preset parameters. The ultrasonic measurement signal is used to detect the room size of the room where the air conditioner is located; the preset parameters include a preset frequency and / or a preset sound pressure value. It is understood that to achieve a compatible design that allows the voice module's voice interaction service and ultrasonic detection service to operate simultaneously, a preset frequency of 20 kHz was determined through specific experimental verification. This approach prevents a preset frequency that is too low and could be heard by users, potentially negatively impacting their daily lives, and prevents a preset frequency that is too high, which could increase speaker attenuation and transmission link attenuation, making it difficult for the voice module to collect valid reflected signals. Thus, setting the preset frequency to 20 kHz takes into account the speaker's frequency response characteristics and the attenuation of ultrasonic waves during propagation within the room where the air conditioner is located, thereby accurately determining the preset frequency. It is understandable that in order to avoid distortion of the speaker and the sensitivity of the microphone receiver, the preset sound pressure value can be set to 90dB. In this way, the sound pressure value of the speaker can be controlled more reasonably. It is understandable that the first duration can be determined by the maximum measurement length in the room where the air conditioner is located and the speed of sound at normal temperature. As an example, the first duration is 100ms. In this way, the air conditioner control voice module sends an ultrasonic measurement signal within 100ms at a preset frequency of 20KHz and a sound pressure value of 90dB, ensuring that the ultrasonic measurement signal covers the entire space in the room where the air conditioner is located, providing an acoustic signal to be measured without dead angles.
[0042] Furthermore, after the voice control module transmits an ultrasonic measurement signal within a first duration according to preset parameters, the air conditioner can control the voice control module to collect a reflection signal of the ultrasonic measurement signal within a second duration. Specifically, the air conditioner control voice module collects the reflection signal of the ultrasonic measurement signal within the second duration, including: the microphone of the air conditioner control voice module collects the reflection signal of the ultrasonic measurement signal within the second duration at a preset sampling rate. Here, the second duration is greater than the first duration. As an example, the preset sampling rate is 48 kHz. This method effectively collects the reflection signal. It is understood that the second duration can be determined by the maximum measurement length of the room where the air conditioner is located and the speed of sound at normal temperature. For example, if the speed of sound at normal temperature is 340 m / s and the maximum measurement length of the room where the air conditioner is located is 8 m, then the maximum time from the voice module transmitting the ultrasonic measurement signal to receiving the reflection signal is no more than 50 m. Specifically, the second duration is 120 ms. Thus, the microphone of the air conditioner control voice module collects the reflection signal of the ultrasonic measurement signal within 120 ms at a sampling rate of 48 kHz. This method allows for precise acquisition of reflected signals, providing an accurate basis for calculating the size of the indoor space where the air conditioner is located. In an optimized solution, the second duration can be appropriately reduced when the voice module's processing resources are insufficient, thereby conserving processing resources. Furthermore, after the air conditioner acquires the reflected signal, the reflected signal can be combined with the reflected signal to determine the size of the indoor space where the air conditioner is located.
[0043] It should be noted that due to the limitations of the voice module's components and the attenuation characteristics of ultrasound, experiments have shown that the maximum length of the indoor space where the air conditioner is located that can be detected by this method does not exceed 8 meters.
[0044] The method for detecting room size provided in the embodiments of the present disclosure controls a voice module to transmit an ultrasonic measurement signal according to preset parameters within a first duration; controls the voice module to collect the reflected signal of the ultrasonic measurement signal within a second duration; and then determines the room size of the room where the air conditioner is located based on the reflected signal. This solution allows the measurement signal to be transmitted through the speaker of the voice module configured for the air conditioner, and the reflected signal to be collected through the microphone of the voice module, forming a complete ultrasonic transceiver system. This system then combines the reflected signal of the ultrasonic measurement signal to accurately determine the room size of the room where the air conditioner is located. This avoids the inability to accurately detect room size due to the poor anti-interference performance of existing detection methods. Furthermore, the system eliminates the need for additional hardware detection devices, effectively reducing costs and providing a precise data foundation for air conditioner control.
[0045] Optionally, in S13, the air conditioner determines the size of the room where the air conditioner is located based on the reflected signal, including:
[0046] The air conditioner processes the reflected signal.
[0047] The air conditioner determines the size of the room where the air conditioner is located based on the processed reflected signal.
[0048] In this solution, after the air conditioner receives the reflected signal of the ultrasonic measurement signal, it can process the reflected signal to obtain an effective signal for determining the size of the room where the air conditioner is located. This processing process includes filtering, separation, and normalization. Furthermore, after the air conditioner receives the processed reflected signal, the size of the room where the air conditioner is located can be determined based on the processed reflected signal. This method can effectively conserve the air conditioner's processing resources and provide an accurate data foundation for determining the size of the room where the air conditioner is located.
[0049] FIG2 is a schematic diagram of a method for processing a reflected signal provided by an embodiment of the present disclosure. In conjunction with FIG2 , optionally, the air conditioner processes the reflected signal, including:
[0050] S21: The air conditioner performs filtering processing on the reflected signal to obtain a filtered reflected signal.
[0051] S22, the air conditioner performs separation processing on the filtered reflection signal to filter out the target reflection signal.
[0052] S23, the air conditioner performs normalization processing on the target reflection signal to obtain a processed reflection signal.
[0053] In this solution, after the air conditioner obtains the reflected signal of the ultrasonic measurement signal, the reflected signal can be filtered. Specifically, bandpass filtering [18k, 22k] can be used. This can effectively improve the anti-interference ability of the reflected signal and reduce noise. Furthermore, the air conditioner can separate the filtered reflected signal to filter out the target reflected signal. Here, the filtered reflected signal can be separated to distinguish the transmitted signal and the reflected signal, and the distinguished reflected signal can be determined as the target reflected signal. Furthermore, to facilitate calculation and comparison, the air conditioner can normalize the target reflected signal to obtain a processed reflected signal. In this way, the processed reflected signal can be accurately obtained through filtering, separation, and normalization, providing an accurate data basis for determining the size of the indoor space where the air conditioner is located.
[0054] FIG3 is a schematic diagram of another method for detecting the size of a room provided by an embodiment of the present disclosure. In conjunction with FIG3 , optionally, the air conditioner determines the size of the room in which the air conditioner is located based on the processed reflected signal, including:
[0055] S31, dividing the indoor space where the air conditioner is located into multiple sections based on the processed reflected signal and a preset segmentation rule;
[0056] In step S32, the air conditioner uses the sum of the volumes of the multiple zones as the size of the room where the air conditioner is located.
[0057] It is understandable that the indoor space where the air conditioner is located may contain multiple obstacles. Since the distances from different obstacles to the voice module microphone vary, the time it takes for the voice module microphone to receive reflected signals from different obstacles will also vary. Here, obstacles are reflective objects within the room where the air conditioner is located. Specifically, the air conditioner can segment the indoor space where the air conditioner is located into multiple sections based on the processed reflected signals and a preset segmentation rule. The preset segmentation rule includes splitting the processed reflected signals into multiple reflected signal sets based on a preset acquisition signal length, and identifying the areas within the same reflection signal set where the obstacles corresponding to the reflected signals are located as the same section. This segmentation rule allows the indoor space where the air conditioner is located to be segmented based on the different acquisition times of the reflected signals. The obstacle corresponding to the reflected signal refers to the transmitting end that sent the transmitted signal. This ensures that obstacles at the same distance can be included in the same section. Here, the same distance means that different obstacles within the space are at the same distance from the air conditioner microphone. As an example, given the limited hardware computing resources of the voice module itself, the preset acquisition signal length can be set to 5ms. With a resampling frequency of 40 kHz, the number of sampling points within one acquisition signal length can be determined to be 5 ms * 40 kHz = 200. It should be noted that since obstacles in space are distributed at different distances, the reflected waveforms of the ultrasonic test signal also initially superimpose over time and can enter a stable state after the reflections are superimposed at the farthest obstacle.
[0058] Furthermore, after the air conditioner divides the indoor space it is located in into multiple sections, the sum of the volumes of these sections can be used as the size of the room where the air conditioner is located. For example, if the multiple sections include a first section, a second section, and a third section, and the volume of the first section is S1, the volume of the second section is S2, and the volume of the third section is S3, the size of the room where the air conditioner is located can be calculated as S1 + S2 + S3. In this way, the size of the room where the air conditioner is located can be accurately determined.
[0059] Optionally, the volume of the interval is determined by:
[0060] The surface area of obstacles within the air conditioning calculation area and the distance between the obstacles and the air conditioning.
[0061] The air conditioner determines the volume of the section as the product of the surface area of the obstacle and the distance between the obstacle and the air conditioner.
[0062] In this solution, a specific algorithm is used to calculate the surface area of obstacles within the interval and the distance between the obstacle and the air conditioner. After calculating the surface area and distance between the obstacle and the air conditioner, the two are multiplied together, and the product is determined as the volume of the interval. In this way, the interval volume can be accurately calculated.
[0063] In one optimized solution, after the indoor space where the air conditioner is located is divided into multiple zones, the zone volume calculation is performed sequentially according to the order in which the zones are divided. The zone volume calculation stops when the current zone is determined to be the last zone. Specifically, the order in which the zones are divided is first zone, second zone, third zone, and so on. Here, if the difference between the reflected wave energy value of an obstacle in the current zone and the reflected wave energy value of the obstacle in the previous zone is less than 3%, the current zone is determined to be the last zone.
[0064] Optionally, the air conditioner calculates the surface area of obstacles within the reflected signal interval, including:
[0065] The air conditioner obtains the conversion compensation coefficient.
[0066] The energy attenuation in the air conditioning calculation interval, the reflected wave energy difference in the reflected signal interval, and the initial sound pressure of the wave source.
[0067] The air conditioner calculates the surface area of obstacles within the reflection signal interval based on the conversion compensation coefficient, the energy attenuation in the reflection signal interval, the reflected wave energy difference in the reflection signal interval, and the initial sound pressure of the wave source.
[0068] In this solution, the initial sound pressure of the wave source can be pre-stored in the air conditioner. In this way, the air conditioner can obtain the initial sound pressure in combination with the pre-stored initial sound pressure of the wave source to ensure the accuracy of the obtained data.
[0069] It is understandable that the reflection of obstacles in the space may occur multiple times. The acquisition signal length used when dividing the interval is relatively small. The current interval rarely superimposes more than two reflection signals, but the subsequent intervals will be affected by this. Taking into account the multiple reflections formed by obstacles with different surface shapes are also different, therefore, the experimental data of the R&D personnel can be combined to adopt the conversion compensation coefficient determined by the initial experiment. As an example, the conversion compensation coefficient can be 1.3 to 1.5. In this way, the conversion compensation coefficient can be accurately determined.
[0070] In another example, voice interaction can be combined to calculate the actual size and type of the user's space, and then the coefficient can be adjusted inversely to match the actual space. When the statistical sample size becomes larger, the compensation coefficient can be estimated through an algorithm to make the measurement more accurate.
[0071] In this solution, the air conditioner can also calculate the energy decay of the interval:
[0072] P X =P0*e-α*x
[0073] Among them, P X is the energy attenuation of the reflected signal interval, P0 is the initial sound pressure of the wave source, e is the base of the natural logarithm, α is the dielectric attenuation coefficient (NP / mm), and x is the distance from the obstacle to the wave source. This method allows for precise determination of the energy attenuation of the interval.
[0074] Understandably, the reflected signal generated in one interval will be superimposed on the subsequent interval. To accurately calculate the energy reflected from the obstacle surface within the corresponding distance of the current interval, the reflected signal energy generated in the previous interval must be removed. Specifically, the reflected wave energy difference between intervals can be determined by calculating the reflected wave energy value of the current interval and the reflected wave energy value of the previous interval, and taking the difference between the two as the reflected wave energy difference for the interval. This method achieves precise determination of the reflected wave energy difference between intervals.
[0075] In this way, after the air conditioner determines the conversion compensation coefficient, the energy attenuation of the interval, the energy difference of the reflected wave in the interval, and the initial sound pressure of the wave source, the surface area of the obstacle in the interval can be accurately calculated by combining the conversion compensation coefficient, the energy attenuation of the interval, the energy difference of the reflected wave in the interval, and the initial sound pressure of the wave source. Specifically,
[0076] Sx=(Kx*Px*Ex) / P0
[0077] Where Sx is the surface area of the obstacle within the interval, X is the distance between the obstacle and the microphone within the interval, Kx is the conversion compensation coefficient, Px is the energy attenuation within the interval, Ex is the energy difference of the reflected wave within the interval, and P0 is the initial sound pressure of the wave source. This method, combined with a specific algorithm, can accurately calculate the surface area of the obstacle within the interval.
[0078] Optionally, the air conditioner calculates the distance between the obstacle and the air conditioner, including:
[0079] The air conditioner obtains the speed of the sound waves in the room where the air conditioner is located.
[0080] The air conditioner determines the transmission time of the ultrasonic measurement signal of the voice module and the reception time of the reflected signal within the interval.
[0081] The air conditioner calculates the distance between the obstacle and the air conditioner based on the sending time, receiving time, and the speed of the sound waves in the room where the air conditioner is located.
[0082] In this solution, the air conditioner can obtain the pre-stored speed of sound waves in the room where the air conditioner is located through its associated server. The air conditioner can also obtain the transmission time of the ultrasonic measurement signal of the voice module and the reception time of the reflected signal within the interval through its associated timing device, and calculate the distance between the obstacle and the air conditioner based on the transmission time, reception time, and the speed of sound waves in the room where the air conditioner is located. Specifically, the air conditioner calculates the distance between the obstacle and the air conditioner based on the transmission time, reception time, and the speed of sound waves in the room where the air conditioner is located, including:
[0083] L=(T2-T1)*V 波 / 2
[0084] Among them, L is the distance between the obstacle and the air conditioner, T1 is the sending time, T2 is the receiving time, V 波 is the speed of sound waves in the room where the air conditioner is located. In this way, the distance between the obstacle and the air conditioner can be accurately determined.
[0085] FIG4 is a schematic diagram of a device for detecting the size of a room provided by an embodiment of the present disclosure. As shown in FIG4 , an embodiment of the present disclosure provides a device for detecting the size of a room, comprising a first control module 41, a second control module 42, and a determination module 43. The first control module 41 is configured to control the voice module to transmit an ultrasonic measurement signal within a first duration according to preset parameters; the second control module 42 is configured to control the voice module to collect reflected signals of the ultrasonic measurement signal within a second duration; and the determination module 43 is configured to determine the size of the room in which the air conditioner is located based on the reflected signals.
[0086] The device for detecting room size provided in the embodiments of the present disclosure controls a voice module to transmit an ultrasonic measurement signal according to preset parameters for a first duration; controls the voice module to collect the reflected signal of the ultrasonic measurement signal for a second duration; and then determines the room size of the room where the air conditioner is located based on the reflected signal. This solution accurately determines the room size of the room where the air conditioner is located by combining the reflected signal of the ultrasonic measurement signal, avoiding the inability to accurately detect room size due to the poor anti-interference performance of existing detection methods. It also eliminates the need for additional hardware detection equipment, effectively reducing costs and providing a precise data foundation for air conditioner control.
[0087] Figure 5 is a schematic diagram of another device for detecting the size of a space provided by an embodiment of the present disclosure; in combination with Figure 5, an embodiment of the present disclosure provides a device 200 for detecting the size of a space, including a processor 201 and a memory 202. Optionally, the device may also include a communication interface 203 and a bus 204. The processor 201, the communication interface 203, and the memory 202 can communicate with each other through the bus 204. The communication interface 203 can be used for information transmission. The processor 201 can call the logic instructions in the memory 202 to execute the method for detecting the size of the space of the above embodiment.
[0088] In addition, the logic instructions in the memory 202 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.
[0089] Memory 202, 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 201 executes the program instructions / modules stored in memory 202 to perform functional applications and data processing, thereby implementing the method for detecting the size of a space in the above-mentioned embodiments.
[0090] The memory 202 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 202 may include a high-speed random access memory and a non-volatile memory.
[0091] Figure 6 is a structural diagram of an air conditioner provided by an embodiment of the present disclosure; in conjunction with Figure 6, an embodiment of the present disclosure provides an air conditioner 100, comprising: an air conditioner main body; and the above-mentioned device 200 for detecting the size of a space, which is installed on the air conditioner main body. The installation relationship described here is not limited to placement inside the air conditioner, but also includes installation connections with other components of the air conditioner, 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 for detecting the size of a space can be adapted to a feasible air conditioner main body, thereby realizing other feasible embodiments.
[0092] 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 detecting the size of a space.
[0093] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, enable the computer to execute the above-mentioned method for detecting the size of a space.
[0094] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0095] The technical solution 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 or an optical disk, and other media that can store program code, or a transient storage medium.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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 detecting the size of a space, characterized in that: Applied to an air conditioner equipped with a voice module, the method comprises: Controlling the voice module to send an ultrasonic measurement signal within a first time period according to preset parameters; Controlling the voice module to collect a reflection signal of the ultrasonic measurement signal within a second time period; Determine the size of the room where the air conditioner is located according to the reflected signal; The second duration is greater than the first duration.
2. The method according to claim 1, characterized in that Determining the size of the room where the air conditioner is located according to the reflected signal includes: processing the reflected signal; According to the processed reflected signal, the size of the room where the air conditioner is located is determined.
3. The method according to claim 2, characterized in that The processing of the reflected signal comprises: Performing filtering on the reflected signal to obtain a filtered reflected signal; Separating and processing the filtered reflection signal to filter out the target reflection signal; The target reflection signal is normalized to obtain a processed reflection signal.
4. The method according to claim 2, characterized in that: Determining the size of the room where the air conditioner is located according to the processed reflected signal includes: According to the processed reflection signal and the preset segmentation rule, the indoor space where the air conditioner is located is divided into a plurality of sections; The sum of the volumes of multiple intervals is taken as the space size of the room where the air conditioner is located.
5. The method according to claim 4, characterized in that The volume of the interval is determined by: Calculating the surface area of obstacles within the interval and the distance between the obstacles and the air conditioner; The volume of the section is determined as the product of the surface area of the obstacle and the distance between the obstacle and the air conditioner.
6. The method according to claim 5, characterized in that The calculating the surface area of the obstacle in the interval includes: Get conversion compensation coefficient; Calculate the energy attenuation of the interval, the energy difference of the reflected wave in the interval and the initial sound pressure of the wave source; The surface area of the obstacle in the interval is calculated according to the conversion compensation coefficient, the energy attenuation of the interval, the reflected wave energy difference in the interval and the initial sound pressure of the wave source.
7. The method according to claim 5, characterized in that The calculating the distance between the obstacle and the air conditioner includes: Get the speed of sound waves in the room where the air conditioner is located; Determining the sending time of the ultrasonic measurement signal of the voice module and the receiving time of the reflected signal within the interval; The distance between the obstacle and the air conditioner is calculated according to the sending time, the receiving time and the speed of the sound waves in the room where the air conditioner is located.
8. A device for detecting the size of a space, characterized in that: Applied to an air conditioner equipped with a voice module, the device comprises: A first control module is configured to control the voice module to send an ultrasonic measurement signal within a first time period according to preset parameters; A second control module is configured to control the voice module to collect a reflection signal of the ultrasonic measurement signal within a second time period; A determination module is configured to determine the size of the room where the air conditioner is located according to the reflected signal; The second duration is greater than the first duration.
9. A device for detecting the size of a space, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for detecting the size of a space according to any one of claims 1 to 7 when running the program instructions.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for detecting the size of a space as claimed in any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Automatic scanning and measuring instrument for indoor space structure
CN103954965A
A device and a method for grain depot grain pile volume measurement
CN107655430A
Ranging method and device, terminal and storage medium
CN110161508A
Volume measurement method and device for target object
CN110490833A
Container volume ratio online detection system for container truck
CN112269180A
Cited By
Spatial size measurement method, system and device, storage medium and program product
CN121430514A
