Movatterモバイル変換


[0]ホーム

URL:


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

Distance detection device and distance detection method thereof
Download PDF

Info

Publication number
CN109375199B
CN109375199BCN201710674498.3ACN201710674498ACN109375199BCN 109375199 BCN109375199 BCN 109375199BCN 201710674498 ACN201710674498 ACN 201710674498ACN 109375199 BCN109375199 BCN 109375199B
Authority
CN
China
Prior art keywords
distance
sound
sound signal
signal
speaker
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
CN201710674498.3A
Other languages
Chinese (zh)
Other versions
CN109375199A (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 IncfiledCriticalAcer Inc
Priority to CN201710674498.3ApriorityCriticalpatent/CN109375199B/en
Publication of CN109375199ApublicationCriticalpatent/CN109375199A/en
Application grantedgrantedCritical
Publication of CN109375199BpublicationCriticalpatent/CN109375199B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a distance detection device and a distance detection method thereof. The method comprises the steps of carrying out cross correlation operation on a sound signal received by a sound receiver and a preset sound signal to generate a cross correlation signal, calculating a first distance and a second distance according to a time point of the preset sound signal output by a loudspeaker, a first sound receiving time corresponding to a first peak value and a second sound receiving time corresponding to a second peak value in the cross correlation signal, and calculating the distance between the sound receiver and a reflecting plate according to the first distance and the second distance.

Description

Translated fromChinese
距离检测装置及其距离检测方法Distance detection device and distance detection method thereof

技术领域technical field

本发明涉及一种检测装置,尤其涉及一种距离检测装置及其距离检测方法。The invention relates to a detection device, in particular to a distance detection device and a distance detection method thereof.

背景技术Background technique

一般来说,在三维空间中求取座标位置需要许多的麦克风搭配,例如当只有一个喇叭作为信号源时,需要大于四个以上的麦克风,才能通过每一个麦克风与喇叭的距离以及麦克风彼此之间的距离,来计算出特定麦克风的三维位置。Generally speaking, obtaining the coordinate position in three-dimensional space requires a lot of microphone collocations. For example, when there is only one speaker as the signal source, more than four microphones are required to pass the distance between each microphone and the speaker and the distance between the microphones. to calculate the three-dimensional position of a specific microphone.

发明内容Contents of the invention

本发明提供一种距离检测装置及其距离检测方法,可减少距离测量所需的声音接收器数量。The invention provides a distance detection device and a distance detection method thereof, which can reduce the number of sound receivers required for distance measurement.

本发明的距离检测装置包括扬声器、声音接收器以及处理器。扬声器配置于反射板的一侧,输出预设声音信号,反射板反射预设声音信号而产生反射声音信号。处理器将声音接收器所接收到的声音信号与预设声音信号进行交叉相关运算,以产生交叉相关信号,其中交叉相关信号包括对应预设声音信号的第一峰值以及对应反射声音信号的第二峰值,处理器依据扬声器输出预设声音信号的时间点、对应第一峰值的第一声音接收时间以及对应第二峰值的第二声音接收时间计算第一距离以及第二距离,并依据第一距离以及第二距离计算声音接收器与反射板间的距离。The distance detecting device of the present invention includes a loudspeaker, a sound receiver and a processor. The loudspeaker is arranged on one side of the reflective plate and outputs preset sound signals, and the reflective plate reflects the preset sound signals to generate reflected sound signals. The processor performs a cross-correlation operation on the sound signal received by the sound receiver and the preset sound signal to generate a cross-correlation signal, wherein the cross-correlation signal includes a first peak corresponding to the preset sound signal and a second peak corresponding to the reflected sound signal. Peak, the processor calculates the first distance and the second distance according to the time point when the speaker outputs the preset sound signal, the first sound receiving time corresponding to the first peak, and the second sound receiving time corresponding to the second peak, and calculates the first distance and the second distance according to the first distance And the second distance calculates the distance between the sound receiver and the reflector.

在本发明的一实施例中,上述的第一距离为声音接收器与扬声器间的距离,第二距离为声音接收器与虚拟扬声器间的距离,扬声器与虚拟扬声器相对于反射板呈对称,扬声器与虚拟扬声器间相隔第三距离,处理器依据第一距离、第二距离以及第三距离计算声音接收器在反射板的法线方向上与反射板间的距离。In an embodiment of the present invention, the above-mentioned first distance is the distance between the sound receiver and the speaker, the second distance is the distance between the sound receiver and the virtual speaker, the speaker and the virtual speaker are symmetrical with respect to the reflector, and the speaker There is a third distance between the virtual speaker and the processor to calculate the distance between the sound receiver and the reflector in the normal direction of the reflector according to the first distance, the second distance and the third distance.

在本发明的一实施例中,上述的预设声音信号具有时变的振幅与频率,预设声音信号经低通滤波后所得到的第一低通滤波信号与预设声音信号之间具有时间差值,处理器对声音接收器所接收到的声音信号进行低通滤波以产生第二低通滤波信号,处理器依据时间差值与第二低通滤波信号预估声音接收器接收到预设声音信号与反射声音信号时的时间。In an embodiment of the present invention, the above-mentioned preset sound signal has a time-varying amplitude and frequency, and there is a time gap between the first low-pass filtered signal obtained after the preset sound signal is low-pass filtered and the preset sound signal. difference, the processor performs low-pass filtering on the sound signal received by the sound receiver to generate a second low-pass filtered signal, and the processor estimates that the sound receiver receives a preset signal based on the time difference and the second low-pass filtered signal The sound signal and the time when the sound signal is reflected.

在本发明的一实施例中,上述的时间差值为扬声器输出预设声音信号的封包振幅峰值的时间与第一低通滤波信号的封包振幅峰值所对应的时间差值。In an embodiment of the present invention, the above-mentioned time difference is a time difference corresponding to the time when the loudspeaker outputs the peak packet amplitude of the preset sound signal and the peak packet amplitude of the first low-pass filtered signal.

在本发明的一实施例中,上述的低通滤波为无限脉冲响应滤波。In an embodiment of the present invention, the aforementioned low-pass filter is an infinite impulse response filter.

在本发明的一实施例中,上述的交叉相关运算为快速交叉相关运算。In an embodiment of the present invention, the above-mentioned cross-correlation operation is a fast cross-correlation operation.

本发明还提供一种距离检测装置的距离检测方法,距离检测装置包括扬声器以及声音接收器,扬声器配置于反射板的一侧,用以输出预设声音信号,反射板反射预设声音信号而产生反射声音信号,距离检测装置的距离检测方法包括下列步骤。将声音接收器所接收到的声音信号与预设声音信号进行交叉相关运算,以产生交叉相关信号,其中交叉相关信号包括对应预设声音信号的第一峰值以及对应反射声音信号的第二峰值。依据扬声器输出预设声音信号的时间点、对应第一峰值的第一声音接收时间以及对应第二峰值的第二声音接收时间计算第一距离以及第二距离。依据第一距离以及第二距离计算声音接收器与反射板间的距离。The present invention also provides a distance detection method of a distance detection device. The distance detection device includes a loudspeaker and a sound receiver. The loudspeaker is arranged on one side of the reflector to output a preset sound signal. The reflector reflects the preset sound signal to generate Reflecting the sound signal, the distance detection method of the distance detection device includes the following steps. A cross-correlation operation is performed on the sound signal received by the sound receiver and the preset sound signal to generate a cross-correlation signal, wherein the cross-correlation signal includes a first peak corresponding to the preset sound signal and a second peak corresponding to the reflected sound signal. The first distance and the second distance are calculated according to the time point when the speaker outputs the preset sound signal, the first sound receiving time corresponding to the first peak, and the second sound receiving time corresponding to the second peak. The distance between the sound receiver and the reflection plate is calculated according to the first distance and the second distance.

在本发明的一实施例中,上述的第一距离为声音接收器与扬声器间的距离,第二距离为声音接收器与虚拟扬声器间的距离,扬声器与虚拟扬声器相对于反射板呈对称,扬声器与虚拟扬声器间相隔第三距离,距离检测装置的距离检测方法包括,依据第一距离、第二距离以及第三距离计算声音接收器在反射板的法线方向上与反射板间的距离。In an embodiment of the present invention, the above-mentioned first distance is the distance between the sound receiver and the speaker, the second distance is the distance between the sound receiver and the virtual speaker, the speaker and the virtual speaker are symmetrical with respect to the reflector, and the speaker There is a third distance between the virtual loudspeaker and the distance detection method of the distance detection device includes calculating the distance between the sound receiver and the reflector in the normal direction of the reflector according to the first distance, the second distance and the third distance.

在本发明的一实施例中,上述的预设声音信号具有时变的振幅与频率,预设声音信号经低通滤波后所得到的第一低通滤波信号与预设声音信号之间具有时间差值,距离检测装置的距离检测方法包括下列步骤。对声音接收器所接收到的声音信号进行低通滤波以产生第二低通滤波信号。依据时间差值与第二低通滤波信号预估声音接收器接收到预设声音信号与反射声音信号时的时间。In an embodiment of the present invention, the above-mentioned preset sound signal has a time-varying amplitude and frequency, and there is a time gap between the first low-pass filtered signal obtained after the preset sound signal is low-pass filtered and the preset sound signal. The difference, the distance detection method of the distance detection device includes the following steps. The sound signal received by the sound receiver is low-pass filtered to generate a second low-pass filtered signal. The time when the sound receiver receives the preset sound signal and the reflected sound signal is estimated according to the time difference and the second low-pass filtered signal.

在本发明的一实施例中,上述的时间差值为扬声器输出预设声音信号的封包振幅峰值的时间与第一低通滤波信号的封包振幅峰值所对应的时间差值。In an embodiment of the present invention, the above-mentioned time difference is a time difference corresponding to the time when the loudspeaker outputs the peak packet amplitude of the preset sound signal and the peak packet amplitude of the first low-pass filtered signal.

在本发明的一实施例中,上述的低通滤波为无限脉冲响应滤波。In an embodiment of the present invention, the aforementioned low-pass filter is an infinite impulse response filter.

在本发明的一实施例中,上述的交叉相关运算为快速交叉相关运算。In an embodiment of the present invention, the above-mentioned cross-correlation operation is a fast cross-correlation operation.

基于上述,本发明的实施例将声音接收器所接收到的声音信号与预设声音信号进行交叉相关运算,以产生交叉相关信号,依据扬声器输出预设声音信号的时间点、交叉相关信号中对应第一峰值的第一声音接收时间以及对应第二峰值的第二声音接收时间计算第一距离以及第二距离,并依据第一距离以及第二距离计算声音接收器与反射板间的距离,如此可减少距离测量所需的声音接收器数量。Based on the above, the embodiment of the present invention performs a cross-correlation operation on the sound signal received by the sound receiver and the preset sound signal to generate a cross-correlation signal. According to the time point when the speaker outputs the preset sound signal, the corresponding The first sound receiving time of the first peak and the second sound receiving time corresponding to the second peak calculate the first distance and the second distance, and calculate the distance between the sound receiver and the reflector according to the first distance and the second distance, so Reduces the number of sound receivers required for distance measurement.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.

附图说明Description of drawings

图1是依照本发明一实施例的距离检测装置的示意图;1 is a schematic diagram of a distance detection device according to an embodiment of the present invention;

图2是依照本发明一实施例的交叉相关信号的波形示意图;FIG. 2 is a schematic waveform diagram of a cross-correlation signal according to an embodiment of the present invention;

图3A是依照本发明一实施例的扬声器输出的预设声音信号的波形示意图;3A is a schematic waveform diagram of a preset sound signal output by a speaker according to an embodiment of the present invention;

图3B是依照本发明一实施例的声音接收器所接收到的声音信号的波形示意图;3B is a schematic waveform diagram of a sound signal received by the sound receiver according to an embodiment of the present invention;

图4是依照本发明一实施例的距离检测装置的距离检测方法的流程图。FIG. 4 is a flowchart of a distance detection method of a distance detection device according to an embodiment of the invention.

附图标号说明:Explanation of reference numbers:

102、102’:扬声器102, 102': speaker

104:声音接收器104: Sound Receiver

106:处理器106: Processor

A1:反射板A1: reflector

d、R、R1、R2、H:距离d, R, R1, R2, H: distance

s(t):预设声音信号s(t): preset sound signal

tA、tB、t_Tx、t_Max、t_Tx_IIR、t_Rx_IIR:时间tA, tB, t_Tx, t_Max, t_Tx_IIR, t_Rx_IIR: time

t1:时间差值t1: time difference

TA、T_C、T_N:时间长度TA, T_C, T_N: length of time

Tx_IIR:第一低通滤波信号Tx_IIR: first low-pass filtered signal

Rx_IIR:第二低通滤波信号Rx_IIR: second low-pass filtered signal

y(t):声音信号y(t): sound signal

S402~S406:距离检测装置的距离检测方法步骤S402~S406: Steps of the distance detection method of the distance detection device

具体实施方式detailed description

图1是依照本发明一实施例的距离检测装置的示意图,请参照图1。距离检测装置包括扬声器102、声音接收器104以及处理器106,其中处理器106耦接声音接收器104,扬声器102与声音接收器104的相对距离R1可例如为固定,然不以此为限。扬声器102配置于反射板A1的一侧,扬声器102可输出预设声音信号,反射板A1可反射预设声音信号而产生反射声音信号,其中预设声音信号具有时变的振幅与频率,也就是说,预设声音信号在不同时间点可对应不同的振幅与频率,对应地,反射声音信号也具有时变的振幅与频率。声音接收器104用以接收声音信号,处理器106可用以对预设声音信号以及声音接收器104所接收到的声音信号进行信号处理。声音接收器104所接收到的声音信号可包括扬声器102输出的预设声音信号以及反射板A1反射预设声音信号而产生的反射声音信号,其中反射声音信号可等效于以反射板A1为中心,而与扬声器102呈对称配置的虚拟扬声器102’所输出,如图1所示,扬声器102与虚拟扬声器102’相对于反射板A1呈对称,且皆与反射板A1相距距离d。FIG. 1 is a schematic diagram of a distance detecting device according to an embodiment of the present invention, please refer to FIG. 1 . The distance detection device includes aspeaker 102 , asound receiver 104 and aprocessor 106 , wherein theprocessor 106 is coupled to thesound receiver 104 , and the relative distance R1 between thespeaker 102 and thesound receiver 104 may be fixed, but not limited thereto. Theloudspeaker 102 is arranged on one side of the reflecting plate A1, theloudspeaker 102 can output a preset sound signal, and the reflecting plate A1 can reflect the preset sound signal to generate a reflected sound signal, wherein the preset sound signal has a time-varying amplitude and frequency, that is, That is, the preset sound signal may correspond to different amplitudes and frequencies at different time points, and correspondingly, the reflected sound signal also has a time-varying amplitude and frequency. Thesound receiver 104 is used for receiving the sound signal, and theprocessor 106 can be used for performing signal processing on the preset sound signal and the sound signal received by thesound receiver 104 . The sound signal received by thesound receiver 104 may include a preset sound signal output by thespeaker 102 and a reflected sound signal generated by reflecting the preset sound signal on the reflective plate A1, wherein the reflected sound signal may be equivalent to centering on the reflective plate A1 , and the output of the virtual speaker 102' that is symmetrically arranged with thespeaker 102, as shown in FIG.

处理器106可例如包括中央处理器、或是其他可程序化的一般用途或特殊用途的微处理器(Microprocessor)、数码信号处理器(Digital Signal Processor,DSP)、控制器、特殊应用集成电路(Application Specific Integrated Circuit,ASIC)、可程序化逻辑装置(Programmable Logic Device,PLD)或其他类似装置或这些装置的组合。此外,处理器106中可配置有随机存取存储器(RAM)或只读存储器(ROM)等易失性存储媒体,处理器106可例如与声音接收器104整合在同一电子装置(例如可携式电子装置)中,亦或是与声音接收器104分别配置在不同的电子装置中。在部分实施例中,处理器106也可通过网络或其它方式以有线或无线的方式与扬声器102以及声音接收器104进行信号传输。Theprocessor 106 may include, for example, a central processing unit, or other programmable general-purpose or special-purpose microprocessors (Microprocessor), digital signal processors (Digital Signal Processor, DSP), controllers, application-specific integrated circuits ( Application Specific Integrated Circuit, ASIC), Programmable Logic Device (Programmable Logic Device, PLD) or other similar devices or a combination of these devices. In addition, theprocessor 106 may be configured with volatile storage media such as random access memory (RAM) or read-only memory (ROM). electronic device), or configured in a different electronic device from thesound receiver 104 . In some embodiments, theprocessor 106 may also perform signal transmission with thespeaker 102 and thesound receiver 104 in a wired or wireless manner through a network or other means.

处理器106可将声音接收器104所接收到的声音信号与扬声器所输出的预设声音信号进行交叉相关运算,以产生交叉相关信号,其中交叉相关运算可例如为快速交叉相关运算,然不以此为限。图2是依照本发明一实施例的交叉相关信号的波形示意图。如图2所示,由于声音接收器104所接收到的声音信号包括扬声器102输出的预设声音信号以及反射板A1反射预设声音信号而产生的反射声音信号,因此交叉相关信号将包括对应预设声音信号的第一峰值以及对应反射声音信号的第二峰值,其中第一峰值对应的声音接收时间tA以及第二峰值对应声音接收时间tB。处理器106可依据声音接收时间tA来计算声音接收器104与扬声器102之间的距离R1,并依据声音接收时间tB来计算声音接收器104与虚拟扬声器102’之间的距离R2。如此处理器106便可依据距离R1、距离R2以及扬声器102与虚拟扬声器102’之间的距离计算声音接收器104与反射板A1间的距离,例如计算声音接收器104与扬声器102与虚拟扬声器102’的中点间的距离R,或是计算声音接收器104在反射板A1的法线方向上与反射板A1间的距离H。由上述内容可知,本实施例的距离检测装置可仅使用一个声音接收器104获得声音接收器104与反射板A1间的距离R或距离H,相较于现有技术可使用更少的声音接收器便可达到距离测量的目的。Theprocessor 106 can perform a cross-correlation operation on the sound signal received by thesound receiver 104 and the preset sound signal output by the speaker to generate a cross-correlation signal, wherein the cross-correlation operation can be, for example, a fast cross-correlation operation. This is the limit. FIG. 2 is a schematic waveform diagram of a cross-correlation signal according to an embodiment of the invention. As shown in FIG. 2, since the sound signal received by thesound receiver 104 includes the preset sound signal output by thespeaker 102 and the reflected sound signal generated by reflecting the preset sound signal from the reflector A1, the cross-correlation signal will include the corresponding preset sound signal. It is assumed that the first peak of the sound signal corresponds to the second peak of the reflected sound signal, wherein the first peak corresponds to the sound receiving time tA and the second peak corresponds to the sound receiving time tB. Theprocessor 106 can calculate the distance R1 between thesound receiver 104 and thespeaker 102 according to the sound receiving time tA, and calculate the distance R2 between thesound receiver 104 and the virtual speaker 102' according to the sound receiving time tB. In this way, theprocessor 106 can calculate the distance between thesound receiver 104 and the reflector A1 according to the distance R1, the distance R2 and the distance between thespeaker 102 and thevirtual speaker 102′, for example, the distance between thesound receiver 104 and thespeaker 102 and the virtual speaker 102 ', or calculate the distance H between thesound receiver 104 and the reflector A1 in the normal direction of the reflector A1. It can be seen from the above that the distance detection device of this embodiment can only use onesound receiver 104 to obtain the distance R or distance H between thesound receiver 104 and the reflector A1, and can use fewer sound receivers than the prior art. The device can achieve the purpose of distance measurement.

详细来说,声音接收器104与扬声器102之间的距离R1以及声音接收器104与虚拟扬声器102’之间的距离R2,可分别以下列式子获得:In detail, the distance R1 between thesound receiver 104 and theloudspeaker 102 and the distance R2 between thesound receiver 104 and the virtual loudspeaker 102' can be obtained by the following formulas respectively:

R1=c·(tB-tA) (1)R1=c·(tB-tA) (1)

R2=c·(tB-tA) (2)R2=c·(tB-tA) (2)

其中c为声速。此外,声音接收器104与扬声器102与虚拟扬声器102’的中点间的距离R以及声音接收器104与反射板A1间的距离H可例如分别由下列式子获得:where c is the speed of sound. In addition, the distance R between thesound receiver 104 and the midpoint of theloudspeaker 102 and the virtual loudspeaker 102' and the distance H between thesound receiver 104 and the reflector A1 can be obtained, for example, by the following formulas respectively:

Figure GDA0003821890510000051
Figure GDA0003821890510000051

Figure GDA0003821890510000052
Figure GDA0003821890510000052

如此将声音接收器104所接收到的声音信号与预设声音信号进行交叉相关运算来产生交叉相关信号,依据扬声器102输出预设声音信号的时间点、交叉相关信号中对应第一峰值的声音接收时间tA以及对应第二峰值的声音接收时间tB计算距离R1以及距离R2,便可依据距离R1以及距离R2计算声音接收器104与反射板A1间的距离,而有效地减少距离测量所需的声音接收器数量。In this way, the sound signal received by thesound receiver 104 is cross-correlated with the preset sound signal to generate a cross-correlation signal. The time tA and the sound receiving time tB corresponding to the second peak value calculate the distance R1 and the distance R2, and the distance between thesound receiver 104 and the reflector A1 can be calculated according to the distance R1 and the distance R2, thereby effectively reducing the sound required for distance measurement Number of receivers.

在部分实施例中,处理器106可例如通过网络传输的方式与扬声器102进行数据传输,以得知扬声器102输出预设声音信号的时间点。其中,预设声音信号经低通滤波后(例如对预设声音信号进行无限脉冲响应滤波,然不以此为限)所得到的第一低通滤波信号与预设声音信号之间具有时间差值,处理器106可依据此时间差值预估声音接收器104接收到预设声音信号的封包振幅峰值时所对应的时间,并依据声音接收器104接收到预设声音信号的封包振幅峰值的准确时间与扬声器102输出预设声音信号的封包振幅峰值的时间计算扬声器102与声音接收器104间的距离R1。举例来说,图3A是依照本发明一实施例的扬声器输出的预设声音信号的波形示意图。在图3A中,预设声音信号s(t)的封包振幅峰值对应时间t_Tx,而预设声音信号s(t)经低通滤波后所得到的第一低通滤波信号Tx_IIR(如虚线所示)的振幅峰值对应时间t_Tx_IIR,则第一低通滤波信号Tx_IIR与预设声音信号s(t)之间的时间差值t1等于t_Tx_IIR-t_Tx。In some embodiments, theprocessor 106 may, for example, perform data transmission with thespeaker 102 through network transmission, so as to know the time point when thespeaker 102 outputs the preset sound signal. Wherein, there is a time difference between the first low-pass filtered signal obtained after the preset sound signal is low-pass filtered (for example, performing infinite impulse response filtering on the preset sound signal, but not limited thereto) and the preset sound signal value, theprocessor 106 can estimate the corresponding time when thesound receiver 104 receives the peak value of the packet amplitude of the preset sound signal according to the time difference, and according to the time when thesound receiver 104 receives the peak value of the packet amplitude of the preset sound signal The distance R1 between thespeaker 102 and thesound receiver 104 is calculated from the exact time and the time when thespeaker 102 outputs the peak value of the packet amplitude of the preset audio signal. For example, FIG. 3A is a schematic waveform diagram of a preset sound signal output by a speaker according to an embodiment of the present invention. In FIG. 3A, the peak value of the packet amplitude of the preset sound signal s(t) corresponds to time t_Tx, and the first low-pass filtered signal Tx_IIR obtained after the preset sound signal s(t) is low-pass filtered (as shown by the dotted line ) corresponding to the time t_Tx_IIR, the time difference t1 between the first low-pass filtered signal Tx_IIR and the preset sound signal s(t) is equal to t_Tx_IIR-t_Tx.

处理器106可对声音接收器104所接收到的声音信号进行低通滤波(例如进行与预设声音信号所进行的低通滤波相同的低通滤波处理)以产生第二低通滤波信号,处理器106依据时间差值与第二低通滤波信号预估声音接收器104接收到预设声音信号的封包振幅峰值时所对应的第二时间。举例来说,图3B是依照本发明一实施例的声音接收器所接收到的声音信号的波形示意图。在图3B中,声音接收器104所接收到的声音信号y(t)经低通滤波后所得到的第二低通滤波信号Rx_IIR(如虚线所示)的振幅峰值对应时间t_Rx_IIR,处理器106可将时间t_Rx_IIR减去时间差值t1,以预估声音接收器104接收到预设声音信号的封包振幅峰值时所对应的时间t_Max。Theprocessor 106 may perform low-pass filtering on the sound signal received by the sound receiver 104 (for example, perform the same low-pass filtering process as the low-pass filtering performed on the preset sound signal) to generate a second low-pass filtered signal, and process Theunit 106 estimates the second time corresponding to when theaudio receiver 104 receives the peak packet amplitude of the preset audio signal according to the time difference and the second low-pass filtered signal. For example, FIG. 3B is a schematic waveform diagram of an audio signal received by an audio receiver according to an embodiment of the present invention. In FIG. 3B, the amplitude peak value of the second low-pass filtered signal Rx_IIR (shown by the dotted line) obtained after low-pass filtering the sound signal y(t) received by thesound receiver 104 corresponds to the time t_Rx_IIR, and theprocessor 106 The time difference t1 can be subtracted from the time t_Rx_IIR to estimate the corresponding time t_Max when theaudio receiver 104 receives the peak packet amplitude of the preset audio signal.

处理器106可判断对应时间t_Max的声音接收器104接收到的声音信号y(t)的频率值与对应时间t_Tx的扬声器102输出的预设声音信号s(t)的频率值间的差值是否超出预设范围。详细来说,处理器106可对以时间t_Max为基准(例如以时间t_Max为中心,然不以此为限)的时间长度T_C内的声音接收器104所接收到的声音信号y(t)进行傅立叶转换运算,并判断在以时间t_Tx为基准(例如以时间t_Tx为中心,然不以此为限)的时间长度T_C内声音接收器104所接收到的声音信号y(t)在频域中具有最大振幅的频域信号的频率值与对应时间t_Tx的扬声器102输出的预设声音信号s(t)的频率值间的差值是否超出预设范围。当对应时间t_Max的声音接收器104接收到的声音信号y(t)的频率值与对应时间t_Tx的扬声器102输出的预设声音信号s(t)的频率值间的差值未超出预设范围时,代表声音接收器104已接收到预设声音信号s(t)。其中时间长度T_C可例如设定为对应预设声音信号s(t)的封包振幅小于预设值的时间长度,也就是说仅利用预设声音信号s(t)中封包振幅较大的部分来进行频率值的比较,以提高比较结果的精确度,此外亦可减少处理器106的运算量。Theprocessor 106 can determine whether the difference between the frequency value of the sound signal y(t) received by thesound receiver 104 corresponding to the time t_Max and the frequency value of the preset sound signal s(t) output by thespeaker 102 corresponding to the time t_Tx is Out of preset range. In detail, theprocessor 106 can perform an operation on the sound signal y(t) received by thesound receiver 104 within the time length T_C based on the time t_Max (for example, centered on the time t_Max, but not limited thereto). Fourier transform operation, and judge that the sound signal y(t) received by thesound receiver 104 is in the frequency domain within the time length T_C based on time t_Tx (for example, taking time t_Tx as the center, but not limited thereto) Whether the difference between the frequency value of the frequency domain signal with the maximum amplitude and the frequency value of the preset sound signal s(t) output by thespeaker 102 corresponding to the time t_Tx exceeds a preset range. When the difference between the frequency value of the sound signal y(t) received by thesound receiver 104 corresponding to time t_Max and the frequency value of the preset sound signal s(t) output by thespeaker 102 corresponding to time t_Tx does not exceed the preset range , it means that thesound receiver 104 has received the preset sound signal s(t). Wherein the length of time T_C can be set, for example, as the length of time corresponding to the packet amplitude of the preset sound signal s(t) being smaller than the preset value, that is to say, only the part with a larger packet amplitude in the preset sound signal s(t) is used to The comparison of the frequency values is performed to improve the accuracy of the comparison result, and also reduce the computation load of theprocessor 106 .

