Method and device for detecting orientation and air conditioner

By calculating the distance difference between the microphone and the user's distance value in the smart home appliance device, and calculating the target azimuth angle, the problem of low azimuth detection accuracy of the voice module of the smart home appliance device is solved when the user does not make a sound, and accurate user azimuth detection is achieved .

CN119439051APending Publication Date: 2025-02-14QINGDAO HAIER AIR CONDITIONER GENERAL CORP LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310946754.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the voice module of smart home appliances performs user orientation detection through sound source positioning technology, there are problems of passivity and low accuracy, especially when the user does not emit sound or environmental noise.

Method used

By obtaining the distance value of the first microphone and the second microphone and the distance value of the user and the first microphone, the difference between the distance value of the user to the second microphone and the distance value of the user to the first microphone is determined, and the target is calculated based on these values. Azimuth angle, finalize the user's orientation information.

Benefits of technology

It realizes accurate detection of the user's orientation without making sound, improves detection accuracy, and does not require additional hardware detection devices, reduces costs, and provides an accurate data basis for the control of smart home appliances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119439051A_ABST
    Figure CN119439051A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of azimuth detection, and discloses a method for detecting azimuth. The method comprises the following steps: obtaining a distance value between a first microphone and a second microphone and a distance value between a user and the first microphone; determining a difference value between the distance value from the user to the second microphone and the distance value from the user to the first microphone; calculating a target azimuth angle according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone and the difference value; and determining azimuth information of the user according to the target azimuth angle. According to the scheme, the orientation condition of the user can be detected under the condition that the user does not make a sound, the detection precision is higher, a hardware detection device does not need to be additionally arranged, the cost is effectively reduced, and a precise data basis is provided for control over intelligent household electrical appliances. The invention further discloses a device for detecting the direction and an 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 orientation detection, for example, to a method, device and air conditioner for detecting orientation. Background Art

[0002] As people's living standards continue to improve, smart home appliances are gradually entering users' lives. At present, with the successful use of voice interaction on smart home appliances, how to improve the functional diversity of the voice module of smart home appliances has also become the focus of technicians.

[0003] At present, the voice module of smart home appliances usually locates the user's position through sound source positioning technology, but this method of determining the user's position is passive. Once the user does not make a sound, it is difficult for the voice module to locate the user's position. In addition, the accuracy of the position positioning in this way is not high and it is easily affected by environmental noise. Therefore, how to accurately detect the user's position has become a technical problem that needs to be solved urgently.

[0004] 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 the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] 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 components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0006] The embodiments of the present disclosure provide a method, a device and an air conditioner for detecting a position, which can accurately detect the position of a user.

[0007] In some embodiments, the method for detecting orientation includes: obtaining the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone; determining the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone; calculating the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference; and determining the user's orientation information according to the target azimuth.

[0008] In some embodiments, the method for detecting orientation includes: α=180-(180 / π)*acos((d*d+Ll*Ll-(Ll+ΔL)*(Ll+ΔL)) / 2*d*Ll); wherein α is the target azimuth, d is the distance between the first microphone and the second microphone, Ll is the distance between the user and the first microphone, and ΔL is the difference between the distance from the user to the second microphone and the distance from the user to the first microphone.

[0009] In some embodiments, the method for detecting orientation includes: obtaining the ambient temperature of the room where the air conditioner is located; controlling the voice module to send a detection ultrasonic wave to determine the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave; and determining the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone based on the ambient temperature and the time difference.

[0010] In some embodiments, the method for detecting the orientation includes: ΔL=Δt*

[0011] (331.45+(0.61*T)); where ΔL is the difference between the distance from the user to the second microphone and the distance from the user to the first microphone, Δt is the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave, and T is the ambient temperature.

[0012] In some embodiments, the method for detecting orientation includes: controlling the voice module to send a detection ultrasonic wave according to a preset strategy; performing characteristic window interception of the reflected wave received by the first microphone and the reflected wave received by the second microphone of the active part of the human body; determining the sampling point sequence number of the effective signal of each characteristic window; and calculating the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave according to the sampling point sequence number of the effective signal of each characteristic window.

[0013] In some embodiments, the method for detecting orientation includes: determining an orientation interval in which a target orientation angle is located; and determining the orientation information of the user based on the orientation interval.

[0014] In some embodiments, the method for detecting orientation includes: determining the orientation set to which the orientation interval belongs; when the orientation set is [60, 100], determining the user's orientation information as the user is located in the left area; when the orientation set is [-60, 60], determining the user's orientation information as the user is located in the middle area; when the orientation set is [-100, -60], determining the user's orientation information as the user is located in the right area.

[0015] In some embodiments, the device for detecting orientation includes: an acquisition module configured to obtain the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone; a first determination module configured to determine the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone; a calculation module configured to calculate the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference; and a second determination module configured to determine the user's orientation information according to the target azimuth.

[0016] In some embodiments, the device for detecting orientation includes: a processor and a memory storing program instructions, wherein the processor executes the above-mentioned method for detecting orientation when running the program instructions.

[0017] In some embodiments, the air conditioner includes an air conditioner main body; a voice module installed in the air conditioner main body; and a device for detecting orientation as claimed in claim 8 or 9 installed in the air conditioner main body.

[0018] The method, device and air conditioner for detecting orientation provided by the embodiments of the present disclosure can achieve the following technical effects: by obtaining the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone; and determining the difference between the distance value between the user and the second microphone and the distance value between the user and the first microphone; thereby calculating the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone and the difference; and then determining the orientation information of the user according to the target azimuth. With this solution, the orientation of the user can be detected without the user making any sound, with higher detection accuracy, and without the need for additional hardware detection devices, which effectively reduces costs and provides an accurate data basis for the control of smart home appliances.

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

[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0021] Figure 1 is a schematic diagram of the relative positions of a voice module and a user provided by an embodiment of the present disclosure;

[0022] Figure 2 is a schematic diagram of a method for detecting orientation provided by an embodiment of the present disclosure;

[0023] Figure 3 is a schematic diagram of a method for determining a difference provided by an embodiment of the present disclosure;

[0024] Figure 4 is a schematic diagram of a method for determining position information provided by an embodiment of the present disclosure;

[0025] Figure 5 is a schematic diagram of a device for detecting orientation provided by an embodiment of the present disclosure;

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

[0027] In order to be able to understand the features and technical contents 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 attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the 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.

[0028] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

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

[0030] 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 indicates: A or B.

[0031] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

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

[0033] In the embodiments of the present disclosure, smart home appliances refer to home appliances 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 be connected to electronic devices to enable users to remotely control and manage the smart home appliances.

[0034] In the embodiments of the present disclosure, the 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 directly communicate with the above-mentioned smart home appliances 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.

[0035] Figure 1 is a schematic diagram of the relative positions of a voice module and a user provided by an embodiment of the present disclosure; Figure 1 As shown, the embodiment of the present disclosure discloses an air conditioner, which is equipped with a voice module, and the voice module includes a speaker unit for emitting ultrasonic waves, a first microphone for receiving ultrasonic wave reflection signals, and a second microphone arranged adjacent to the first microphone. As shown in the figure, as an example, the first microphone is a left mic (microphone), and the second microphone is a right mic (microphone). Specifically, in order to detect the orientation of the user, the air conditioner sets a plurality of time difference azimuth lines in the indoor space where it is located according to a preset rule, and each time difference azimuth line corresponds to a different measurement azimuth. Here, the preset rule may include: establishing a coordinate system with the first microphone as the reference coordinate origin, in which the line connecting the first microphone and the second microphone is the horizontal axis, and the vertical line with the first microphone as the reference is the vertical axis. Here, positive time difference azimuth lines are arranged on the left side of the vertical axis, which are 20, 40, 60, 80, and 100 respectively, and negative time difference azimuth lines are arranged on the right side of the vertical axis, which are -20, -40, -60, -80, and -100 respectively. Here, the setting of different time difference azimuth lines is determined according to the ultrasonic sampling rate selected by the voice module, and adjacent time difference azimuth lines can form an azimuth interval. Figure 1 It can also be seen that the closer to the horizontal axis, the larger the span of the time difference azimuth line.

[0036] Optionally, the correspondence between different time difference azimuth lines and the measured azimuth α (hereinafter referred to as azimuth) includes: if the time difference azimuth line is 20, the corresponding azimuth is 79°; if the time difference azimuth line is 40, the corresponding azimuth is 67°; if the time difference azimuth line is 60, the corresponding azimuth is 53°; if the time difference azimuth line is 80, the corresponding azimuth is 37°; if the time difference azimuth line is 100, the corresponding azimuth is 90°; The corresponding azimuth is 0°; if the time difference azimuth line is -20, the corresponding azimuth is 102°; if the time difference azimuth line is -40, the corresponding azimuth is 114°; if the time difference azimuth line is -60, the corresponding azimuth is 127°; if the time difference azimuth line is -80, the corresponding azimuth is 143°; if the time difference azimuth line is -100, the corresponding azimuth is 180°. In this way, the corresponding relationship can be combined to determine the azimuth and determine the azimuth interval of the user, providing an accurate data basis for determining the user's azimuth information.

[0037] Figure 2 is a schematic diagram of a method for detecting orientation provided by an embodiment of the present disclosure; Figure 2 As shown, optionally, the embodiment of the present disclosure provides a method for detecting an orientation, including:

[0038] S21, the air conditioner obtains the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone.

[0039] S22 , the air conditioner determines a difference between a distance value from the user to the second microphone and a distance value from the user to the first microphone.

[0040] S23, the air conditioner calculates the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference.

[0041] S24, the air conditioner determines the user's azimuth information according to the target azimuth angle.

[0042] In this embodiment, the distance value between the first microphone and the second microphone is determined by the design size of the voice module. As an example, the distance value between the first microphone and the second microphone is 35 mm. The air conditioner can also obtain the distance value between the user and the first microphone through an ultrasonic ranging algorithm. In this way, the distance value d between the first microphone and the second microphone and the distance value L1 between the user and the first microphone can be accurately obtained.

[0043] Furthermore, the air conditioner can determine the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone in a variety of ways. In one example, the air conditioner can control the voice module to send a distance measurement ultrasonic wave, so as to use the ultrasonic distance measurement algorithm to respectively calculate the distance value L2 from the user to the second microphone and the distance value L1 from the user to the first microphone, and then calculate the difference between L2 and L1. In the second example, the air conditioner obtains the ambient temperature in the room where the air conditioner is located; the air conditioner controls the voice module to send a detection ultrasonic wave to determine the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave; the air conditioner determines the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone based on the ambient temperature and the time difference. In this way, the accurate acquisition of the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone can be achieved in a variety of ways.

[0044] Furthermore, the air conditioner calculates the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference. Here, the target azimuth is the measured azimuth of the user's location. In this way, the target azimuth can be accurately determined, providing an accurate data basis for determining the user's location information. Furthermore, the air conditioner can determine the user's location information in combination with the target azimuth. Here, the user's location information includes the user being in the left area, the user being in the middle area, or the user being in the right area.

[0045] The method for detecting the orientation provided by the embodiment of the present disclosure is adopted, by obtaining the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone; and determining the difference between the distance value between the user and the second microphone and the distance value between the user and the first microphone; thereby calculating the target orientation angle according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference; and then determining the orientation information of the user according to the target orientation angle. With this scheme, the orientation of the user can be detected without the user making any sound, with higher detection accuracy, and without the need for additional hardware detection devices, which effectively reduces the cost and provides an accurate data basis for the control of smart home appliances.

[0046] Optionally, in S23, the air conditioner calculates the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference, including:

[0047] α=180-(180 / π)*acos((d*d+Ll*Ll-(Ll+ΔL)*(Ll+ΔL)) / 2*d*Ll)

[0048] In this solution, α is the target azimuth, d is the distance between the first microphone and the second microphone. In one example, the distance between the first microphone and the second microphone is 35 mm. Ll is the distance between the user and the first microphone, which can be determined using an ultrasonic ranging algorithm. ΔL is the difference between the distance between the user and the second microphone and the distance between the user and the first microphone.

[0049] Furthermore, the cosine theorem can be used to determine α=180-(180 / π)*acos((d*d+Ll*Ll-(Ll+ΔL)*(Ll+ΔL)) / 2*d*Ll). With this solution, the target azimuth can be accurately determined in combination with a specific algorithm, providing an accurate data basis for determining the user's azimuth information.

[0050] Figure 3 is a schematic diagram of a method for determining a difference provided by an embodiment of the present disclosure; Figure 3 As shown, optionally, in S22, the air conditioner determines the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone, including:

[0051] S31, the air conditioner obtains the ambient temperature of the room where the air conditioner is located.

[0052] S32, the air conditioning control voice module sends a detection ultrasonic wave to determine the time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave.

[0053] S33, the air conditioner determines the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone according to the ambient temperature and the time difference.

[0054] It is understandable that since the speed of sound is affected by the temperature of the propagation medium and is linearly related, temperature compensation is required when calculating the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone. Therefore, the air conditioner can obtain the ambient temperature of the room where it is located through its associated ambient temperature sensor. In this way, accurate acquisition of the ambient temperature can be achieved.

[0055] Furthermore, the air conditioning control voice module sends a detection ultrasonic wave, and determines the time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave according to the specific conditions of the reflected wave received by the first microphone. In this way, the time difference can be accurately obtained.

[0056] Furthermore, the air conditioner can calculate the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone in combination with the ambient temperature and the time difference. In this way, the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone is accurately determined.

[0057] Optionally, in S33, the air conditioner determines the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone according to the ambient temperature and the time difference, including:

[0058] ΔL=Δt*(331.45+(0.61*T))

[0059] In this solution, ΔL is the difference between the distance from the user to the second microphone and the distance from the user to the first microphone, Δt is the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave, and T is the ambient temperature. In this way, the distance difference can be accurately determined by combining the ambient temperature and the time difference.

[0060] Optionally, S32, the air conditioning control voice module sends a detection ultrasonic wave to determine a time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave, including:

[0061] The air conditioning control voice module sends detection ultrasonic waves according to the preset strategy.

[0062] The air conditioner performs characteristic window capture of the human body activity part on the reflected wave received by the first microphone and the reflected wave received by the second microphone respectively.

[0063] The air conditioner determines the sampling point number of the effective signal of each feature window respectively.

[0064] The air conditioner calculates the time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave according to the sampling point sequence number of the effective signal in each characteristic window.

[0065] In this solution, the air conditioner can control the voice module to send detection ultrasonic waves according to a preset strategy. The preset strategy is to periodically send detection ultrasonic waves at a frequency of 20KHz. Here, the effective waveform duration is 100ms, and there is a gap between different ultrasonic transmission cycles, and the gap duration is 120ms. In this way, by setting the gap, after the effective characteristic waveform is intercepted according to the period, the necessary calculation tasks can be completed during the gap period. In this way, the voice module can be accurately controlled to achieve the sending of detection ultrasonic waves.

[0066] Further, the air conditioner performs feature window interception of the human body activity part on the reflected wave received by the first microphone and the reflected wave received by the second microphone respectively. Specifically, the air conditioner performs processing operations on the reflected wave received by the first microphone and the reflected wave received by the second microphone respectively; the air conditioner performs dynamic calculation of unit energy on the processed reflected wave respectively; the air conditioner determines the feature window position according to the signal-to-noise ratio to intercept the feature window according to the feature window position. Among them, the processing operation refers to filtering and normalization processing, the dynamic calculation of unit energy takes the minimum sampling time as the calculation unit, and the signal-to-noise ratio refers to the energy ratio between the active human body environment and the quiet environment. As an example, the signal-to-noise ratio is 6db. Optionally, the air conditioner determines the feature window position according to the signal-to-noise ratio, including: the air conditioner takes the excess signal-to-noise ratio as the initial window boundary, and calculates to the boundary position of 100ms; if the energy ratio of the sampling point on the right side of the right boundary of the window is greater than the signal-to-noise ratio (6db), the window moves to the right; if the energy ratio of the sampling point on the left side of the right boundary is less than the signal-to-noise ratio (6db), the window moves to the left, and the determination of the feature window position is realized repeatedly. In an optimized solution, the air conditioner can also set a total energy threshold for the characteristic window. The setting of the total energy threshold for the characteristic window is directly related to the application of human activity detection and needs to be calibrated through preliminary experiments. Only if the energy of the characteristic window exceeds the total energy threshold of the window can it be determined that there is a valid human activity.

[0067] Further, respectively determining the sampling point sequence number of the valid signal of each feature window includes: respectively determining the first valid signal in each feature window. Here, the selection of the valid signal is to select the point whose normalized value corresponding to the waveform sampling moment is greater than 0.6; and sequentially determining the sampling point sequence numbers in the feature windows corresponding to the valid signals of the first microphone and the second microphone. In this way, the sampling point sequence numbers can be accurately determined.

[0068] Furthermore, the air conditioner calculates the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave according to the sampling point sequence number of the effective signal of each feature window. Specifically, the difference between the sampling point sequence number of the second microphone and the sampling point sequence number of the first microphone can be calculated, and the product of the difference and 1 / sampling rate is used as the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave. Specifically, the sampling rate of the first microphone and the second microphone is 48KHz, and the minimum sampling time interval is 20 milliseconds. In this way, the sampling point sequence number of the effective signal of each feature window can be combined to accurately calculate the time difference between the second microphone receiving the reflected wave and the first microphone receiving the reflected wave.

[0069] Figure 4 is a schematic diagram of a method for determining position information provided by an embodiment of the present disclosure; Figure 4 As shown, optionally, in S24, the air conditioner determines the user's orientation information according to the target azimuth angle, including:

[0070] S41, the air conditioner determines the azimuth interval where the target azimuth angle is located.

[0071] S42: The air conditioner determines the user's location information according to the location interval.

[0072] Optionally, the azimuth angle and the time difference azimuth line are in a one-to-one correspondence, and the specific correspondence has been shown in the previous text and will not be repeated here. In this embodiment, after setting a plurality of azimuth intervals, a plurality of azimuth intervals can be set according to the correspondence between the time difference azimuth line and the azimuth angle, that is, the azimuth angle intervals include [0°, 37°], [37°, 53°], [53°, 67°], [67°, 79°], [79°, 90°], [90°, 102°], [102°, 114°], [114°, 127°], [127°, 143°], [143°, 180°]. Therefore, after determining the target azimuth angle, the air conditioner determines the azimuth angle interval where the target azimuth angle is located, including: the air conditioner determines the azimuth angle interval where the target azimuth angle is located; the air conditioner uses the azimuth angle interval that matches the azimuth angle interval as the azimuth angle interval where the target azimuth angle is located. For example, if the target azimuth angle determined by the air conditioner is 125°, then it is determined that 125° falls into the azimuth angle interval of [114°, 127°], and the azimuth interval matching the azimuth angle interval is determined to be [-60, -40] according to the correspondence between the azimuth angle and the time difference azimuth line. In this way, the azimuth interval can be accurately determined. Furthermore, the user's azimuth information can be determined in combination with the azimuth interval. In this way, the azimuth information can be accurately determined in combination with the azimuth interval.

[0073] Optionally, at S42, the air conditioner determines the user's location information according to the location interval, including:

[0074] The air conditioner determines the direction set to which the direction interval belongs.

[0075] When the orientation set is [60, 100], the air conditioner determines the orientation information of the user as the user is located in the left area.

[0076] When the orientation set is [-60, 60], the air conditioner determines the user's orientation information as the user being in the middle area;

[0077] When the orientation set is [-100, -60], the orientation information of the user is determined to be that the user is located in the right area.

[0078] In this solution, in order to let users know their location more intuitively, the room where the air conditioner is located can also be divided into areas. Figure 1As shown, it may specifically include a left area, a middle area and a right area. Specifically, the air conditioner can determine the azimuth set to which the azimuth interval belongs. Here, the azimuth set includes [60, 100], [-60, 60] and [-100, -60]. For example, if the azimuth interval [-60, -40] where the determined target azimuth is located is determined to be the azimuth set [-60, 60]. In this way, accurate judgment of the azimuth set is achieved. Furthermore, when the azimuth set is [60, 100], the air conditioner determines that the user's azimuth information is that the user is located in the left area. When the azimuth set is [-60, 60], the air conditioner determines that the user's azimuth information is that the user is located in the middle area; when the azimuth set is [-100, -60], the user's azimuth information is determined to be that the user is located in the right area. With this solution, accurate determination of the user's azimuth information is achieved.

[0079] The embodiment of the present disclosure also provides a device for detecting orientation, including an acquisition module, a first determination module, a calculation module and a second determination module. The acquisition module is configured to obtain the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone. The first determination module is configured to determine the difference between the distance value from the user to the second microphone and the distance value from the user to the first microphone; the calculation module is configured to calculate the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone and the difference; the second determination module is configured to determine the orientation information of the user according to the target azimuth.

[0080] The method for detecting the orientation provided by the embodiment of the present disclosure is adopted, by obtaining the distance value between the first microphone and the second microphone and the distance value between the user and the first microphone; and determining the difference between the distance value between the user and the second microphone and the distance value between the user and the first microphone; thereby calculating the target orientation angle according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference; and then determining the orientation information of the user according to the target orientation angle. With this scheme, the orientation of the user can be detected without the user making any sound, with higher detection accuracy, and without the need for additional hardware detection devices, which effectively reduces the cost and provides an accurate data basis for the control of smart home appliances.

[0081] Figure 5 is a schematic diagram of a device for detecting orientation provided by an embodiment of the present disclosure; Figure 5As shown, an embodiment of the present disclosure provides a device 200 for detecting an orientation, 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 may communicate with each other through the bus 204. The communication interface 203 may be used for information transmission. The processor 201 may call the logic instructions in the memory 202 to execute the method for detecting an orientation of the above embodiment.

[0082] In addition, the logic instructions in the memory 202 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0083] The memory 202 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 201 executes the function application and data processing by running the program instructions / modules stored in the memory 202, that is, the method for detecting the orientation in the above embodiment is implemented.

[0084] The memory 202 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 202 may include a high-speed random access memory and may also include a non-volatile memory.

[0085] Combination Figure 6 As shown, an embodiment of the present disclosure provides an air conditioner 100, comprising: an air conditioner main body, a voice module, which is installed on the air conditioner main body 100; and the above-mentioned device 200 for detecting orientation. The device 200 for detecting orientation 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, etc. Those skilled in the art can understand that the device 200 for detecting orientation can be adapted to a feasible air conditioner main body, thereby realizing other feasible embodiments.

[0086] 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 method for detecting an orientation.

[0087] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0088] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient 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 codes, or a transient storage medium.

[0089] 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 changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the 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 the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "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 thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer 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 refer to the description of the method part.

[0090] 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 for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0091] 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 only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, 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, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed 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 according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0092] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order 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, and 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 functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for detecting an orientation, characterized in that: Applied to an air conditioner equipped with a voice module, the voice module is provided with a first microphone and a second microphone, the method comprises: Obtaining a distance value between the first microphone and the second microphone and a distance value between the user and the first microphone; Determine a difference between a distance value from the user to the second microphone and a distance value from the user to the first microphone; Calculating a target azimuth according to the distance between the first microphone and the second microphone, the distance between the user and the first microphone, and the difference; The user's position information is determined according to the target position angle.

2. The method according to claim 1, characterized in that The calculating the target azimuth according to the distance value between the first microphone and the second microphone, the distance value between the user and the first microphone, and the difference includes: α=180-(180 / π)*acos((d*d+Ll*Ll-(Ll+ΔL)*(Ll+ΔL)) / 2*d*Ll) Wherein, α is the target azimuth, d is the distance between the first microphone and the second microphone, Ll is the distance between the user and the first microphone, and ΔL is the difference between the distance from the user to the second microphone and the distance from the user to the first microphone.

3. The method according to claim 1, characterized in that The determining a difference between a distance value from the user to the second microphone and a distance value from the user to the first microphone includes: Obtaining the ambient temperature of the room where the air conditioner is located; Controlling the voice module to send a detection ultrasonic wave to determine a time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave; A difference between a distance value from the user to the second microphone and a distance value from the user to the first microphone is determined according to the ambient temperature and the time difference.

4. The method according to claim 3, characterized in that The determining, according to the ambient temperature and the time difference, a difference between a distance value from the user to the second microphone and a distance value from the user to the first microphone comprises: ΔL=Δt*(331.45+(0.61*T)) Wherein, ΔL is the difference between the distance from the user to the second microphone and the distance from the user to the first microphone, Δt is the time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave, and T is the ambient temperature.

5. The method according to claim 3, characterized in that: The controlling the voice module to send a detection ultrasonic wave to determine a time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave includes: Controlling the voice module to send detection ultrasonic waves according to a preset strategy; Performing feature window interception of the human body activity part on the reflected wave received by the first microphone and the reflected wave received by the second microphone respectively; Determine the sampling point sequence number of the effective signal of each characteristic window respectively; The time difference between when the second microphone receives the reflected wave and when the first microphone receives the reflected wave is calculated according to the sampling point sequence number of the valid signal in each characteristic window.

6. The method according to claim 1, characterized in that The determining the position information of the user according to the target position angle includes: Determine the azimuth interval where the target azimuth is located; The location information of the user is determined according to the location interval.

7. The method according to claim 6, characterized in that The determining the position information of the user according to the position interval includes: Determine the direction set to which the direction interval belongs; When the orientation set is [60, 100], determining the orientation information of the user as the user being located in the left area; When the orientation set is [-60, 60], determining the orientation information of the user as the user being located in a middle area; When the orientation set is [-100, -60], the orientation information of the user is determined to be that the user is located in the right area.

8. A device for detecting orientation, characterized in that: The device is applied to an intelligent air conditioner equipped with a voice module, wherein the voice module is provided with a first microphone and a second microphone; the device comprises: an obtaining module, configured to obtain a distance value between the first microphone and the second microphone and a distance value between the user and the first microphone; A first determining module is configured to determine a difference between a distance value from the user to the second microphone and a distance value from the user to the first microphone; a calculation module, configured to calculate a target azimuth according to a distance value between the first microphone and the second microphone, a distance value between the user and the first microphone, and the difference; The second determination module is configured to determine the user's azimuth information according to the target azimuth.

9. A device for detecting an orientation, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for detecting orientation 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; A voice module is installed on the air conditioner body; The device for detecting orientation according to claim 8 or 9 is installed on the air conditioner main body.