CN109375199A - Distance detection device and its distance detection method - Google Patents
Distance detection device and its distance detection method Download PDFInfo
- Publication number
- CN109375199A CN109375199A CN201710674498.3A CN201710674498A CN109375199A CN 109375199 A CN109375199 A CN 109375199A CN 201710674498 A CN201710674498 A CN 201710674498A CN 109375199 A CN109375199 A CN 109375199A
- Authority
- CN
- China
- Prior art keywords
- distance
- signal
- sound
- loudspeaker
- time
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Systems for determining distance or velocity not using reflection or reradiation
- G01S11/14—Systems for determining distance or velocity not using reflection or reradiation using ultrasonic, sonic, or infrasonic waves
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
Abstract
The present invention provides a kind of distance detection device and its distance detection method.Voice signal received by sound receiver and preset sound signal are subjected to crosscorrelation operation, to generate cross-correlated signal, calculate first distance and second distance according to the first sound receiving time of corresponding first peak value in loudspeaker output time point of preset sound signal, cross-correlated signal and the second sound receiving time of corresponding second peak value, and according to first distance and second distance calculate sound receiver between reflecting plate at a distance from.
Description
Technical field
The present invention relates to a kind of detection device more particularly to a kind of distance detection device and its distance detection methods.
Background technique
In general, coordinate position is sought in three dimensions and needs many microphone collocation, such as when only one
When loudspeaker are as signal source, need to be greater than more than four microphones, each microphone could be passed through at a distance from loudspeaker with
And the distance between microphone, to calculate the three-dimensional position of particular microphone.
Summary of the invention
The present invention provides a kind of distance detection device and its distance detection method, sound needed for can reducing range measurement connect
Receive device quantity.
Distance detection device of the invention includes loudspeaker, sound receiver and processor.Speaker configurations are in reflection
The side of plate, export preset sound signal, baffle reflection preset sound signal and generate reflected acoustic signal.Processor is by sound
Voice signal received by sound receiver and preset sound signal carry out crosscorrelation operation, to generate cross-correlated signal,
Wherein cross-correlated signal includes the first peak value of corresponding preset sound signal and the second peak value of corresponding reflected acoustic signal,
Processor is according to the time point of loudspeaker output preset sound signal, the first sound receiving time of corresponding first peak value and right
Answer the second sound receiving time of the second peak value to calculate first distance and second distance, and according to first distance and second away from
At a distance from calculating sound receiver is between reflecting plate.
In one embodiment of this invention, above-mentioned first distance be sound receiver between loudspeaker at a distance from, second
Distance be sound receiver between virtual speaker at a distance from, loudspeaker and virtual speaker in symmetrical, are raised relative to reflecting plate
It is separated by third distance between sound device and virtual speaker, processor is according to first distance, second distance and third apart from calculating sound
Sound receiver in the normal direction of reflecting plate between reflecting plate at a distance from.
In one embodiment of this invention, above-mentioned preset sound signal has the amplitude and frequency of time-varying, preset sound
There is between obtained first low-pass filter signal and preset sound signal time difference, processor after signal is low-pass filtered
Low-pass filtering is carried out to generate the second low-pass filter signal to voice signal received by sound receiver, when processor foundation
Between difference and the second low-pass filter signal estimate when sound receiver receives preset sound signal and reflected acoustic signal when
Between.
In one embodiment of this invention, above-mentioned time difference is the package amplitude that loudspeaker exports preset sound signal
Time difference corresponding to the package amplitude peak of the time of peak value and the first low-pass filter signal.
In one embodiment of this invention, above-mentioned low-pass filtering is infinite impulse response filter.
In one embodiment of this invention, above-mentioned crosscorrelation operation is quick crosscorrelation operation.
The present invention also provides a kind of distance detection method of distance detection device, distance detection device include loudspeaker and
Sound receiver, speaker configurations are in the side of reflecting plate, to export preset sound signal, baffle reflection preset sound letter
Number and generate reflected acoustic signal, the distance detection method of distance detection device includes the following steps.Sound receiver is connect
The voice signal that receives and preset sound signal carry out crosscorrelation operation, to generate cross-correlated signal, wherein crosscorrelation
Signal includes the first peak value of corresponding preset sound signal and the second peak value of corresponding reflected acoustic signal.It is defeated according to loudspeaker
The rising tone at the time point of preset sound signal, the first sound receiving time of corresponding first peak value and corresponding second peak value out
Sound receiving time calculates first distance and second distance.According to first distance and second distance calculating sound receiver and instead
Penetrate the distance between plate.
In one embodiment of this invention, above-mentioned first distance be sound receiver between loudspeaker at a distance from, second
Distance be sound receiver between virtual speaker at a distance from, loudspeaker and virtual speaker in symmetrical, are raised relative to reflecting plate
It is separated by third distance between sound device and virtual speaker, the distance detection method of distance detection device includes, according to first distance, the
Two distance and third distance calculate sound receiver in the normal direction of reflecting plate between reflecting plate at a distance from.
In one embodiment of this invention, above-mentioned preset sound signal has the amplitude and frequency of time-varying, preset sound
There is between obtained first low-pass filter signal and preset sound signal time difference, distance inspection after signal is low-pass filtered
The distance detection method for surveying device includes the following steps.To voice signal received by sound receiver carry out low-pass filtering with
Generate the second low-pass filter signal.It estimates sound receiver according to time difference and the second low-pass filter signal and receives default sound
Time when sound signal and reflected acoustic signal.
In one embodiment of this invention, above-mentioned time difference is the package amplitude that loudspeaker exports preset sound signal
Time difference corresponding to the package amplitude peak of the time of peak value and the first low-pass filter signal.
In one embodiment of this invention, above-mentioned low-pass filtering is infinite impulse response filter.
In one embodiment of this invention, above-mentioned crosscorrelation operation is quick crosscorrelation operation.
Based on above-mentioned, the embodiment of the present invention by voice signal received by sound receiver and preset sound signal into
Row crosscorrelation operation, time point, crosscorrelation to generate cross-correlated signal, according to loudspeaker output preset sound signal
The first sound receiving time of corresponding first peak value and the second sound receiving time of corresponding second peak value calculate the in signal
One distance and second distance, and according to first distance and second distance calculate sound receiver between reflecting plate at a distance from,
Sound receiver quantity needed for range measurement so can be reduced.
To make the foregoing features and advantages of the present invention clearer and more comprehensible, special embodiment below, and it is detailed to cooperate attached drawing to make
Carefully it is described as follows.
Detailed description of the invention
Fig. 1 is the schematic diagram according to the distance detection device of one embodiment of the invention;
Fig. 2 is the waveform diagram according to the cross-correlated signal of one embodiment of the invention;
Fig. 3 A is the waveform diagram of the preset sound signal exported according to the loudspeaker of one embodiment of the invention;
Fig. 3 B is the waveform diagram of voice signal received by sound receiver according to one embodiment of the invention;
Fig. 4 is the flow chart according to the distance detection method of the distance detection device of one embodiment of the invention.
Drawing reference numeral explanation:
102,102 ': loudspeaker
104: sound receiver
106: processor
A1: reflecting plate
D, R, R1, R2, H: distance
S (t): preset sound signal
TA, tB, t_Tx, t_Max, t_Tx_IIR, t_Rx_IIR: time
T1: time difference
TA, T_C, T_N: time span
Tx_IIR: the first low-pass filter signal
Rx_IIR: the second low-pass filter signal
Y (t): voice signal
S402~S406: the distance detection method step of distance detection device
Specific embodiment
Fig. 1 is to please refer to Fig. 1 according to the schematic diagram of the distance detection device of one embodiment of the invention.Distance detection device
Including loudspeaker 102, sound receiver 104 and processor 106, wherein processor 106 couples sound receiver 104, loudspeaking
The relative distance R1 of device 102 and sound receiver 104 may be, for example, it is fixed, be so not limited.Loudspeaker 102 is configured at reflection
The side of plate A1, the exportable preset sound signal of loudspeaker 102, reflecting plate A1 can reflect preset sound signal and generate reflected sound
Sound signal, wherein preset sound signal has the amplitude and frequency of time-varying, that is to say, that preset sound signal is in different time points
Different amplitude and frequency can be corresponded to, accordingly, reflected acoustic signal also has the amplitude and frequency of time-varying.Sound receiver
104 to receive voice signal, and processor 106 can be used to received by preset sound signal and sound receiver 104
Voice signal carries out signal processing.Voice signal received by sound receiver 104 may include the default of the output of loudspeaker 102
Voice signal and reflecting plate A1 reflection preset sound signal and the reflected acoustic signal that generates, wherein reflected acoustic signal can wait
It imitates in centered on reflecting plate A1, and is exported with loudspeaker 102 in the virtual speaker 102 ' of balanced configuration, as shown in Figure 1,
Loudspeaker 102 and virtual speaker 102 ' relative to reflecting plate A1 in symmetrical, and all with reflecting plate A1 distance d.
Processor 106 can general service for example including central processing unit or other programmables or specific use
Microprocessor (Microprocessor), digital signal processor (Digital Signal Processor, DSP), controller,
Special application integrated circuit (Application Specific Integrated Circuit, ASIC), programmable logic dress
Set the combination of (Programmable Logic Device, PLD) or other similar device or these devices.In addition, processor
It may be configured with the volatile storage medias such as random access memory (RAM) or read-only memory (ROM) in 106, processor 106 can
Such as be incorporated into same electronic device (such as portable electronic devices) with sound receiver 104, also or with sound receive
Device 104 is arranged respectively in different electronic devices.In some embodiments, processor 106 can also pass through network or other sides
Formula carries out signal transmission with loudspeaker 102 and sound receiver 104 in a wired or wireless manner.
The preset sound that processor 106 can be exported voice signal received by sound receiver 104 and loudspeaker
Signal carries out crosscorrelation operation, and to generate cross-correlated signal, wherein crosscorrelation operation may be, for example, quick crosscorrelation
Operation is so not limited.Fig. 2 is the waveform diagram according to the cross-correlated signal of one embodiment of the invention.Such as Fig. 2 institute
Show, the voice signal as received by sound receiver 104 includes the preset sound signal and reflection that loudspeaker 102 exports
Plate A1 reflection preset sound signal and the reflected acoustic signal that generates, therefore cross-correlated signal will include corresponding preset sound letter
Number the first peak value and corresponding reflected acoustic signal the second peak value, wherein the corresponding sound receiving time tA of the first peak value with
And second peak value correspond to sound receiving time tB.Processor 106 can calculate sound receiver 104 according to sound receiving time tA
The distance between loudspeaker 102 R1, and sound receiver 104 and virtual speaker are calculated according to sound receiving time tB
The distance between 102 ' R2.Such processor 106 can be according to distance R1, distance R2 and loudspeaker 102 and virtual speaker
The distance between 102 ' calculate sound receivers 104 between reflecting plate A1 at a distance from, such as calculate sound receiver 104 and loudspeaking
The distance R between the midpoint of virtual speaker 102 ' of device 102, or sound receiver 104 is calculated in the normal side of reflecting plate A1
The distance H between reflecting plate A1 upwards.As shown in the above, a sound can be used only in the distance detection device of the present embodiment
Receiver 104 obtains the distance R or distance H between reflecting plate A1 of sound receiver 104, can be used compared to the prior art less
Sound receiver can achieve the purpose that range measurement.
Specifically, the distance between sound receiver 104 and loudspeaker 102 R1 and sound receiver 104 and virtual
The distance between loudspeaker 102 ' R2, can be respectively with the acquisition of following formula:
R1=c (tB-tA) (1)
R2=c (tB-tA) (2)
Wherein c is the velocity of sound.In addition, between sound receiver 104 and loudspeaker 102 and the midpoint of virtual speaker 102 ' away from
From R and sound receiver 104, distance H can be obtained for example by following formula respectively between reflecting plate A1:
Voice signal received by sound receiver 104 and preset sound signal are so carried out crosscorrelation operation to come
Cross-correlated signal is generated, exports time point of preset sound signal according to loudspeaker 102, corresponding first in cross-correlated signal
The sound receiving time tB of the sound receiving time tA of peak value and corresponding second peak value calculates distance R1 and distance R2,
According to distance R1 and distance R2 calculate sound receiver 104 between reflecting plate A1 at a distance from, and efficiently reduce range measurement
Required sound receiver quantity.
In some embodiments, processor 106 can carry out data biography with loudspeaker 102 for example by way of network transmission
It is defeated, to learn that loudspeaker 102 exports the time point of preset sound signal.After wherein, preset sound signal is low-pass filtered (such as
Infinite impulse response filter is carried out to preset sound signal, is so not limited) obtained first low-pass filter signal and pre-
If between voice signal have time difference, processor 106 can be estimated according to this time difference sound receiver 104 receive it is pre-
If the corresponding time when package amplitude peak of voice signal, and preset sound signal is received according to sound receiver 104
Package amplitude peak correct time and loudspeaker 102 export preset sound signal package amplitude peak time calculate raise
The distance R1 between sound receiver 104 of sound device 102.For example, Fig. 3 A is defeated according to the loudspeaker of one embodiment of the invention
The waveform diagram of preset sound signal out.In figure 3 a, the package amplitude peak of preset sound signal s (t) corresponds to the time
T_Tx, and the low-pass filtered rear obtained first low-pass filter signal Tx_IIR (shown in dotted line) of preset sound signal s (t)
Amplitude peak correspond to time t_Tx_IIR, then between the first low-pass filter signal Tx_IIR and preset sound signal s (t) when
Between difference t1 be equal to t_Tx_IIR-t_Tx.
Processor 106 voice signal received by sound receiver 104 can be carried out low-pass filtering (such as carry out with it is pre-
If the identical low-pass filtering treatment of the low-pass filtering that voice signal is carried out) to generate the second low-pass filter signal, processor 106
The package amplitude peaks that sound receiver 104 receives preset sound signal are estimated according to time difference and the second low-pass filter signal
The second corresponding time when value.For example, Fig. 3 B is received by the sound receiver according to one embodiment of the invention
The waveform diagram of voice signal.In figure 3b, after voice signal y (t) received by sound receiver 104 is low-pass filtered
The amplitude peak of obtained second low-pass filter signal Rx_IIR (shown in dotted line) corresponds to time t_Rx_IIR, processor
106 can subtract time t_Rx_IIR time difference t1, to estimate the package that sound receiver 104 receives preset sound signal
Corresponding time t_Max when amplitude peak.
Processor 106 can determine whether the frequency for the voice signal y (t) that the sound receiver 104 of corresponding time t_Max receives
It is default whether the difference between the frequency values for the preset sound signal s (t) that value is exported with the loudspeaker 102 of corresponding time t_Tx exceeds
Range.Specifically, processor 106 can to by the basis of time t_Max (such as centered on time t_Max, so not as
Limit) time span T_C in sound receiver 104 received by voice signal y (t) carry out Fourier transform operation, and
Judge on the basis of by time t_Tx sound in the time span T_C of (such as centered on time t_Tx, being so not limited)
Voice signal y (t) received by receiver 104 in a frequency domain with peak swing frequency-region signal frequency values with to it is corresponding when
Between t_Tx loudspeaker 102 export preset sound signal s (t) frequency values between difference whether exceed preset range.When right
The frequency values for the voice signal y (t) that the sound receiver 104 of t_Max receives between seasonable and the loudspeaker of corresponding time t_Tx
102 output preset sound signal s (t) frequency values between difference without departing from preset range when, representative voice receiver 104 is
Receive preset sound signal s (t).Wherein time span T_C can for example be set as the package of corresponding preset sound signal s (t)
Amplitude is less than the time span of preset value, that is to say, that comes merely with the biggish part of package amplitude in preset sound signal s (t)
Furthermore the comparison for carrying out frequency values can also reduce the operand of processor 106 to improve the accuracy of comparison result.
The frequency values for the voice signal y (t) that processor 106 can be received in the sound receiver 104 of corresponding time t_Max
Difference between the frequency values of the preset sound signal s (t) of the loudspeaker 102 of corresponding time t_Tx output is without departing from preset range
When, preset sound signal s (t) that the loudspeaker 102 in the time span T_C on the basis of time t_Tx is exported with the time
Voice signal received by the sound receiver 104 in time span T_N on the basis of t_Max carries out crosscorrelation operation,
To generate cross-correlated signal, wherein crosscorrelation operation may be, for example, quick crosscorrelation operation, so be not limited, furthermore
Time span T_N is greater than time span T_C, and time span T_N can for example be set greater than equal to preset sound signal s's (t)
Time span TA, but preset sound signal s (t) transmitting loudspeaker 102 and the energy in use space of sound receiver 104 must be less than
Time needed for the farthest relative distance enough configured.Processor 106 can be corresponding to the amplitude peak according to cross-correlated signal
Time t_Rx (that is, sound receiver 104 receives the correct time of the package amplitude peak of preset sound signal s (t),
Can be used as the time tA of Fig. 1 embodiment) the distance R1 between time t_Tx calculating loudspeaker 102 and sound receiver 104.Citing
For, the distance R1 between sound receiver 104 of loudspeaker 102 can be equal to (t_Rx-t_Tx)/c, and wherein c is the velocity of sound.
It is worth noting that, in some embodiments, time span T_N can also be set to be less than time span TA, example
The time span T_N package amplitude for being set as corresponding preset sound signal s (t) is such as less than to the time span of another preset value.
So time span T_N is set as using less than preset sound signal s (t) transmitting loudspeaker 102 with sound receiver 104
Time needed for the farthest relative distance that can be configured in space, processor 106 are just not required to such as the prior art to default sound
For a long time, (length that at least takes time TA is raised sound signal s (t) plus preset sound signal s (t) transmitting with sound receiver 104
Time needed for the farthest relative distance that sound device 102 can configure in use space with sound receiver 104) in received
The voice signal y (t) that arrives carries out crosscorrelation operation, and can significantly reduce processor 106 by preset sound signal s (t) with
The time of voice signal y (t) progress crosscorrelation operation.Moreover, because processor 106 first judge be with time t_Tx
Voice signal y (t) received by sound receiver 104 has peak swing in a frequency domain in the time span T_C of benchmark
Difference between the frequency values for the preset sound signal s (t) that the frequency values of frequency-region signal are exported with the loudspeaker 102 of corresponding time t_Tx
Value also can ensure that sound receiver 104 has received preset sound signal s (t), and then can be accurate without departing from preset range
Ground obtains the time t_Rx that sound receiver 104 receives the package amplitude peak of preset sound signal s (t), and then calculates
The distance R1 between sound receiver 104 of loudspeaker 102.
And so on, distance of the virtual speaker 102 ' between sound receiver 104 between distance R2 can also be similar
Mode obtains, and those skilled in the art can should learn through the foregoing embodiment embodiments thereof, therefore details are not described herein.
In some embodiments, in the case of the relative velocity between loudspeaker 102 and sound receiver 104 is not 0.Place
Reason device 106 can also be used it is all general strangle effect come loudspeaker 102 that corrected Calculation goes out between sound receiver 104 at a distance from.Citing
For, loudspeaker 102 for example can export a preset sound signal every a period, in the present embodiment, preset sound letter
Number s (t) can be with following formula subrepresentation:
S (t)=A (t) cos [2 π f (t) t] (5)
Wherein t is the time, and A (t) is the amplitude of preset sound signal s (t), and f (t) is the frequency of preset sound signal s (t)
Rate.The time span of each period can for example be set as the time span of preset sound signal s (t) plus preset sound signal s
(t) needed for the farthest relative distance that transmitting loudspeaker 102 and sound receiver 104 can configure in use space when
Between, it so can ensure that sound recipient 104 all can receive the preset sound signal that loudspeaker 102 is issued in each period
s(t)。
Assuming that loudspeaker 102 exports preset sound signal s (t) m-th of period, wherein m is the integer greater than 1, and pre-
If voice signal s (t) corresponds to time t_Tx and frequency f_TMax in the package amplitude peak of preset sound signal s (t), in addition
The preset sound signal y (t) that sound receiver 104 receives is in time t_Max respective frequencies f_TMax.Wherein frequency f_RMax
It can be for example by processor 106 to by (such as centered on time t_Max, being so not limited) on the basis of time t_Max
Voice signal y (t) received by sound receiver 104 carries out Fourier transform operation and acquires in time span T_C.Frequency
F_RMax may be, for example, voice signal y (t) in a frequency domain with peak swing frequency-region signal frequency values, so not as
Limit.In some embodiments, processor 106 also can be according further to obtained multiple frequency domains after progress Fourier transform operation
Signal carries out interpolative operation (such as difference operation in multinomial, be so not limited), to obtain more accurate frequency f_RMax.Its
The package amplitude that middle time span T_C can for example be set as corresponding preset sound signal s (t) is less than the time span of preset value,
By carrying out the comparison of frequency values merely with the biggish part of package amplitude in preset sound signal s (t), calculating frequency can be improved
The accuracy of rate, while can simultaneously reduce the operand of processor 106.
Processor 106 can be according to the relative velocity between previous calculated loudspeaker 102 and sound receiver 104 using all
The general frequency values for strangling effect amendment preset sound signal s (t), for example, processor 106 is for example default with the amendment of following formula
The frequency f (t) of voice signal s (t):
Wherein f ' (t) is revised frequency,It is received for the loudspeaker 102 and sound of m-th of -1 rank of period kth
Initial relative velocity between device 104, c are the velocity of sound, and k is positive integer.Revised preset sound signal x (t) can be such as following formula
It is shown:
Initial relative velocity (k is equal to relative velocity when 1) between loudspeaker 102 and sound receiver 104 can be by handling
Device 106 is calculated according to frequency f_RMax and frequency f_TMax and is obtained, such as can be calculated and be obtained according to following formula.
WhereinFor the initial relative velocity between the loudspeaker 102 and sound receiver 104 of m-th of period.Processor
106 can intersect revised preset sound signal x (t) and voice signal y (t) received by sound receiver 104
Related operation, to generate cross-correlated signal, wherein crosscorrelation operation may be, for example, quick crosscorrelation operation, so not with this
It is limited.Time corresponding to processor 106 and package amplitude peak according to cross-correlated signal and preset sound signal s (t)
The corresponding time t_Tx of package amplitude peak calculate the distance R1 between sound receiver 104 of loudspeaker 102.
For example, the amendment relative distance of the kth rank of m-th of periodIt can be as shown in following formula:
Processor 106 can according to corresponding m-th of period loudspeaker 102 it is opposite with the amendment between sound receiver 104 away from
When calculating m-th corresponding from the amendment relative distance between the loudspeaker 102 and sound receiver 104 of corresponding the m-1 period
Relative velocity between the loudspeaker 102 and sound receiver 104 of section.For example, the relative velocity of the kth rank of m-th of periodIt can be as shown in following formula:
Wherein Td is the time span of each period, Rm-1For the m-1 period calculated relative distance.Processor
106 can obtain initial relative velocityAfterwards, start to calculate loudspeaker with pulling over according to above-mentioned formula (6), (7), (9), (10)
Relative velocity between 102 and sound receiver 104, until relative velocity converges to particular value.For example, processor 106 can
According to the loudspeaker 102 of corresponding m-th of period and the relative velocity between sound receiver 104 and corresponding the m-1 period
Relative velocity between loudspeaker 102 and sound receiver 104 judges the loudspeaker 102 and sound receiver of corresponding m-th of period
Whether the relative velocity between 104 has converged in preset range.For example, processor 106 can judge speed relatively according to following formula
Whether degree has restrained:
Wherein THV is preset threshold value, whenAbsolute value converge to what-THV and THV were constituted
When preset range, represent processor 106 the kth rank of calculated m-th of period amendment relative distancePrecision
Reach requirement, and can finally determine relative distance as m-th of period.Similarly, the kth rank of m-th of period is relatively fast
DegreeIt can also be by the final determining relative velocity as m-th of period.In addition, the loudspeaker 102 of m-th of period connects with sound
Receive the final determining relative acceleration a between device 104mIt can be as shown in following formula:
am=(vm-vm-1)/Td (12)
And so on, final between the virtual speaker 102 ' and sound receiver 104 of m-th of period determine it is opposite away from
From, it is final determine relative velocity and it is final determine relative acceleration can also similar mode obtain, this field tool is usually known
The knowledgeable can should learn through the foregoing embodiment embodiments thereof, therefore details are not described herein.
Fig. 4 is to please refer to figure according to the flow chart of the distance detection method of the distance detection device of one embodiment of the invention
3.In the present embodiment, speaker configurations are in the side of reflecting plate, and loudspeaker and virtual speaker are in pair relative to reflecting plate
Claim, the exportable preset sound signal of loudspeaker, reflecting plate can reflect preset sound signal and generate reflected acoustic signal.Loudspeaker
The preset sound signal of output has the amplitude and frequency of time-varying, accordingly, reflected acoustic signal also have the amplitude of time-varying with
Frequency.As can be seen from the above embodiments, the distance detection method of distance detection device can include at least the following steps.Firstly, by sound
Voice signal received by sound receiver and preset sound signal carry out crosscorrelation operation, to generate cross-correlated signal,
Wherein cross-correlated signal includes the first peak value of corresponding preset sound signal and the second peak value of corresponding reflected acoustic signal
(step S402), crosscorrelation operation may be, for example, quick crosscorrelation operation, so be not limited.Then, according to loudspeaker
Export the second of the time point of preset sound signal, the first sound receiving time of corresponding first peak value and corresponding second peak value
Sound receiving time calculates first distance and second distance (step S404), and wherein first distance is sound receiver and loudspeaking
Distance between device, second distance be sound receiver between virtual speaker at a distance from, be separated by between loudspeaker and virtual speaker
One section of third distance.Then, (step at a distance from according to first distance and second distance calculating sound receiver between reflecting plate
S406), such as sound receiver can be calculated in the normal of reflecting plate according to the first distance, second distance and third distance
On direction between reflecting plate at a distance from.
Wherein, after preset sound signal is low-pass filtered obtained first low-pass filter signal and preset sound signal it
Between have time difference, wherein time difference may be, for example, loudspeaker output preset sound signal package amplitude peak time
Time difference corresponding to package amplitude peak with the first low-pass filter signal.In some embodiments, sound can be received
Voice signal received by device carries out low-pass filtering to generate the second low-pass filter signal, and low with second according to time difference
Bandpass filtered signal estimates time when sound receiver receives preset sound signal and reflected acoustic signal, according to loudspeaker
The time and sound receiver for exporting the package amplitude peak of preset sound signal receive preset sound signal and reflection sound
Time when signal calculate sound receiver between reflecting plate at a distance from.
In conclusion the embodiment of the present invention by voice signal received by sound receiver and preset sound signal into
Row crosscorrelation operation, time point, crosscorrelation to generate cross-correlated signal, according to loudspeaker output preset sound signal
The first sound receiving time of corresponding first peak value and the second sound receiving time of corresponding second peak value calculate the in signal
One distance and second distance, and according to first distance and second distance calculate sound receiver between reflecting plate at a distance from,
Sound receiver quantity needed for range measurement so can be reduced.
Although the present invention is disclosed as above with embodiment, however, it is not to limit the invention, any technical field
Middle technical staff, without departing from the spirit and scope of the present invention, when can make a little change and retouching, therefore protection of the invention
Subject to range ought be defined depending on claims.
Claims (12)
1. a kind of distance detection device characterized by comprising
Loudspeaker is configured at the side of reflecting plate, exports preset sound signal, preset sound signal described in the baffle reflection
And generate reflected acoustic signal;
Sound receiver;And
Voice signal received by the sound receiver and the preset sound signal are carried out crosscorrelation fortune by processor
It calculates, to generate cross-correlated signal, wherein the cross-correlated signal includes the first peak value of the corresponding preset sound signal
And the second peak value of the corresponding reflected acoustic signal, the processor export the preset sound letter according to the loudspeaker
Number time point, the first sound receiving time of corresponding first peak value and the second sound of corresponding second peak value connect
First distance and second distance are calculated between time receiving, and calculate the sound according to the first distance and the second distance
Receiver between the reflecting plate at a distance from.
2. distance detection device according to claim 1, which is characterized in that the first distance is the sound receiver
At a distance between the loudspeaker, the second distance be the sound receiver between virtual speaker at a distance from, it is described to raise
Sound device and the virtual speaker in symmetrical, are separated by the relative to the reflecting plate between the loudspeaker and the virtual speaker
Three distances, the processor calculate the sound according to the first distance, the second distance and third distance and connect
Receive device in the normal direction of the reflecting plate between the reflecting plate at a distance from.
3. distance detection device according to claim 1 or 2, which is characterized in that the preset sound signal has time-varying
Amplitude and frequency, obtained first low-pass filter signal and the default sound after the preset sound signal is low-pass filtered
There is time difference, the processor carries out voice signal received by the sound receiver described low between sound signal
Pass filter is to generate the second low-pass filter signal, and the processor is according to the time difference and second low-pass filter signal
Estimate the time when sound receiver receives the preset sound signal and the reflected acoustic signal.
4. distance detection device according to claim 3, which is characterized in that the time difference is loudspeaker output
The time of the package amplitude peak of the preset sound signal and the package amplitude peak institute of first low-pass filter signal are right
The time difference answered.
5. distance detection device according to claim 3, which is characterized in that the low-pass filtering is infinite impulse response filter
Wave.
6. distance detection device according to claim 1 or 2, which is characterized in that the crosscorrelation operation is quickly to hand over
Pitch related operation.
7. a kind of distance detection method of distance detection device, which is characterized in that the distance detection device include loudspeaker with
And sound receiver, the speaker configurations are in the side of reflecting plate, to export preset sound signal, the baffle reflection
The preset sound signal and generate reflected acoustic signal, the distance detection method of the distance detection device includes:
Voice signal received by the sound receiver and the preset sound signal are subjected to crosscorrelation operation, to produce
Raw cross-correlated signal, wherein the cross-correlated signal includes the first peak value and correspondence of the corresponding preset sound signal
Second peak value of the reflected acoustic signal;
The time point of the preset sound signal, the first sound reception of corresponding first peak value are exported according to the loudspeaker
The second sound receiving time of time and corresponding second peak value calculates first distance and second distance;And
According to the first distance and the second distance calculate the sound receiver between the reflecting plate at a distance from.
8. the distance detection method of distance detection device according to claim 7, which is characterized in that the first distance is
The sound receiver between the loudspeaker at a distance from, the second distance is between the sound receiver and virtual speaker
Distance, the loudspeaker and the virtual speaker relative to the reflecting plate in symmetrical, the loudspeaker and described virtual
It is separated by third distance between loudspeaker, the distance detection method of the distance detection device includes:
The sound receiver is calculated in the reflection according to the first distance, the second distance and third distance
In the normal direction of plate between the reflecting plate at a distance from.
9. the distance detection method of distance detection device according to claim 7 or 8, which is characterized in that the default sound
Sound signal has the amplitude and frequency of time-varying, obtained first low-pass filtering letter after the preset sound signal is low-pass filtered
There is time difference, the distance detection method of the distance detection device includes: number between the preset sound signal
The low-pass filtering is carried out to generate the second low-pass filter signal to voice signal received by the sound receiver;
And
The sound receiver, which is estimated, according to the time difference and second low-pass filter signal receives the default sound
Time when sound signal and the reflected acoustic signal.
10. the distance detection method of distance detection device according to claim 9, which is characterized in that the time difference
For the loudspeaker export the package amplitude peak of the preset sound signal time and first low-pass filter signal
Time difference corresponding to package amplitude peak.
11. the distance detection method of distance detection device according to claim 9, which is characterized in that the low-pass filtering
For infinite impulse response filter.
12. the distance detection method of distance detection device according to claim 7 or 8, which is characterized in that the intersection phase
Pass operation is quick crosscorrelation operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710674498.3A CN109375199B (en) | 2017-08-09 | 2017-08-09 | Distance detection device and distance detection method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710674498.3A CN109375199B (en) | 2017-08-09 | 2017-08-09 | Distance detection device and distance detection method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109375199A true CN109375199A (en) | 2019-02-22 |
CN109375199B CN109375199B (en) | 2022-12-06 |
Family
ID=65404189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710674498.3A Active CN109375199B (en) | 2017-08-09 | 2017-08-09 | Distance detection device and distance detection method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109375199B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118282A (en) * | 2006-08-04 | 2008-02-06 | Nec显示器解决方案株式会社 | Distance measuring system and method |
US20110164466A1 (en) * | 2008-07-08 | 2011-07-07 | Bruel & Kjaer Sound & Vibration Measurement A/S | Reconstructing an Acoustic Field |
CN102893175A (en) * | 2010-05-20 | 2013-01-23 | 皇家飞利浦电子股份有限公司 | Distance estimation using sound signals |
CN103443649A (en) * | 2011-03-03 | 2013-12-11 | 高通股份有限公司 | Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound |
CN105721066A (en) * | 2014-09-30 | 2016-06-29 | 财团法人工业技术研究院 | Space state detection device, system and method based on sound waves |
TW201638608A (en) * | 2015-04-28 | 2016-11-01 | 英特爾公司 | Measurement of distance between devices using audio signals |
CN106595572A (en) * | 2016-10-20 | 2017-04-26 | 北京理工大学 | Method and apparatus for measuring low-altitude flight height of aircrafts |
-
2017
- 2017-08-09 CN CN201710674498.3A patent/CN109375199B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118282A (en) * | 2006-08-04 | 2008-02-06 | Nec显示器解决方案株式会社 | Distance measuring system and method |
US20110164466A1 (en) * | 2008-07-08 | 2011-07-07 | Bruel & Kjaer Sound & Vibration Measurement A/S | Reconstructing an Acoustic Field |
CN102893175A (en) * | 2010-05-20 | 2013-01-23 | 皇家飞利浦电子股份有限公司 | Distance estimation using sound signals |
CN103443649A (en) * | 2011-03-03 | 2013-12-11 | 高通股份有限公司 | Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound |
CN105721066A (en) * | 2014-09-30 | 2016-06-29 | 财团法人工业技术研究院 | Space state detection device, system and method based on sound waves |
TW201638608A (en) * | 2015-04-28 | 2016-11-01 | 英特爾公司 | Measurement of distance between devices using audio signals |
CN106595572A (en) * | 2016-10-20 | 2017-04-26 | 北京理工大学 | Method and apparatus for measuring low-altitude flight height of aircrafts |
Also Published As
Publication number | Publication date |
---|---|
CN109375199B (en) | 2022-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3232686B1 (en) | Neural network-based loudspeaker modeling with a deconvolution filter | |
CN106067783B (en) | FIR filter design method based on particle cluster algorithm | |
WO2012010912A3 (en) | Touch sensitive device | |
CN109815942A (en) | Normal mode feature extracting method based on ambient sea noise signal | |
CN204006502U (en) | For the control device of air-conditioner noise reduction | |
TW201028023A (en) | Phase calibration module, voice processing apparatus, and method for calibrating phase mismatch | |
CN107864444B (en) | A kind of microphone array frequency response calibration method | |
TWI691216B (en) | Cross-cancellation of audio signals in a stereo flat panel speaker | |
CN104412616A (en) | Noise suppression based on correlation of sound in a microphone array | |
CN109188017A (en) | A kind of wind direction and wind velocity detection device and detection method based on array of ultrasonic sensors | |
CN108111704A (en) | A kind of non-contact type self adaption echo cancelling device and echo cancel method | |
CN104869519B (en) | A kind of method and system of test microphone background noise | |
US20190033438A1 (en) | Distance detection device and distance detection method thereof | |
CN105336339B (en) | A kind for the treatment of method and apparatus of voice frequency signal | |
CN105187029B (en) | A kind of control method and device based on IFX LMS adaptive algorithms | |
CN109506762B (en) | Hydrophone received signal correction method based on filter | |
CN109375199A (en) | Distance detection device and its distance detection method | |
CN107515422B (en) | A kind of high-precision shallow seismic profile acquisition system | |
CA2477024A1 (en) | Voice matching system for audio transducers | |
Samarasinghe et al. | On room impulse response between arbitrary points: An efficient parameterization | |
TWI633275B (en) | Distance detection device and distance detection method thereof | |
TWI646341B (en) | Distance detection device and distance detection method thereof | |
JP6433630B2 (en) | Noise removing device, echo canceling device, abnormal sound detecting device, and noise removing method | |
TWI633323B (en) | Distance detection device and distance detection method thereof | |
CN112562625B (en) | Active noise reduction filter design method, noise reduction method, system and electronic equipment |
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 |