处理器106可在对应时间t_Max的声音接收器104接收到的声音信号y(t)的频率值与对应时间t_Tx的扬声器102输出的预设声音信号s(t)的频率值间的差值未超出预设范围时,将以时间t_Tx为基准的时间长度T_C内的扬声器102输出的预设声音信号s(t)与以时间t_Max为基准的时间长度T_N内的声音接收器104所接收到的声音信号进行交叉相关运算,以产生交叉相关信号,其中交叉相关运算可例如为快速交叉相关运算,然不以此为限,此外时间长度T_N大于时间长度T_C,时间长度T_N可例如设定为大于等于预设声音信号s(t)的时间长度TA,但须小于预设声音信号s(t)传递扬声器102与声音接收器104在使用空间中能够配置的最远的相对距离所需的时间。处理器106可依据交叉相关信号的振幅峰值所对应的时间t_Rx(亦即声音接收器104接收到预设声音信号s(t)的封包振幅峰值的准确时间,其可作为图1实施例的时间tA)与时间t_Tx计算扬声器102与声音接收器104间的距离R1。举例来说,扬声器102与声音接收器104间的距离R1可等于(t_Rx-t_Tx)×c,其中c为声速。Theprocessor 106 can determine the difference between the frequency value of the sound signal y(t) received by thesound receiver 104 corresponding to the time t_Max and the frequency value of the preset sound signal s(t) output by thespeaker 102 corresponding to the time t_Tx. When exceeding the preset range, the preset sound signal s(t) output by theloudspeaker 102 in the time length T_C based on the time t_Tx is compared with the sound signal s(t) received by thesound receiver 104 in the time length T_N based on the time t_Max The sound signal is subjected to a cross-correlation operation to generate a cross-correlation signal, wherein the cross-correlation operation can be, for example, a fast cross-correlation operation, but is not limited thereto. In addition, the time length T_N is greater than the time length T_C, and the time length T_N can be set to be greater than It is equal to the time length TA of the preset sound signal s(t), but must be shorter than the time required for the preset sound signal s(t) to transmit the farthest relative distance between theloudspeaker 102 and thesound receiver 104 in the use space. Theprocessor 106 can be based on the time t_Rx corresponding to the peak amplitude of the cross-correlation signal (that is, the exact time when thesound receiver 104 receives the peak amplitude of the packet of the preset sound signal s(t), which can be used as the time in the embodiment of FIG. 1 tA) and the time t_Tx calculate the distance R1 between thespeaker 102 and thesound receiver 104 . For example, the distance R1 between thespeaker 102 and thesound receiver 104 may be equal to (t_Rx−t_Tx)×c, where c is the speed of sound.

值得注意的是,在部分实施例中,时间长度T_N亦可被设定为小于时间长度TA,例如将时间长度T_N设定为对应预设声音信号s(t)的封包振幅小于另一预设值的时间长度。如此将时间长度T_N设定为小于预设声音信号s(t)传递扬声器102与声音接收器104在使用空间中能够配置的最远的相对距离所需的时间,处理器106便不需如现有技术般对预设声音信号s(t)与声音接收器104在长时间(至少需时间长度TA加上预设声音信号s(t)传递扬声器102与声音接收器104在使用空间中能够配置的最远的相对距离所需的时间)内所接收到的声音信号y(t)进行交叉相关运算,而可大幅地减少处理器106将预设声音信号s(t)与声音信号y(t)进行交叉相关运算的时间。而且,由于处理器106已经先判断出以时间t_Tx为基准的时间长度T_C内声音接收器104所接收到的声音信号y(t)在频域中具有最大振幅的频域信号的频率值与对应时间t_Tx的扬声器102输出的预设声音信号s(t)的频率值间的差值未超出预设范围,因此亦可确保声音接收器104已接收到预设声音信号s(t),进而可精确地得到声音接收器104接收到预设声音信号s(t)的封包振幅峰值的时间t_Rx,进而计算出扬声器102与声音接收器104间的距离R1。It is worth noting that, in some embodiments, the time length T_N can also be set to be shorter than the time length TA, for example, the time length T_N is set so that the packet amplitude corresponding to the preset sound signal s(t) is smaller than another preset The duration of the value. In this way, the time length T_N is set to be less than the time required for the preset sound signal s(t) to transmit the farthest relative distance that can be configured between thespeaker 102 and thesound receiver 104 in the use space, and theprocessor 106 does not need to Generally speaking, thespeaker 102 and thesound receiver 104 can be configured in the use space for the preset sound signal s(t) and thesound receiver 104 for a long time (at least the length of time TA plus the preset sound signal s(t) is transmitted. The sound signal y(t) received in the time required for the farthest relative distance) is subjected to a cross-correlation operation, which can greatly reduce theprocessor 106’s comparison of the preset sound signal s(t) and the sound signal y(t) ) to perform the cross-correlation operation. Moreover, since theprocessor 106 has first judged that the frequency value of the frequency domain signal with the maximum amplitude in the frequency domain of the sound signal y(t) received by thesound receiver 104 within the time length T_C based on the time t_Tx corresponds to The difference between the frequency values of the preset sound signal s(t) output by thespeaker 102 at time t_Tx does not exceed the preset range, so it can also ensure that thesound receiver 104 has received the preset sound signal s(t), and then can Accurately obtain the time t_Rx when thesound receiver 104 receives the peak value of the packet amplitude of the preset sound signal s(t), and then calculate the distance R1 between thespeaker 102 and thesound receiver 104 .

以此类推,虚拟扬声器102’与声音接收器104间的距离R2间的距离亦可以类似的方式获得,本领域具通常知识者应可通过上述实施例得知其实施方式,因此在此不再赘述。By analogy, the distance between the virtual loudspeaker 102' and the distance R2 between thesound receiver 104 can also be obtained in a similar manner, and those skilled in the art should be able to know its implementation through the above-mentioned embodiments, so it will not be repeated here repeat.

在部分实施例中,在扬声器102与声音接收器104间的相对速度不为0的情形下。处理器106也可利用都普勒效应来修正计算出的扬声器102与声音接收器104间的距离。举例来说,扬声器102可例如每隔一个时段输出一个预设声音信号,在本实施例中,预设声音信号s(t)可以下列式子表示:In some embodiments, the relative velocity between thespeaker 102 and thesound receiver 104 is not zero. Theprocessor 106 can also use the Doppler effect to correct the calculated distance between thespeaker 102 and thesound receiver 104 . For example, theloudspeaker 102 may output a preset sound signal every other time period. In this embodiment, the preset sound signal s(t) may be represented by the following formula:

s(t)=A(t)·cos[2π·f(t)·t] (5)s(t)=A(t) cos[2π f(t) t] (5)

其中t为时间,A(t)为预设声音信号s(t)的振幅,而f(t)为预设声音信号s(t)的频率。每个时段的时间长度可例如设定为预设声音信号s(t)的时间长度加上预设声音信号s(t)传递扬声器102与声音接收器104在使用空间中能够配置的最远的相对距离所需的时间,如此可确保声音接受器104在每个时段中皆可接收到扬声器102所发出的预设声音信号s(t)。Where t is time, A(t) is the amplitude of the preset sound signal s(t), and f(t) is the frequency of the preset sound signal s(t). The time length of each period can be set, for example, to the time length of the preset sound signal s(t) plus the farthest distance between thespeaker 102 and thesound receiver 104 that the preset sound signal s(t) can be configured in the use space. The time required for the relative distance can ensure that thesound receiver 104 can receive the preset sound signal s(t) from thespeaker 102 in each time period.

假设扬声器102在第m个时段输出预设声音信号s(t),其中m为大于1的整数,且预设声音信号s(t)在预设声音信号s(t)的封包振幅峰值对应时间t_Tx以及频率f_TMax,另外声音接收器104接收到的预设声音信号y(t)在时间t_Max对应频率f_TMax。其中频率f_RMax可例如通过处理器106对以时间t_Max为基准(例如以时间t_Max为中心,然不以此为限)的时间长度T_C内声音接收器104所接收到的声音信号y(t)进行傅立叶转换运算而求得。频率f_RMax可例如为声音信号y(t)在频域中具有最大振幅的频域信号的频率值,然不以此为限。在部分实施例中,处理器106亦可进一步依据进行傅立叶转换运算后所得到的多个频域信号进行内插运算(例如多项式内差运算,然不以此为限),以得到更精确的频率f_RMax。其中时间长度T_C可例如设定为对应预设声音信号s(t)的封包振幅小于预设值的时间长度,通过仅利用预设声音信号s(t)中封包振幅较大的部分来进行频率值的比较,可提高计算频率的精确度,同时并可减少处理器106的运算量。Assume that thespeaker 102 outputs the preset sound signal s(t) in the mth time period, where m is an integer greater than 1, and the preset sound signal s(t) is at the time corresponding to the peak value of the package amplitude of the preset sound signal s(t). t_Tx and frequency f_TMax, and the preset sound signal y(t) received by thesound receiver 104 corresponds to frequency f_TMax at time t_Max. Wherein the frequency f_RMax can be, for example, performed by theprocessor 106 on the sound signal y(t) received by thesound receiver 104 within the time length T_C based on the time t_Max (for example, taking the time t_Max as the center, but not limited thereto). Obtained by Fourier transform operation. The frequency f_RMax may be, for example, the frequency value of the frequency domain signal having the largest amplitude of the sound signal y(t) in the frequency domain, but is not limited thereto. In some embodiments, theprocessor 106 may further perform interpolation operations (such as polynomial interpolation operations, but not limited thereto) to obtain more accurate Frequency f_RMax. Wherein the length of time T_C can be set, for example, as the length of time corresponding to the packet amplitude of the preset sound signal s(t) being smaller than the preset value, and the frequency is determined by only using the part with a larger packet amplitude in the preset sound signal s(t). The comparison of the values can improve the accuracy of the calculation frequency and reduce the computation load of theprocessor 106 at the same time.

处理器106可依据前次计算出的扬声器102与声音接收器104间的相对速度利用都普勒效应修正预设声音信号s(t)的频率值,举例来说,处理器106例如以下列式子修正预设声音信号s(t)的频率f(t):Theprocessor 106 can use the Doppler effect to modify the frequency value of the preset sound signal s(t) according to the relative speed between theloudspeaker 102 and thesound receiver 104 calculated last time. For example, theprocessor 106 is as follows: The frequency f(t) of sub-correction preset sound signal s(t):

Figure GDA0003821890510000091
Figure GDA0003821890510000091

其中f’(t)为修正后的频率,

Figure GDA0003821890510000092
为第m个时段第k-1阶的扬声器102与声音接收器104间的初始相对速度,c为声速,k为正整数。修正后的预设声音信号x(t)可如下列式子所示:where f'(t) is the corrected frequency,
Figure GDA0003821890510000092
is the initial relative velocity between theloudspeaker 102 and thesound receiver 104 at the k-1th stage in the mth period, c is the sound velocity, and k is a positive integer. The modified preset sound signal x(t) can be shown as the following formula:

Figure GDA0003821890510000093
Figure GDA0003821890510000093

扬声器102与声音接收器104间的初始相对速度(k等于1时的相对速度)可由处理器106依据频率f_RMax与频率f_TMax计算而得,例如可依据下列式子计算而得。The initial relative velocity between thespeaker 102 and the sound receiver 104 (relative velocity when k is equal to 1) can be calculated by theprocessor 106 according to the frequency f_RMax and the frequency f_TMax, for example, can be calculated according to the following formula.

Figure GDA0003821890510000094
Figure GDA0003821890510000094

其中

Figure GDA0003821890510000095
为第m个时段的扬声器102与声音接收器104间的初始相对速度。处理器106可将修正后的预设声音信号x(t)与声音接收器104所接收到的声音信号y(t)进行交叉相关运算,以产生交叉相关信号,其中交叉相关运算可例如为快速交叉相关运算,然不以此为限。处理器106并依据交叉相关信号的封包振幅峰值所对应的时间与预设声音信号s(t)的封包振幅峰值对应的时间t_Tx计算扬声器102与声音接收器104间的距离R1。in
Figure GDA0003821890510000095
is the initial relative velocity between thespeaker 102 and thesound receiver 104 in the mth period. Theprocessor 106 can perform a cross-correlation operation on the modified preset sound signal x(t) and the sound signal y(t) received by thesound receiver 104 to generate a cross-correlation signal, wherein the cross-correlation operation can be, for example, fast Cross-correlation operation, but not limited to this. Theprocessor 106 calculates the distance R1 between thespeaker 102 and thesound receiver 104 according to the time corresponding to the peak packet amplitude of the cross-correlation signal and the time t_Tx corresponding to the peak packet amplitude of the preset audio signal s(t).

举例来说,第m个时段的第k阶的修正相对距离

Figure GDA0003821890510000101
可如下列式子所示:For example, the corrected relative distance of the k-th order of the m-th time period
Figure GDA0003821890510000101
It can be shown as the following formula:

Figure GDA0003821890510000102
Figure GDA0003821890510000102

处理器106可依据对应第m个时段的扬声器102与声音接收器104间的修正相对距离与对应第m-1个时段的扬声器102与声音接收器104间的修正相对距离计算对应第m个时段的扬声器102与声音接收器104间的相对速度。举例来说,第m个时段的第k阶的相对速度

Figure GDA0003821890510000103
可如下列式子所示:Theprocessor 106 can calculate the corresponding mth time period according to the corrected relative distance between thespeaker 102 and thesound receiver 104 corresponding to the mth time period and the corrected relative distance between thespeaker 102 and thesound receiver 104 corresponding to the m-1th time period The relative velocity between thespeaker 102 and thesound receiver 104 of . For example, the relative velocity of the kth order in the mth period
Figure GDA0003821890510000103
It can be shown as the following formula:

Figure GDA0003821890510000104
Figure GDA0003821890510000104

其中Td为各个时段的时间长度,Rm-1为第m-1个时段所计算出的相对距离。处理器106可在得到初始相对速度

Figure GDA0003821890510000105
后,开始依据上述式子(6)、(7)、(9)、(10)递回地计算扬声器102与声音接收器104间的相对速度,直到相对速度收敛至特定值。举例来说,处理器106可依据对应第m个时段的扬声器102与声音接收器104间的相对速度以及对应第m-1个时段的扬声器102与声音接收器104间的相对速度判断对应第m个时段的扬声器102与声音接收器104间的相对速度是否已收敛至预设范围内。例如,处理器106可依据下列式子判断相对速度是否已收敛:Where Td is the time length of each time period, and Rm-1 is the relative distance calculated in the m-1th time period.Processor 106 can obtain the initial relative velocity
Figure GDA0003821890510000105
After that, start to recursively calculate the relative velocity between thespeaker 102 and thesound receiver 104 according to the above formulas (6), (7), (9), and (10) until the relative velocity converges to a specific value. For example, theprocessor 106 can determine the corresponding m-th time period according to the relative speed between thespeaker 102 and thesound receiver 104 corresponding to the m-th time period and the relative speed between thespeaker 102 and thesound receiver 104 corresponding to the m-1th time period. Whether the relative speed between theloudspeaker 102 and thesound receiver 104 has converged within the preset range for a period of time. For example, theprocessor 106 can judge whether the relative speed has converged according to the following formula:

Figure GDA0003821890510000106
Figure GDA0003821890510000106

其中THV为预设的门槛值,当

Figure GDA0003821890510000107
的绝对值收敛至-THV与THV构成的预设范围时,代表处理器106所计算出的第m个时段的第k阶的修正相对距离
Figure GDA0003821890510000111
的精准度已达到要求,而可将其作为第m个时段最终确定相对距离。同理,第m个时段的第k阶的相对速度
Figure GDA0003821890510000112
也可被作为第m个时段的最终确定相对速度。此外,第m个时段的扬声器102与声音接收器104间的最终确定相对加速度am可如以下列式子所示:where THV is the preset threshold value, when
Figure GDA0003821890510000107
When the absolute value of converges to the preset range formed by -THV and THV, it represents the corrected relative distance of the kth order of the mth period calculated by theprocessor 106
Figure GDA0003821890510000111
The accuracy of has met the requirements, and it can be used as the mth period to finally determine the relative distance. Similarly, the relative velocity of the kth order in the mth period
Figure GDA0003821890510000112
It can also be used as the final relative velocity for the mth period. In addition, the finally determined relative acceleration am between theloudspeaker 102 and thesound receiver 104 in the mth period can be expressed as the following formula:

am=(vm-vm-1)/Td (12)am =(vm -vm-1 )/Td (12)

以此类推,第m个时段的虚拟扬声器102’与声音接收器104间的最终确定相对距离、最终确定相对速度以及最终确定相对加速度亦可以类似的方式获得,本领域具通常知识者应可通过上述实施例得知其实施方式,因此在此不再赘述。By analogy, the final relative distance between the virtual loudspeaker 102' and thesound receiver 104, the final relative velocity and the final relative acceleration of the mth period can also be obtained in a similar manner, and those skilled in the art should be able to obtain The implementation manners are known from the above-mentioned embodiments, so details are not repeated here.

图4是依照本发明一实施例的距离检测装置的距离检测方法的流程图,请参照图3。在本实施例中,扬声器配置于反射板的一侧,且扬声器与虚拟扬声器相对于反射板呈对称,扬声器可输出预设声音信号,反射板可反射预设声音信号而产生反射声音信号。扬声器输出的预设声音信号具有时变的振幅与频率,对应地,反射声音信号也具有时变的振幅与频率。由上述实施例可知,距离检测装置的距离检测方法可至少包括下列步骤。首先,将声音接收器所接收到的声音信号与预设声音信号进行交叉相关运算,以产生交叉相关信号,其中交叉相关信号包括对应预设声音信号的第一峰值以及对应反射声音信号的第二峰值(步骤S402),交叉相关运算可例如为快速交叉相关运算,然不以此为限。接着,依据扬声器输出预设声音信号的时间点、对应第一峰值的第一声音接收时间以及对应第二峰值的第二声音接收时间计算第一距离以及第二距离(步骤S404),其中第一距离为声音接收器与扬声器间的距离,第二距离为声音接收器与虚拟扬声器间的距离,扬声器与虚拟扬声器间相隔一段第三距离。然后,依据第一距离以及第二距离计算声音接收器与反射板间的距离(步骤S406),例如可依据所述第一距离、第二距离以及第三距离计算声音接收器在反射板的法线方向上与反射板间的距离。FIG. 4 is a flowchart of a distance detection method of a distance detection device according to an embodiment of the present invention, please refer to FIG. 3 . In this embodiment, the speaker is arranged on one side of the reflector, and the speaker and the virtual speaker are symmetrical with respect to the reflector. The speaker can output a preset sound signal, and the reflector can reflect the preset sound signal to generate a reflected sound signal. The preset sound signal output by the loudspeaker has a time-varying amplitude and frequency, and correspondingly, the reflected sound signal also has a time-varying amplitude and frequency. It can be known from the above embodiments that the distance detection method of the distance detection device may at least include the following steps. Firstly, the sound signal received by the sound receiver is cross-correlated with the preset sound signal to generate a cross-correlation signal, wherein the cross-correlation signal includes a first peak corresponding to the preset sound signal and a second peak corresponding to the reflected sound signal. Peak (step S402 ), the cross-correlation operation can be, for example, a fast cross-correlation operation, but it is not limited thereto. Next, calculate the first distance and the second distance according to the time point when the speaker outputs the preset sound signal, the first sound receiving time corresponding to the first peak, and the second sound receiving time corresponding to the second peak (step S404), wherein the first The distance is the distance between the sound receiver and the speaker, the second distance is the distance between the sound receiver and the virtual speaker, and there is a third distance between the speaker and the virtual speaker. Then, calculate the distance between the sound receiver and the reflector according to the first distance and the second distance (step S406), for example, calculate the distance between the sound receiver and the reflector according to the first distance, the second distance and the third distance. The distance from the reflector in the line direction.

其中,预设声音信号经低通滤波后所得到的第一低通滤波信号与预设声音信号之间具有时间差值,其中时间差值可例如为扬声器输出预设声音信号的封包振幅峰值的时间与第一低通滤波信号的封包振幅峰值所对应的时间差值。在部分实施例中,可对声音接收器所接收到的声音信号进行低通滤波以产生第二低通滤波信号,并依据时间差值与第二低通滤波信号预估声音接收器接收到预设声音信号与反射声音信号时的时间,以依据扬声器输出预设声音信号的封包振幅峰值的时间与声音接收器接收到预设声音信号与反射声音信号时的时间来计算声音接收器与反射板间的距离。Wherein, there is a time difference between the first low-pass filtered signal obtained after the preset sound signal is low-pass filtered and the preset sound signal, wherein the time difference can be, for example, the package amplitude peak value of the speaker outputting the preset sound signal The time difference corresponding to the time and the peak value of the packet amplitude of the first low-pass filtered signal. In some embodiments, the sound signal received by the sound receiver can be low-pass filtered to generate a second low-pass filtered signal, and the sound receiver receives the predicted signal according to the time difference and the second low-pass filtered signal. The time when the sound signal and the reflected sound signal is set is calculated based on the time when the loudspeaker outputs the peak value of the packet amplitude of the preset sound signal and the time when the sound receiver receives the preset sound signal and the reflected sound signal to calculate the sound receiver and the reflector distance between.

综上所述,本发明的实施例将声音接收器所接收到的声音信号与预设声音信号进行交叉相关运算,以产生交叉相关信号,依据扬声器输出预设声音信号的时间点、交叉相关信号中对应第一峰值的第一声音接收时间以及对应第二峰值的第二声音接收时间计算第一距离以及第二距离,并依据第一距离以及第二距离计算声音接收器与反射板间的距离,如此可减少距离测量所需的声音接收器数量。In summary, the embodiments of the present invention perform cross-correlation calculations on the sound signal received by the sound receiver and the preset sound signal to generate a cross-correlation signal, and the time point at which the speaker outputs the preset sound signal and the cross-correlation signal The first sound receiving time corresponding to the first peak and the second sound receiving time corresponding to the second peak to calculate the first distance and the second distance, and calculate the distance between the sound receiver and the reflector according to the first distance and the second distance , which reduces the number of sound receivers required for distance measurements.

虽然本发明已以实施例揭示如上,然其并非用以限定本发明,任何所属技术领域中技术人员,在不脱离本发明的精神和范围内,当可作些许的更改与润饰,故本发明的保护范围当视权利要求书所界定的为准。Although the present invention has been disclosed above with the embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection should depend on what is defined in the claims.

Claims (10)

1. A distance detection device, comprising:
a speaker configured at one side of the reflection plate, outputting a preset sound signal, the reflection plate reflecting the preset sound signal to generate a reflected sound signal;
a sound receiver; and
a processor, configured to perform a cross-correlation operation on the sound signal received by the sound receiver and the predetermined sound signal to generate a cross-correlation signal, where the cross-correlation signal includes a first peak corresponding to the predetermined sound signal and a second peak corresponding to the reflected sound signal, the processor calculates a first distance and a second distance according to a time point when the speaker outputs the predetermined sound signal, a first sound receiving time corresponding to the first peak, and a second sound receiving time corresponding to the second peak, and calculates a distance between the sound receiver and the reflector according to the first distance and the second distance, where the first distance is a distance between the sound receiver and the speaker, the second distance is a distance between the sound receiver and a virtual speaker, the speaker and the virtual speaker are symmetric with respect to the reflector, the speaker and the virtual speaker are separated by a third distance, and the processor calculates a distance between the sound receiver and the reflector in a normal direction of the reflector according to the first distance, the second distance, and the third distance.
2. The distance detection device of claim 1, wherein the predetermined sound signal 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 sound signal and the predetermined sound signal, the processor performs the low-pass filtering on the sound signal received by the sound receiver to generate a second low-pass filtered signal, and the processor estimates a time when the predetermined sound signal and the reflected sound signal are received by the sound receiver according to the time difference and the second low-pass filtered signal.
3. The distance detecting device as claimed in claim 2, wherein the time difference is a time difference between a time at which the speaker outputs the packet amplitude peak of the predetermined sound signal and a time at which the speaker outputs the packet amplitude peak of the first low-pass filtered signal.
4. The distance detection device of claim 2 wherein said low pass filtering is infinite impulse response filtering.
5. The distance detection device of claim 1, wherein the cross-correlation operation is a fast cross-correlation operation.
6. A distance detecting method of a distance detecting device, the distance detecting device comprising a speaker and a sound receiver, the speaker being disposed at one side of a reflection plate for outputting a predetermined sound signal, the reflection plate reflecting the predetermined sound signal to generate a reflected sound signal, the distance detecting method comprising:
performing a cross-correlation operation on the sound signal received by the sound receiver and the preset sound signal to generate a cross-correlation signal, wherein the cross-correlation signal includes a first peak value corresponding to the preset sound signal and a second peak value corresponding to the reflected sound signal;
calculating a first distance and a second distance according to a time point of the preset sound signal output by the loudspeaker, a first sound receiving time corresponding to the first peak value and a second sound receiving time corresponding to the second peak value;
calculating a distance between the sound receiver and the reflection plate according to the first distance and the second distance, wherein the first distance is a distance between the sound receiver and the speaker, the second distance is a distance between the sound receiver and a virtual speaker, the speaker and the virtual speaker are symmetrical with respect to the reflection plate, and the speaker and the virtual speaker are spaced by a third distance; and
and calculating the distance between the sound receiver and the reflecting plate in the normal direction of the reflecting plate according to the first distance, the second distance and the third distance.
7. The distance detection method of claim 6, wherein the predetermined sound signal has a time-varying amplitude and frequency, and a time difference is present between a first low-pass filtered signal obtained by low-pass filtering the predetermined sound signal and the predetermined sound signal, and the distance detection method of the distance detection apparatus comprises:
performing the low pass filtering on the sound signal received by the sound receiver to generate a second low pass filtered signal; and
and estimating the time when the sound receiver receives the preset sound signal and the reflected sound signal according to the time difference and the second low-pass filtering signal.
8. The distance detection method of claim 7, wherein the time difference is a time difference between a time at which the speaker outputs the packet amplitude peak of the predetermined audio signal and a time at which the speaker outputs the packet amplitude peak of the first low-pass filtered signal.
9. The distance detection method of the distance detection apparatus according to claim 7, wherein the low-pass filtering is infinite impulse response filtering.
10. The distance detection method of the distance detection apparatus according to claim 6, wherein the cross-correlation operation is a fast cross-correlation operation.
CN201710674498.3A2017-08-092017-08-09 Distance detection device and distance detection method thereofActiveCN109375199B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710674498.3ACN109375199B (en)2017-08-092017-08-09 Distance detection device and distance detection method thereof

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710674498.3ACN109375199B (en)2017-08-092017-08-09 Distance detection device and distance detection method thereof

Publications (2)

Publication NumberPublication Date
CN109375199A CN109375199A (en)2019-02-22
CN109375199Btrue CN109375199B (en)2022-12-06

Family

ID=65404189

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710674498.3AActiveCN109375199B (en)2017-08-092017-08-09 Distance detection device and distance detection method thereof

Country Status (1)

CountryLink
CN (1)CN109375199B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
GB2601497A (en)*2020-12-012022-06-08Nordic Semiconductor AsaRadio frequency distance determination
CN116486823B (en)*2022-01-142025-09-05宏碁股份有限公司 Sound watermark processing method and sound watermark generating device

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101118282A (en)*2006-08-042008-02-06Nec显示器解决方案株式会社Distance measuring system and method
CN102893175A (en)*2010-05-202013-01-23皇家飞利浦电子股份有限公司Distance estimation using sound signals
CN103443649A (en)*2011-03-032013-12-11高通股份有限公司Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound
CN105721066A (en)*2014-09-302016-06-29财团法人工业技术研究院Space state detection device, system and method based on sound waves
TW201638608A (en)*2015-04-282016-11-01英特爾公司Measurement of distance between devices using audio signals
CN106595572A (en)*2016-10-202017-04-26北京理工大学Method and apparatus for measuring low-altitude flight height of aircrafts

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102089634B (en)*2008-07-082012-11-21布鲁尔及凯尔声音及振动测量公司Reconstructing an acoustic field

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101118282A (en)*2006-08-042008-02-06Nec显示器解决方案株式会社Distance measuring system and method
CN102893175A (en)*2010-05-202013-01-23皇家飞利浦电子股份有限公司Distance estimation using sound signals
CN103443649A (en)*2011-03-032013-12-11高通股份有限公司Systems, methods, apparatus, and computer-readable media for source localization using audible sound and ultrasound
CN105721066A (en)*2014-09-302016-06-29财团法人工业技术研究院Space state detection device, system and method based on sound waves
TW201638608A (en)*2015-04-282016-11-01英特爾公司Measurement of distance between devices using audio signals
CN106595572A (en)*2016-10-202017-04-26北京理工大学Method and apparatus for measuring low-altitude flight height of aircrafts

Also Published As

Publication numberPublication date
CN109375199A (en)2019-02-22

Similar Documents

PublicationPublication DateTitle
US10839808B2 (en)Detection of replay attack
CN104041075B (en) Audio Source Position Estimation
CN107064939B (en)Circuit for measuring acoustic distance
CN109375199B (en) Distance detection device and distance detection method thereof
CN105118515A (en)Method for detecting wind noise based on microphone array
US20190033438A1 (en)Distance detection device and distance detection method thereof
CN103268766B (en)Method and device for speech enhancement with double microphones
US9288598B2 (en)Pipe calibration method for omnidirectional microphones
JP6433630B2 (en) Noise removing device, echo canceling device, abnormal sound detecting device, and noise removing method
TWI633275B (en)Distance detection device and distance detection method thereof
KR100735407B1 (en) Distance measuring device and method using TAO
CN109387170B (en)Distance detection device and distance detection method thereof
TWI646341B (en)Distance detection device and distance detection method thereof
WO2016013286A1 (en)Phase difference calculation device, sound source direction detection device, and phase difference calculation method
TWI633323B (en)Distance detection device and distance detection method thereof
CN117665707A (en) Impulse sound arrival time difference estimation method based on time focusing
CN109387829B (en)Distance detection device and distance detection method thereof
TWI633276B (en)Distance detection device and distance detection method thereof
WO2020160703A1 (en)Audio diagnostics in a vehicle
TW201915432A (en)Distance detection device and distance detection method thereof
US20240241251A1 (en)Signal processing device, sound wave system, and vehicle
CN105917244A (en) Method for Locating Pulse Sources in Dispersive Media
JP2023031336A (en)Signal processing device, sound wave system, and vehicle
CN109696668A (en)Distance detection device and its distance detection method
US20170272875A1 (en)Pipe calibration method for omnidirectional microphones

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp