CN109387829B - Distance detection device and distance detection method thereof - Google Patents

Distance detection device and distance detection method thereof Download PDF

Info

Publication number
CN109387829B
CN109387829B CN201710655468.8A CN201710655468A CN109387829B CN 109387829 B CN109387829 B CN 109387829B CN 201710655468 A CN201710655468 A CN 201710655468A CN 109387829 B CN109387829 B CN 109387829B
Authority
CN
China
Prior art keywords
time
sound signal
preset
sound
receiver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710655468.8A
Other languages
Chinese (zh)
Other versions
CN109387829A (en
Inventor
杜博仁
张嘉仁
曾凯盟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to CN201710655468.8A priority Critical patent/CN109387829B/en
Publication of CN109387829A publication Critical patent/CN109387829A/en
Application granted granted Critical
Publication of CN109387829B publication Critical patent/CN109387829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/14Systems for determining distance or velocity not using reflection or reradiation using ultrasonic, sonic, or infrasonic waves

Abstract

The invention provides a distance detection device and a distance detection method thereof. The invention estimates the second time of the sound receiver receiving the packet amplitude peak value of the preset sound signal according to the time difference value between the preset sound signal and the low-pass filtering signal thereof, when the frequency value of the sound signal received by the sound receiver at the second time is close to the frequency of the packet amplitude peak value of the preset sound signal output at the first time, the preset sound signal output by the loudspeaker within the first time length and the sound signal received by the sound receiver within the second time length are subjected to cross correlation operation to generate a cross correlation signal, and the distance between the loudspeaker and the sound receiver is calculated according to the time corresponding to the packet amplitude peak value of the cross correlation signal and the first time, wherein the second time length is greater than the first time length. The invention can greatly save the operation resource and accurately detect the relative distance between the output signal source and the receiving signal device.

Description

Distance detection device and distance detection method thereof
Technical Field
The present disclosure relates to distance detection devices, and particularly to a distance detection device and a distance detection method thereof.
Background
Generally, when calculating the relative distance between the signal source and the receiver, the time difference between the signal output from the signal source and the signal received by the receiver can be obtained by calculating Cross-Correlation (Cross-Correlation) between the received signal and the original output signal at each time point, wherein the time corresponding to the maximum value of the Cross-Correlation signal is the time of receiving the signal, and the time of outputting the signal is known, so that the relative distance can be calculated according to the time difference between the time of receiving the signal and the time of outputting the signal. Thus, although the relative distance can be calculated efficiently, performing the cross-correlation operation frequently consumes resources.
Disclosure of Invention
The invention provides a distance detection device and a distance detection method thereof, which can greatly save calculation resources and accurately detect the relative distance between an output signal source and a signal receiving device.
The distance detection device of the invention comprises a loudspeaker, a sound receiver and a processor. The loudspeaker outputs a preset sound signal, the preset sound signal has time-varying amplitude and frequency, a time difference value is formed between a first low-pass filtering signal obtained after the preset sound signal is subjected to low-pass filtering and the preset sound signal, and a package amplitude peak value of the preset sound signal is output by the loudspeaker at the first time. The processor performs low-pass filtering on a sound signal received by the sound receiver to generate a second low-pass filtering signal, estimates a second time corresponding to the time when the sound receiver receives a packet amplitude peak value of a preset sound signal according to a time difference value and the second low-pass filtering signal, performs cross correlation operation on a preset sound signal output by a loudspeaker within a first time length based on the first time and a sound signal received by the sound receiver within a second time length based on the second time when the difference value between a frequency value of the sound signal received by the sound receiver corresponding to the second time and a frequency value of the preset sound signal output by the loudspeaker corresponding to the first time does not exceed a preset range to generate a cross correlation signal, and calculates the distance between the loudspeaker and the sound receiver according to the time corresponding to the amplitude peak value of the cross correlation signal and the first time, wherein the second time length is greater than the first time length.
In an embodiment of the invention, the processor performs a fourier transform operation on the sound signal received by the sound receiver within a first time length based on the second time, and determines whether a difference between a frequency value of a maximum amplitude of the sound signal received by the sound receiver in a frequency domain within the first time length based on the second time and a frequency value of a preset sound signal output by the speaker corresponding to the first time exceeds a preset range, and when the difference does not exceed the preset range, the processor performs a cross-correlation operation on the preset sound signal output by the speaker within the first time length based on the first time and the sound signal received by the sound receiver within a second time length based on the second time.
In an embodiment of the invention, the time difference is a difference between a third time corresponding to a peak of a packet amplitude of the first low-pass filtered signal and the first time.
In an embodiment of the invention, the speaker and the sound receiver are disposed in the space, and the second time period is shorter than a time required for presetting a farthest relative distance in the space for transmitting the sound signal between the speaker and the sound receiver.
In an embodiment of the invention, the preset audio signal has a third time duration, and the second time duration is greater than or equal to the third time duration.
In an embodiment of the invention, the first time period corresponds to a time period in which a packet amplitude of the predetermined audio signal is smaller than a predetermined value.
In an embodiment of the invention, a relative distance between the speaker and the sound receiver is fixed.
In an embodiment of the invention, the low-pass filtering is infinite impulse response filtering.
In an embodiment of the invention, the cross correlation operation is a fast cross correlation operation.
The invention further provides a distance detection method of the distance detection device, the distance detection device comprises a loudspeaker and a sound receiver, the loudspeaker outputs a preset sound signal, the preset sound signal has time-varying amplitude and frequency, a time difference value is formed between a first low-pass filtering signal obtained after the preset sound signal is subjected to low-pass filtering and the preset sound signal, and a package amplitude peak value of the preset sound signal is output by the loudspeaker at the first time, the distance detection method of the distance detection device comprises the following steps: low-pass filtering the sound signal received by the sound receiver to generate a second low-pass filtered signal; estimating a second time corresponding to the packet amplitude peak value of the preset sound signal received by the sound receiver according to the time difference and the second low-pass filtering signal; judging whether the difference value between the frequency value of the sound signal received by the sound receiver corresponding to the second time and the frequency value of the preset sound signal output by the loudspeaker corresponding to the first time exceeds a preset range or not; if the difference between the frequency value of the sound signal received by the sound receiver corresponding to the second time and the frequency value of the preset sound signal output by the loudspeaker corresponding to the first time does not exceed the preset range, performing cross correlation operation on the preset sound signal output by the loudspeaker within a first time span based on the first time and the sound signal received by the sound receiver within a second time span based on the second time to generate a cross correlation signal, wherein the second time span is longer than the first time span. And calculating the distance between the loudspeaker and the sound receiver according to the time corresponding to the amplitude peak value of the cross correlation signal and the first time.
In an embodiment of the invention, the distance detecting method of the distance detecting apparatus includes the following steps: performing a fourier transform operation on the sound signal received by the sound receiver within a first time length based on the second time; judging whether the difference value between the frequency value of the maximum amplitude of the sound signal received by the sound receiver in the frequency domain in the first time length based on the second time and the frequency value of the preset sound signal output by the loudspeaker corresponding to the first time exceeds a preset range or not; and if the preset range is not exceeded, performing cross correlation operation on the preset sound signal output by the loudspeaker within the first time length based on the first time and the sound signal received by the sound receiver within the second time length based on the second time.
In an embodiment of the invention, the time difference is a difference between a third time corresponding to a packet amplitude peak of the first low-pass filtered signal and the first time.
In an embodiment of the invention, the speaker and the sound receiver are disposed in the space, and the second time duration is less than a time required for the predetermined sound signal to transmit a farthest relative distance in the space between the speaker and the sound receiver.
In an embodiment of the invention, the preset audio signal has a third time duration, and the second time duration is greater than or equal to the third time duration.
In an embodiment of the invention, the first time period corresponds to a time period in which a packet amplitude of the predetermined audio signal is smaller than a predetermined value.
In an embodiment of the invention, a relative distance between the speaker and the sound receiver is fixed.
In an embodiment of the invention, the low-pass filtering is infinite impulse response filtering.
In an embodiment of the invention, the cross correlation operation is a fast cross correlation operation.
Based on the above, the embodiment of the invention estimates the second time when the sound receiver receives the packet amplitude peak of the preset sound signal according to the time difference between the preset sound signal and the low-pass filtered signal thereof and the low-pass filtered signal of the sound signal received by the sound receiver, when the frequency value of the sound signal received by the sound receiver at the second time is close to the frequency of the packet amplitude peak of the preset sound signal output at the first time, performs the cross-correlation operation on the preset sound signal output by the speaker within the first time length based on the first time and the sound signal received by the sound receiver within the second time length based on the second time to generate the cross-correlation signal, and calculates the distance between the speaker and the sound receiver according to the time corresponding to the packet amplitude peak of the cross-correlation signal and the first time, wherein the second time length is greater than the first time length. Therefore, only the preset voice signal output by the loudspeaker within the first time span based on the first time and the voice signal received by the voice receiver within the second time span based on the second time are needed to be subjected to cross correlation operation, so that the operation resource can be effectively saved greatly, and the relative distance between the loudspeaker and the voice receiver can be accurately detected.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a schematic diagram of a distance detection apparatus according to an embodiment of the invention.
Fig. 2A is a waveform diagram of a preset sound signal output by a speaker according to an embodiment of the invention.
Fig. 2B is a waveform diagram of an audio signal received by an audio receiver according to an embodiment of the invention.
Fig. 3 is a flowchart of a distance detection method of a distance detection apparatus according to an embodiment of the invention.
Description of reference numerals:
102: loudspeaker
104: sound receiver
106: processor with a memory having a plurality of memory cells
s (t): presetting a sound signal
t _ Tx, t _ Max, t _ Tx _ IIR, t _ Rx _ IIR: time of day
t1: time difference
TA, TC, TN: length of time
Tx _ IIR: a first low-pass filtered signal
Rx _ IIR: second low-pass filtered signal
R1: distance between two adjacent plates
y (t): sound signal
S302-S308: distance detection method steps of distance detection device
Detailed Description
Fig. 1 is a schematic diagram of a distance detecting device according to an embodiment of the invention, as shown in fig. 1, the distance detecting device includes a speaker 102, an audio receiver 104, and a processor 106, wherein the processor 106 is coupled to the audio receiver 104, and a distance R1 between the speaker 102 and the audio receiver 104 may be, for example, fixed, but the embodiment is not limited thereto. The speaker 102 is configured to output a predetermined audio signal having a time-varying amplitude and frequency, that is, the predetermined audio signal may correspond to different amplitudes and frequencies at different time points. The sound receiver 104 is configured to receive a sound signal, and the processor 106 is configured to perform signal processing on a predetermined sound signal and the sound signal received by the sound receiver 104. The Processor 106 may include, for example, a central processing unit (cpu), or other Programmable general purpose or special purpose Microprocessor (Microprocessor), digital Signal Processor (DSP), controller, application Specific Integrated Circuit (ASIC), programmable Logic Device (PLD), or the like, or a combination thereof. In addition, the processor 106 may be configured with a volatile storage medium such as a Random Access Memory (RAM) or a Read Only Memory (ROM), and the processor 106 may be integrated with the sound receiver 104 in the same electronic device (e.g., a portable electronic device) or may be configured in a different electronic device separately from the sound receiver 104. In some embodiments, the processor 106 may also communicate signals with the speaker 102 and the sound receiver 104 via a network or other means in a wired or wireless manner.
Further, the processor 106 may perform data transmission with the speaker 102, for example, by network transmission, to obtain a time point at which the speaker 102 outputs a predetermined audio signal, wherein the predetermined audio signal is low-pass filtered (for example, infinite impulse response filtering is performed on the predetermined audio signal, but the embodiment is not limited thereto) to obtain a time difference between the first low-pass filtered signal and the predetermined audio signal. For example, fig. 2A is a waveform diagram of a predetermined audio signal output by a speaker according to an embodiment of the invention. In fig. 2A, the peak amplitude value of the packet of the predetermined audio signal s (t) corresponds to the time t _ Tx, and the peak amplitude value of the first low-pass filtered signal Tx _ IIR (shown by the dashed line) obtained by low-pass filtering the predetermined audio signal s (t) corresponds to the time t _ Tx _ IIR, so that the time difference t1 between the first low-pass filtered signal Tx _ IIR and the predetermined audio signal s (t) is equal to t _ Tx _ IIR-t _ Tx.
The processor 106 may perform low-pass filtering (e.g., performing low-pass filtering processing similar to the low-pass filtering performed on the predetermined audio signal) on the audio signal received by the audio receiver 104 to generate a second low-pass filtered signal, and the processor 106 estimates a second time corresponding to the packet amplitude peak of the predetermined audio signal received by the audio receiver 104 according to the time difference and the second low-pass filtered signal. For example, fig. 2B is a schematic waveform diagram of an audio signal received by an audio receiver according to an embodiment of the invention. In fig. 2B, the amplitude peak of the second low-pass filtered signal Rx _ IIR (shown by the dotted line) obtained by low-pass filtering the audio signal y (t) received by the audio receiver 104 corresponds to the time t _ Rx _ IIR, and the processor 106 may subtract the time difference t1 from the time t _ Rx _ IIR to estimate the time t _ Max corresponding to the packet amplitude peak of the predetermined audio signal received by the audio receiver 104.
The processor 106 may determine whether a difference between the frequency value of the sound signal y (t) received by the sound receiver 104 corresponding to the time t _ Max and the frequency value of the preset sound signal s (t) output by the speaker 102 corresponding to the time t _ Tx is out of a preset range. In detail, the processor 106 may perform a fourier transform operation on the audio signal y (T) received by the audio receiver 104 within a time duration T _ C based on the time T _ Max (e.g., centered on the time T _ Max, but not limited thereto), and determine whether a difference between a frequency value of a frequency domain signal having a maximum amplitude in a frequency domain of the audio signal y (T) received by the audio receiver 104 within the time duration T _ C based on the time T _ Tx (e.g., centered on the time T _ Tx, but not limited thereto) and a frequency value of a predetermined audio signal s (T) output by the speaker 102 corresponding to the time T _ Tx exceeds a predetermined range. When the difference between the frequency value of the sound signal y (t) received by the sound receiver 104 corresponding to the time t _ Max and the frequency value of the preset sound signal s (t) output by the speaker 102 corresponding to the time t _ Tx does not exceed the preset range, it represents that the sound receiver 104 has received the preset sound signal s (t). The time duration T _ C may be set to a time duration corresponding to the preset audio signal s (T) having a packet amplitude smaller than the preset value, that is, only the portion of the preset audio signal s (T) having a larger packet amplitude is used to compare the frequency values, so as to improve the accuracy of the comparison result, and reduce the amount of computation of the processor 106.
The processor 106 may perform a cross-correlation operation on the preset sound signal s (T) output by the speaker 102 within a time length T _ C based on the time T _ Tx and the sound signal received by the sound receiver 104 within a time length T _ N based on the time T _ Max to generate a cross-correlation signal when a difference between a frequency value of the sound signal y (T) received by the sound receiver 104 corresponding to the time T _ Tx and a frequency value of the preset sound signal s (T) output by the speaker 102 corresponding to the time T _ Tx does not exceed a preset range, where the cross-correlation operation may be, for example, a fast cross-correlation operation, but the embodiment is not limited thereto, and the time length T _ N is greater than the time length T _ C, and the time length T _ N may be, for example, set to be greater than or equal to a time length TA of the preset sound signal s (T), but less than a time required for the preset sound signal s (T) to transmit a farthest relative distance between the speaker 102 and the sound receiver 104 in a usage space. The processor 106 may calculate the distance R1 between the speaker 102 and the sound receiver 104 according to the time t _ Rx corresponding to the amplitude peak of the cross-correlation signal (i.e. the exact time when the sound receiver 104 receives the packet amplitude peak of the predetermined sound signal s (t)) and the time t _ Tx. For example, the distance R1 between the speaker 102 and the sound receiver 104 may be equal to (t _ Rx-t _ Tx) × c, where c is the speed of sound.
It should be noted that, in some embodiments, the time duration T _ N may also be set to be smaller than the time duration TA, for example, the time duration T _ N is set to correspond to a time duration when the packet amplitude of the predetermined audio signal s (T) is smaller than another predetermined value. Thus, by setting the time length T _ N to be less than the time required for the predetermined audio signal s (T) to transmit the farthest relative distance that the speaker 102 and the audio receiver 104 can be disposed in the usage space, the processor 106 does not need to perform the cross-correlation operation on the audio signal y (T) received by the predetermined audio signal s (T) and the audio receiver 104 for a long time (at least the time length TA is required plus the time required for the predetermined audio signal s (T) to transmit the farthest relative distance that the speaker 102 and the audio receiver 104 can be disposed in the usage space) as in the prior art, and the time for the processor 106 to perform the cross-correlation operation on the predetermined audio signal s (T) and the audio signal y (T) can be greatly reduced. Moreover, since the processor 106 has already determined that the difference between the frequency value of the frequency domain signal having the maximum amplitude of the sound signal y (T) received by the sound receiver 104 in the frequency domain within the time length T _ C based on the time T _ Tx and the frequency value of the preset sound signal s (T) output by the speaker 102 corresponding to the time T _ Tx does not exceed the preset range, it is ensured that the sound receiver 104 has received the preset sound signal s (T), and thus the time T _ Rx at which the sound receiver 104 receives the packet amplitude peak of the preset sound signal s (T) can be accurately obtained, and the distance R1 between the speaker 102 and the sound receiver 104 is calculated.
Fig. 3 is a flowchart of a distance detection method of a distance detection apparatus according to an embodiment of the invention, please refer to fig. 3. In this embodiment, the distance detecting device includes a speaker and an audio receiver, the predetermined audio signal output by the speaker has a time-varying amplitude and frequency, a time difference exists between a first low-pass filtered signal obtained by low-pass filtering the predetermined audio signal and the predetermined audio signal, and a packet amplitude peak of the predetermined audio signal is output by the speaker at a first time, wherein the low-pass filtering process may be, for example, an infinite impulse response filtering process, but the embodiment is not limited thereto. As can be seen from the above embodiments, the distance detection method of the distance detection apparatus may at least include the following steps, first, performing low pass filtering on the sound signal received by the sound receiver to generate a second low pass filtered signal (step S302). Then, a second time corresponding to the receiving of the predetermined audio signal by the audio receiver is estimated according to the time difference and the second low-pass filtered signal (step S304), wherein the time difference may be, for example, a difference between a third time corresponding to the packet amplitude peak of the first low-pass filtered signal and the first time. Then, it is determined whether a difference between the frequency value of the sound signal received by the sound receiver corresponding to the second time and the frequency value of the preset sound signal output by the speaker corresponding to the first time is out of a preset range (step S306). For example, the frequency value of the sound signal received by the sound receiver corresponding to the second time can be obtained by performing a fourier transform operation on the sound signal received by the sound receiver within the first time duration based on the second time (for example, the second time is taken as a center, but the embodiment is not limited thereto), and it is determined whether a difference between the frequency value of the frequency domain signal having the maximum amplitude in the frequency domain of the sound signal received by the sound receiver within the first time duration based on the second time and the frequency value of the preset sound signal output by the speaker corresponding to the first time exceeds a preset range. If the difference between the frequency value of the sound signal received by the sound receiver corresponding to the second time and the frequency value of the preset sound signal output by the speaker corresponding to the first time does not exceed the preset range, the preset sound signal output by the speaker within the first time period based on the first time and the sound signal received by the sound receiver within the second time period based on the second time are cross-correlated to generate a cross-correlated signal (step S308), wherein the second time period is longer than the first time period and is shorter than the time required by the farthest relative distance that the preset sound signal transmission speaker and the sound receiver can be configured in the space, and in some embodiments, the second time period may be set to be longer than or equal to the third time period, for example, but is shorter than the time required by the farthest relative distance that the preset sound signal transmission speaker and the sound receiver can be configured in the use space, assuming that the preset sound signal has the third time period. Alternatively, the second time duration may be set to be less than the third time duration, for example, the second time duration is set to correspond to a time duration in which the packet amplitude of the predetermined audio signal is less than another predetermined value. Then, the distance between the speaker and the sound receiver is calculated according to the time corresponding to the peak amplitude value of the cross-correlation signal and the first time (step S310), wherein the cross-correlation operation may be, for example, a fast cross-correlation operation, but not limited thereto.
In summary, the embodiments of the present invention estimate a second time when the sound receiver receives the packet amplitude peak of the preset sound signal according to the time difference between the preset sound signal and the low-pass filtered signal thereof and the low-pass filtered signal of the sound signal received by the sound receiver, perform a cross-correlation operation on the preset sound signal output by the speaker within a first time period with reference to the first time and the sound signal received by the sound receiver within a second time period with reference to the second time when the frequency value of the sound signal received by the sound receiver at the second time is close to the frequency of the packet amplitude peak of the preset sound signal output at the first time, so as to generate a cross-correlation signal, and calculate the distance between the speaker and the sound receiver according to the time corresponding to the packet amplitude peak of the cross-correlation signal and the first time, wherein the second time period is greater than the first time period. Therefore, only the preset voice signal output by the loudspeaker within the first time span based on the first time and the voice signal received by the voice receiver within the second time span based on the second time are needed to be subjected to cross correlation operation, so that the operation resource can be effectively saved greatly, and the relative distance between the loudspeaker and the voice receiver can be accurately detected.
Although the present invention has been described with reference to the above embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A distance detection device, comprising:
the loudspeaker outputs a preset sound signal, the preset sound signal has time-varying amplitude and frequency, a time difference value is formed between a first low-pass filtering signal obtained after the preset sound signal is subjected to low-pass filtering and the preset sound signal, and a packet amplitude peak value of the preset sound signal is output by the loudspeaker at a first time;
a sound receiver; and
a processor, performing the low-pass filtering on the sound signal received by the sound receiver to generate a second low-pass filtered signal, estimating a second time corresponding to a peak value of a packet amplitude of the preset sound signal received by the sound receiver according to the time difference and the second low-pass filtered signal, when a difference between a frequency value of the sound signal received by the sound receiver corresponding to the second time and a frequency value of the preset sound signal output by the speaker corresponding to the first time does not exceed a preset range, performing a cross-correlation operation on the preset sound signal output by the speaker within a first time duration with reference to the first time and the sound signal received by the sound receiver within a second time duration with reference to the second time to generate a cross-correlation signal, and calculating a distance between the speaker and the sound receiver according to a time corresponding to the peak value of the amplitude of the cross-correlation signal and the first time, wherein the second time duration is greater than the first time duration,
the processor performs a fourier transform operation on the sound signal received by the sound receiver within the first time length with reference to the second time, and determines whether a difference between a frequency value of a maximum amplitude in a frequency domain of the sound signal received by the sound receiver within the first time length with reference to the second time and a frequency value of the preset sound signal output by the speaker corresponding to the first time exceeds the preset range, and when the difference does not exceed the preset range, the processor performs the cross-correlation operation on the preset sound signal output by the speaker within the first time length with reference to the first time and the sound signal received by the sound receiver within the second time length with reference to the second time,
the loudspeaker and the sound receiver are configured in a space, the second time length is less than the time required by the preset sound signal to transfer the farthest relative distance between the loudspeaker and the sound receiver which can be configured in the space,
the first time length is a time length corresponding to the packet amplitude of the preset sound signal being smaller than a preset value.
2. The distance detecting device of claim 1, wherein the time difference is a difference between a third time corresponding to a peak of a packet amplitude of the first low-pass filtered signal and the first time.
3. The distance detection device according to claim 1, wherein the preset sound signal has a third time length, and the second time length is greater than or equal to the third time length.
4. The distance detection device of claim 1, wherein the relative distance of the speaker and the sound receiver is fixed.
5. The distance detection device of claim 1, wherein said low pass filtering is infinite impulse response filtering.
6. The distance detection device of claim 1, wherein the cross-correlation operation is a fast cross-correlation operation.
7. A distance detection method of a distance detection device, the distance detection device comprising a speaker and a sound receiver, the speaker outputting a preset sound signal, the preset sound signal having a time-varying amplitude and frequency, a time difference between a first low-pass filtered signal obtained by low-pass filtering the preset sound signal and the preset sound signal, a packet amplitude peak of the preset sound signal being output by the speaker at a first time, the distance detection method of the distance detection device comprising:
performing the low pass filtering on the sound signal received by the sound receiver to generate a second low pass filtered signal;
estimating a second time corresponding to the sound receiver receiving the packet amplitude peak value of the preset sound signal according to the time difference and the second low-pass filtering signal;
judging whether the difference value between the frequency value of the sound signal received by the sound receiver corresponding to the second time and the frequency value of the preset sound signal output by the loudspeaker corresponding to the first time exceeds a preset range or not;
if the difference between the frequency value of the sound signal received by the sound receiver corresponding to the second time and the frequency value of the preset sound signal output by the loudspeaker corresponding to the first time does not exceed the preset range, performing cross correlation operation on the preset sound signal output by the loudspeaker within a first time span with reference to the first time and the sound signal received by the sound receiver within a second time span with reference to the second time to generate a cross correlation signal, wherein the second time span is longer than the first time span;
calculating the distance between the loudspeaker and the sound receiver according to the time corresponding to the amplitude peak value of the cross correlation signal and the first time;
performing a fourier transform operation on the sound signal received by the sound receiver within the first time length based on the second time;
judging whether the difference value between the frequency value of the sound signal received by the sound receiver in the frequency domain and having the maximum amplitude and the frequency value of the preset sound signal output by the loudspeaker corresponding to the first time exceeds the preset range or not within the first time length based on the second time; and
if the preset range is not exceeded, the preset sound signal output by the loudspeaker within the first time span with the first time as the reference and the sound signal received by the sound receiver within the second time span with the second time as the reference are subjected to the cross correlation operation,
the second time length is less than the time required for the preset sound signal to convey the farthest relative distance that the loudspeaker and the sound receiver can be configured in space,
the first time length is a time length corresponding to the packet amplitude of the preset sound signal being smaller than a preset value.
8. The method of claim 7, wherein the time difference is a difference between a third time corresponding to a peak of a packet amplitude of the first low-pass filtered signal and the first time.
9. The distance detection method of a distance detection apparatus according to claim 7, wherein the preset sound signal has a third time length, and the second time length is greater than or equal to the third time length.
10. The distance detection method of the distance detection apparatus according to claim 7, wherein a relative distance between the speaker and the sound receiver is fixed.
11. The distance detection method of the distance detection apparatus according to claim 7, wherein the low-pass filtering is infinite impulse response filtering.
12. The distance detection method of the distance detection apparatus according to claim 7, wherein the cross-correlation operation is a fast cross-correlation operation.
CN201710655468.8A 2017-08-03 2017-08-03 Distance detection device and distance detection method thereof Active CN109387829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710655468.8A CN109387829B (en) 2017-08-03 2017-08-03 Distance detection device and distance detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710655468.8A CN109387829B (en) 2017-08-03 2017-08-03 Distance detection device and distance detection method thereof

Publications (2)

Publication Number Publication Date
CN109387829A CN109387829A (en) 2019-02-26
CN109387829B true CN109387829B (en) 2022-12-06

Family

ID=65412144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710655468.8A Active CN109387829B (en) 2017-08-03 2017-08-03 Distance detection device and distance detection method thereof

Country Status (1)

Country Link
CN (1) CN109387829B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1221487A (en) * 1996-06-07 1999-06-30 施蓝姆伯格工业公司 Method for measuring sound signal propagation delay in fluid by zero-crossing of the said sound signal
CN101118282A (en) * 2006-08-04 2008-02-06 Nec显示器解决方案株式会社 Distance measuring system and method
CN105301594A (en) * 2014-07-25 2016-02-03 恩智浦有限公司 Distance measurement

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100207820A1 (en) * 2006-09-05 2010-08-19 Radio Communication Systems Ltd. Distance measuring device
US9441939B2 (en) * 2010-08-25 2016-09-13 Clairvoyant Technology Llc System for object detection using radio frequency reflection
WO2012048287A2 (en) * 2010-10-08 2012-04-12 Loctronix Corporation Doppler aided inertial navigation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1221487A (en) * 1996-06-07 1999-06-30 施蓝姆伯格工业公司 Method for measuring sound signal propagation delay in fluid by zero-crossing of the said sound signal
CN101118282A (en) * 2006-08-04 2008-02-06 Nec显示器解决方案株式会社 Distance measuring system and method
CN105301594A (en) * 2014-07-25 2016-02-03 恩智浦有限公司 Distance measurement

Also Published As

Publication number Publication date
CN109387829A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
US9210270B2 (en) Echo cancellation for ultrasound
AU2016402256B2 (en) Voice input exception determining method, apparatus, terminal, and storage medium
US10932073B2 (en) Method and system for measuring total sound pressure level of noise, and computer readable storage medium
EP3054707B1 (en) Device, method, and program for measuring sound field
US20190033438A1 (en) Distance detection device and distance detection method thereof
CN110503973B (en) Audio signal transient noise suppression method, system and storage medium
CN103268766A (en) Method and device for speech enhancement with double microphones
US8886527B2 (en) Speech recognition system to evaluate speech signals, method thereof, and storage medium storing the program for speech recognition to evaluate speech signals
CN109387829B (en) Distance detection device and distance detection method thereof
TWI633276B (en) Distance detection device and distance detection method thereof
CN104467939A (en) Method and device for optimizing receiving of multiple antennas
CN109387170B (en) Distance detection device and distance detection method thereof
JP2016507925A (en) Packet collision and impulsive noise detection
JP2013152112A (en) Time difference orientation detection device
TWI646341B (en) Distance detection device and distance detection method thereof
CN109375199B (en) Distance detection device and distance detection method thereof
JP3266121B2 (en) Method and apparatus for detecting single frequency signal
GB2611930A (en) Method and apparatus for on ear detect
TWI633323B (en) Distance detection device and distance detection method thereof
JP2012220466A (en) Optical range-finding apparatus
US9679452B2 (en) Sound field security system and method of determining starting point for analysis of received waveform using the same
TWI633275B (en) Distance detection device and distance detection method thereof
Nakamura et al. Short-Time Noise Suppression Method with Multiple Signals for Received Time Estimation.
JP7306037B2 (en) Person detection method and person detection device
CN110324775B (en) Earphone identification method, mobile terminal, earphone and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant