Ultrasonic radar ranging method, device, equipment and medium
By configuring the wave transmission frequency of the ultrasonic radar is inconsistent with the resonant frequency of the transducer, and distinguishing echoes and after-vibration waves in the time-frequency domain, the problem of the blind spot of the short-range distance measurement of ultrasonic radar is solved, achieving higher ranging accuracy.
Patent Information
- Application Number
- CN202410865172.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-01
AI Technical Summary
Existing ultrasonic radars have blind spots when measuring distances at close range. The reason is that the aliasing of the after-vibration wave and the echo will not be accurate, and this phenomenon cannot be eliminated and can only be suppressed as much as possible.
By configuring the wave transmitting frequency of the ultrasonic radar inconsistent with the resonant frequency of the transducer, the signals are collected and converted into the time frequency domain, the frequency difference is used to distinguish the echo and after-vibration waves, and the target distance is calculated based on the echo and wave transmission.
It effectively avoids the distance measurement blind spot caused by after-vibration waves, improves the distance measurement accuracy, shortens the blind spot length, and achieves higher distance detection accuracy.
Smart Images

Figure CN118884444A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an ultrasonic radar ranging method, device, equipment and medium. Background Art
[0002] The ultrasonic radar installed in today's cars has a large blind spot in short-range ranging due to the physical characteristics of the transducer. This physical characteristic is due to the inertial vibration of the resonant cavity after the excitation, which produces a residual vibration phenomenon. The residual vibration wave will overlap with the short-range echo, making it impossible to accurately measure the distance to close-range targets. This phenomenon cannot be eliminated objectively and can only be suppressed as much as possible.
[0003] In one embodiment, the residual vibration time of current products is between 900 and 1300 microseconds. When the time of transmitting the wave is added, the entire undetectable area time is between 1000 and 2600 microseconds, and the detection blind area is equivalent to about 17 to 40 cm. The current ultrasonic radar methods for suppressing residual vibration and improving and reducing near-field blind areas are all processed in the time domain, but the results are not ideal. Summary of the invention
[0004] In view of this, the object of the present invention is to provide an ultrasonic radar ranging method, device, equipment and medium, which can avoid the ranging blind area caused by the residual vibration wave and improve the ranging accuracy. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses an ultrasonic radar ranging method, comprising:
[0006] Collecting a first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes a first transmission wave in the time domain, a first aftershock wave, and a first echo wave formed after the first transmission wave reaches the target object; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer;
[0007] Converting the first ultrasonic signal into the time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain;
[0008] The second echo and the second aftershock wave are distinguished in the second ultrasonic signal based on a frequency difference, and a distance to the target object is calculated based on the second echo and the second aftershock wave.
[0009] The collecting of the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle based on the McQuist sampling theorem includes:
[0010] The sampling rate is determined based on the radar properties, and the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle is collected according to the McQuist sampling theorem; wherein the sampling rate is greater than 2 times the wave frequency.
[0011] The converting of the first ultrasonic signal into the time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain includes:
[0012] Convert the first ultrasonic signal into the time-frequency domain by a preset transformation algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo and a second aftershock wave in the time-frequency domain;
[0013] The preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform and Wigner distribution.
[0014] The method of converting the first ultrasonic signal into the time-frequency domain by a preset transformation algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo and a second aftershock wave in the time-frequency domain includes:
[0015] The first ultrasonic signal is downsampled for anti-aliasing, and the downsampled signal is converted to the time-frequency domain through a preset transformation algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo, and a second aftershock wave in the time-frequency domain.
[0016] Wherein, when the preset transformation algorithm is a transformation algorithm based on short-time Fourier transform, converting the first ultrasonic signal into the time-frequency domain by using the preset transformation algorithm includes:
[0017] Performing an m-point Fourier transform on the n sampling points of the first ultrasonic signal in a real-time input-output manner to convert the first ultrasonic signal into a time-frequency domain; wherein m>n;
[0018] The instant input-output mode is an input-output mode in which a sampling point is outputted while a sampling point is inputted.
[0019] The calculating the distance to the target object based on the second echo and the second transmission wave includes:
[0020] Determine a first time when the ultrasonic radar sends the second echo and a second time when the ultrasonic radar receives the second echo;
[0021] Calculating the difference between the second time and the first time, and taking half of the difference as the target time;
[0022] The product of the speed of light and the target time is calculated to obtain the distance to the target object.
[0023] In a second aspect, the present application discloses an ultrasonic radar ranging device, comprising:
[0024] an acquisition module, used for acquiring a first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes a first transmission wave in the time domain, a first aftershock wave, and a first echo wave formed after the first transmission wave reaches the target object; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer;
[0025] A conversion module, used for converting the first ultrasonic signal into a time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain;
[0026] A distinguishing module is used to distinguish the second echo and the second aftershock wave in the second ultrasonic signal based on frequency difference, and calculate the distance to the target object based on the second echo and the second aftershock wave.
[0027] The conversion module is specifically used to convert the first ultrasonic signal into the time-frequency domain by a preset conversion algorithm to obtain a second ultrasonic signal including a second wave, a second echo and a second aftershock wave in the time-frequency domain;
[0028] The preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform and Wigner distribution.
[0029] In a third aspect, the present application discloses an electronic device, comprising:
[0030] Memory, used to store computer programs;
[0031] A processor is used to execute the computer program to implement the ultrasonic radar ranging method disclosed above.
[0032] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the ultrasonic radar ranging method disclosed above is implemented.
[0033] It can be seen that the present application collects the first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes the first wave in the time domain, the first aftershock wave, and the first echo formed after the first wave reaches the target object; the first wave is the ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the wave frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer; the first ultrasonic signal is converted to the time-frequency domain to obtain a second ultrasonic signal including the second wave, the second echo, and the second aftershock wave in the time-frequency domain; based on the frequency difference, the second echo and the second aftershock wave are distinguished in the second ultrasonic signal, and the distance to the target object is calculated based on the second echo and the second wave. It can be seen that the present application sets the wave and the aftershock wave to different frequencies. Because the wave and the echo have the same frequency, the echo and the aftershock wave have different frequencies, so the echo and the aftershock wave can be directly separated in the time-frequency domain, directly removing the influence of the aftershock wave on the echo, avoiding the ranging blind area caused by the aftershock wave, and improving the ranging accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0035] Figure 1 This is a flow chart of an ultrasonic radar ranging method disclosed in this application;
[0036] Figure 2 A time domain diagram including a first transmission wave, a first aftershock wave and a first echo wave disclosed in the present application;
[0037] Figure 3 A time-frequency domain diagram including a second transmission wave and a second echo disclosed in the present application;
[0038] Figure 4 A time-frequency domain diagram including a second transmission wave, a second echo wave and a second aftershock wave disclosed in the present application;
[0039] Figure 5 A specific ultrasonic radar ranging method flow chart disclosed in this application;
[0040] Figure 6 This is a schematic diagram of the structure of an ultrasonic radar ranging device disclosed in this application;
[0041] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The ultrasonic radar installed in today's cars has a large blind spot in short-range ranging due to the physical characteristics of the transducer. This physical characteristic is due to the inertial vibration of the resonant cavity after the excitation, which produces a residual vibration phenomenon. The residual vibration wave will overlap with the short-range echo, making it impossible to accurately measure the distance to close-range targets. This phenomenon cannot be eliminated objectively and can only be suppressed as much as possible.
[0044] In one embodiment, the residual vibration time of the current product is between 900 and 1300 microseconds. When the transmission time is added, the entire undetectable area time is between 1000 and 2600 microseconds, and the detection blind area is equivalent to about 17 to 40 cm. The current ultrasonic radar methods for suppressing residual vibration and reducing near-field blind areas are all processed in the time domain, but the effect is not ideal. Several companies can reduce the blind area of the current ultrasonic radar to about 20 cm, and the accuracy is questionable.
[0045] To this end, an embodiment of the present application proposes an ultrasonic radar ranging solution, which can avoid the ranging blind area caused by the aftershock wave and improve the ranging accuracy.
[0046] The present application discloses an ultrasonic radar ranging method, see Figure 1 As shown, the method includes:
[0047] Step S11: Collect a first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes a first transmission wave, a first aftershock wave, and a first echo formed after the first transmission wave reaches the target object in the time domain; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer.
[0048] In this embodiment, the preset configuration parameters can be set according to actual conditions, as long as the wave frequency of the ultrasonic radar is configured to be inconsistent with the resonant frequency of the transducer. The ultrasonic radar can be located in a vehicle or other equipment.
[0049] In a specific embodiment, the resonant frequency of the transducer may be 49 kHz, the transmitting frequency may be 46 kHz (ie, the preset configuration parameter is 46 kHz), wherein the number of transmitted 46 kHz pulses may be set to 64. The first ultrasonic signal corresponding to this embodiment is as follows: Figure 2 As shown, Figure 2 A time domain diagram including the first wave, the first aftershock wave and the first echo: Figure 2 In the above example, the horizontal axis is time and the vertical axis is wave intensity. Apart from this, no other more effective information can be obtained, such as the transmission frequency and aftershock frequency. The processing methods in the time domain may be limited. In addition, according to Figure 2 The first wave includes a first aftershock wave, a first aftershock wave, and a first echo wave formed after the first wave reaches the target object. The first echo wave and the first aftershock wave are mixed. Figure 2 The blank space below the original word of the original signal with the horizontal coordinate from 2 to 3.5 is the first wave before, and the mixture of the first echo and the first aftershock wave after is. There may be other embodiments that cannot distinguish the first wave and the mixture of the first echo and the first aftershock wave.
[0050] Step S12: converting the first ultrasonic signal into the time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain.
[0051] See also Figure 3 As shown, it is a time-frequency domain diagram including the second transmission wave and the second echo; see Figure 4 As shown, it is a time-frequency domain diagram including the second transmission wave, the second echo wave and the second aftershock wave; Figure 3 and Figure 4 The horizontal axis is time, the vertical axis is frequency, and the color represents the signal (energy) intensity. The lighter the color, the greater the intensity, and the darker the color, the smaller the intensity. Figure 3 In the figure, we can not only clearly see that the transmission wave is 46kHz, but the aftershock wave at the rear end is 49kHz. Moreover, the time width of the transmission wave and the aftershock wave are clearly divided. The total pulse width of the transmission wave is about 1.4 milliseconds; the aftershock time is about 1 millisecond. From this figure, we can know that when the echo time at a close distance is within the aftershock time period, it is easy to distinguish the component distribution of the 46kHz and 49kH energy echo and the aftershock wave.
[0052] Step S13: distinguishing the second echo and the second aftershock wave in the second ultrasonic signal based on the frequency difference, and calculating the distance to the target object based on the second echo and the second aftershock wave.
[0053] In a specific embodiment, the second emission wave has the same frequency as the second echo wave, and the second aftershock wave has a different frequency from the second echo wave. Figure 4From left to right, the first wave is the transmitting wave, and then the waves on the upper and lower sides are separated from the back of the transmitting wave. The wave on the upper side that is parallel to the transmitting wave (that is, the same frequency) is the echo wave, and the wave on the lower side is the aftershock wave. Of course, the specific distinction between the echo and the aftershock wave is mainly based on the echo wave having the same frequency as the transmitting wave and Figure 4 In other embodiments, if the aftershock wave frequency is greater than the emission wave frequency, there is also a situation where the aftershock wave is on the upper side of the echo.
[0054] It should be pointed out that it is sufficient to distinguish the second echo from the second aftershock wave, and there is no need to distinguish the second transmission wave from the second echo, because the subsequent distance calculation requires the time of sending the transmission wave and the time of receiving the echo, so there is no need to clearly distinguish the transmission wave from the echo.
[0055] In this embodiment, calculating the distance to the target object based on the second echo and the second wave includes: determining a first time when the ultrasonic radar sends the second wave and a second time when the second echo is received; calculating the difference between the second time and the first time, and taking half of the difference as the target time; and calculating the product of the speed of light and the target time to obtain the distance to the target object.
[0056] Figure 4 In the figure, we can clearly see that there is a signal with weaker energy during the aftershock period, and the signal frequency is consistent with the wave transmission frequency. Therefore, we can get that the signal is an ultrasonic echo signal returned from the near field, so we can detect the echo signal and its return time, and finally calculate the distance.
[0057] In this embodiment, calculating the distance to the target object based on the second echo and the second wave includes: determining a first time when the ultrasonic radar sends the second wave and a second time when the second echo is received; calculating the difference between the second time and the first time, and taking half of the difference as the target time; and calculating the product of the speed of light and the target time to obtain the distance to the target object.
[0058] It should be pointed out that the time of the ultrasonic radar's corresponding software setting and the time when the software detects and obtains the second echo can be directly determined. Of course, it can also be directly obtained from Figure 4 The vertical coordinate in determines the time, but since the time-frequency domain is the state of energy, the determination of time may be inaccurate, for example, see Figure 2 The wave time should start from 2ms, but Figure 4 The time of the beginning of the medium wave and the arrival of the echo are both the time of the center point with the largest energy, that is, from Figure 4There are three points in the middle, and the box corresponding to each point includes the frequency (X), time (Y), pixel (Index) and color (RGB) of the point. Among them, the first point from left to right represents the center point with the largest wave energy, but the time at this point is obviously greater than 2ms, so there is a certain error. The upper point on the right is the center point with the largest echo energy, and the lower point is the center point with the largest aftershock wave energy. The time of sending the law wave and the time of receiving the echo are subsequently counted, and half of the difference between the two times is multiplied by the speed of light to obtain the distance to the target object.
[0059] What is needed is that after distinguishing the second echo from the second aftershock wave, the corresponding software of the ultrasonic radar can accurately determine the time when the second echo is detected, thereby improving the accuracy of distance detection.
[0060] In summary, the ultrasonic ranging method before the present application can only detect echo signals outside the aftershock. Therefore, no echo can be detected during the period from the start of the wave to the end of the aftershock part, and the echo distance cannot be obtained. This period of time is called the blind area, and the blind area is relatively large. The present application adopts a new method that can detect echo signals in the aftershock part and obtain the echo distance, shortening the blind area.
[0061] It can be seen that the present application collects the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle; the first ultrasonic signal includes the first wave in the time domain, the first aftershock wave, and the first echo formed after the first wave reaches the target object; the first wave is the ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the wave frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer; the first ultrasonic signal is converted to the time-frequency domain to obtain a second ultrasonic signal including the second wave, the second echo, and the second aftershock wave in the time-frequency domain; based on the frequency difference, the second echo and the second aftershock wave are distinguished in the second ultrasonic signal, and the distance to the target object is calculated based on the second echo and the second wave. It can be seen that the present application sets the wave and the aftershock wave to different frequencies. Because the wave and the echo have the same frequency, the echo and the aftershock wave have different frequencies, so the echo and the aftershock wave can be directly separated in the time-frequency domain, directly removing the influence of the aftershock wave on the echo, avoiding the ranging blind spot caused by the aftershock wave, and improving the ranging accuracy.
[0062] The embodiment of the present application discloses a specific ultrasonic radar ranging method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Figure 5 As shown, specifically including:
[0063] Step S21: Collect a first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes a first transmission wave in the time domain, a first aftershock wave, and a first echo formed after the first transmission wave reaches the target object; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer.
[0064] In this embodiment, the collecting of the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle based on the McQuist sampling theorem includes: determining a sampling rate based on radar properties, and collecting the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle according to the McQuist sampling theorem; wherein the sampling rate is greater than 2 times the wave transmission frequency, that is, Fs>2×fc, wherein Fs represents the sampling rate, and fc represents the wave transmission frequency.
[0065] Step S22: Convert the first ultrasonic signal to the time-frequency domain through a preset transformation algorithm to obtain a second ultrasonic signal including a second wave, a second echo and a second aftershock wave in the time-frequency domain; wherein the preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform and Wigner distribution.
[0066] In this embodiment, fft is Fourier transform, stft is short-time Fourier transform, wt is wavelet transform, and Wigner-Ville is Wigner distribution.
[0067] In this embodiment, the first ultrasonic signal is converted into the time-frequency domain by a preset transformation algorithm to obtain a second ultrasonic signal including a second wave, a second echo and a second aftershock wave in the time-frequency domain, including: anti-aliasing down-sampling the first ultrasonic signal, and converting the down-sampled signal into the time-frequency domain by a preset transformation algorithm to obtain a second ultrasonic signal including a second wave, a second echo and a second aftershock wave in the time-frequency domain.
[0068] It should be noted that anti-aliasing downsampling of the first ultrasonic signal can significantly reduce the computational load of the radar chip. Anti-aliasing downsampling is to move the received signal frequency to zero frequency.
[0069] In a specific embodiment, when the preset transformation algorithm is a transformation algorithm based on short-time Fourier transform, the conversion of the first ultrasonic signal to the time-frequency domain by the preset transformation algorithm includes: performing an m-point Fourier transform on the n sampling points of the first ultrasonic signal using an instant input and output method to convert the first ultrasonic signal to the time-frequency domain; wherein m>n; wherein the instant input and output method is an input and output method that outputs a sampling point while inputting a sampling point. Specifically, anti-aliasing downsampling may be performed first, and then the conversion may be completed using an instant input and output method. It should be pointed out that the specific number of m and n points is set according to the actual situation, and the effects achieved by different point settings may be different. It should be pointed out that the number of fft points, that is, the frequency spectrum line, is determined to be approximately matched with the wave frequency. When the energy value of the spectrum line frequency is found after each fft, if it exceeds a certain range, it means that there is an echo at this time.
[0070] Step S23: distinguishing the second echo and the second aftershock wave in the second ultrasonic signal based on the frequency difference, and calculating the distance to the target object based on the second echo and the second aftershock wave.
[0071] In summary, the present application detects the ultrasonic wave, echo, and aftershock wave frequency in the time-frequency domain, thereby fundamentally separating the aftershock and echo. This allows the close-range blind area to be directly reduced by 900 to 1300 microseconds, or 15 to 22 cm. The minimum blind area can almost be less than 5 cm.
[0072] It can be seen that the present application collects the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle based on the McQuist sampling theorem; the first ultrasonic signal includes a first wave in the time domain, a first aftershock wave, and a first echo formed after the first wave reaches the target object; the first wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the wave frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer; the first ultrasonic signal is converted to the time-frequency domain by a preset transformation algorithm to obtain a second ultrasonic signal including a second wave, a second echo, and a second aftershock wave in the time-frequency domain; wherein the preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform, and Wigner distribution; the second echo and the second aftershock wave are distinguished in the second ultrasonic signal based on the frequency difference, and the distance to the target object is calculated based on the second echo and the second wave. It can be seen that the present application sets the transmission wave and the aftershock wave to different frequencies. Since the transmission wave and the echo frequency are the same, the echo and the aftershock wave have different frequencies. Therefore, the echo and the aftershock wave can be directly separated in the time-frequency domain, and the influence of the aftershock wave on the echo is directly removed, thereby avoiding the ranging blind area caused by the aftershock wave and improving the ranging accuracy. In addition, the present application discloses a specific method for conversion to the time-frequency domain, and on this basis, the use of anti-aliasing downsampling reduces the computational load.
[0073] Correspondingly, the present application also discloses an ultrasonic radar ranging device, see Figure 6 As shown, the device comprises:
[0074] The acquisition module 11 is used to acquire a first ultrasonic signal corresponding to an ultrasonic radar on a vehicle; the first ultrasonic signal includes a first transmission wave in the time domain, a first aftershock wave, and a first echo wave formed after the first transmission wave reaches a target object; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer;
[0075] A conversion module 12, used for converting the first ultrasonic signal into a time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain;
[0076] The distinguishing module 13 is used to distinguish the second echo and the second aftershock wave in the second ultrasonic signal based on the frequency difference, and calculate the distance to the target object based on the second echo and the second aftershock wave.
[0077] It can be seen that the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle is collected; the first ultrasonic signal includes the first wave in the time domain, the first aftershock wave, and the first echo formed after the first wave reaches the target object; the first wave is the ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the wave frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer; the first ultrasonic signal is converted to the time-frequency domain to obtain a second ultrasonic signal including the second wave, the second echo, and the second aftershock wave in the time-frequency domain; based on the frequency difference, the second echo and the second aftershock wave are distinguished in the second ultrasonic signal, and the distance to the target object is calculated based on the second echo and the second wave. It can be seen that the present application sets the wave and the aftershock wave to different frequencies. Because the wave and the echo have the same frequency, the echo and the aftershock wave have different frequencies, so the echo and the aftershock wave can be directly separated in the time-frequency domain, directly removing the influence of the aftershock wave on the echo, avoiding the ranging blind area caused by the aftershock wave, and improving the ranging accuracy.
[0078] In one embodiment, the acquisition module is specifically used to acquire a first ultrasonic signal corresponding to an ultrasonic radar on the vehicle based on the McQuist sampling theorem.
[0079] In one embodiment, the acquisition module is specifically used to determine the sampling rate based on radar properties and collect the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle according to the McQuist sampling theorem; wherein the sampling rate is greater than 2 times the wave frequency.
[0080] In one embodiment, the conversion module is specifically used to convert the first ultrasonic signal into the time-frequency domain by a preset conversion algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain;
[0081] The preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform and Wigner distribution.
[0082] In one embodiment, the conversion module is specifically used to perform anti-aliasing down-sampling on the first ultrasonic signal, and convert the down-sampled signal to the time-frequency domain through a preset transformation algorithm to obtain a second ultrasonic signal including a second wave, a second echo and a second aftershock wave in the time-frequency domain.
[0083] In one embodiment, when the preset transformation algorithm is a transformation algorithm based on short-time Fourier transform, the conversion module is specifically used to perform an m-point Fourier transform on the n sampling points of the first ultrasonic signal using an instant input and output method to convert the first ultrasonic signal into the time-frequency domain; wherein m>n; wherein the instant input and output method is an input and output method that outputs a sampling point while inputting a sampling point.
[0084] Furthermore, an embodiment of the present application also provides an electronic device. Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0085] Figure 7 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input and output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the ultrasonic radar ranging method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0086] In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0087] In addition, the memory 22, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include a computer program 221, and the storage method may be temporary storage or permanent storage. In addition to including a computer program that can be used to complete the ultrasonic radar ranging method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 221 may further include a computer program that can be used to complete other specific tasks.
[0088] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the ultrasonic radar ranging method disclosed above is implemented.
[0089] The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, which will not be repeated here.
[0090] The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0091] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0092] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0093] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0094] The above is a detailed introduction to an ultrasonic radar ranging method, device, equipment, and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An ultrasonic radar ranging method, characterized in that: include: Collecting a first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes a first transmission wave in the time domain, a first aftershock wave, and a first echo wave formed after the first transmission wave reaches the target object; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer; Converting the first ultrasonic signal into the time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain; The second echo and the second aftershock wave are distinguished in the second ultrasonic signal based on a frequency difference, and a distance to the target object is calculated based on the second echo and the second aftershock wave.
2. The ultrasonic radar ranging method according to claim 1, characterized in that: The base collects a first ultrasonic signal corresponding to an ultrasonic radar on the vehicle, including: The sampling rate is determined based on the radar properties, and the first ultrasonic signal corresponding to the ultrasonic radar on the vehicle is collected according to the McQuist sampling theorem; wherein the sampling rate is greater than 2 times the wave frequency.
3. The ultrasonic radar ranging method according to claim 1 or 2, characterized in that: The step of converting the first ultrasonic signal into the time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain includes: Convert the first ultrasonic signal into the time-frequency domain by a preset conversion algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo and a second aftershock wave in the time-frequency domain; The preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform and Wigner distribution.
4. The ultrasonic radar ranging method according to claim 3, characterized in that: The method of converting the first ultrasonic signal into the time-frequency domain by a preset transformation algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain includes: The first ultrasonic signal is downsampled for anti-aliasing, and the downsampled signal is converted to the time-frequency domain through a preset transformation algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo, and a second aftershock wave in the time-frequency domain.
5. The ultrasonic radar ranging method according to claim 3, characterized in that: When the preset transformation algorithm is a transformation algorithm based on short-time Fourier transform, converting the first ultrasonic signal into the time-frequency domain by using the preset transformation algorithm includes: Performing an m-point Fourier transform on the n sampling points of the first ultrasonic signal in a real-time input-output manner to convert the first ultrasonic signal into a time-frequency domain; wherein m>n; The instant input-output mode is an input-output mode in which a sampling point is outputted while a sampling point is inputted.
6. The ultrasonic radar ranging method according to claim 1, characterized in that: The calculating the distance to the target object based on the second echo and the second transmission wave comprises: Determine a first time when the ultrasonic radar sends the second echo and a second time when the ultrasonic radar receives the second echo; Calculating the difference between the second time and the first time, and taking half of the difference as the target time; The product of the speed of light and the target time is calculated to obtain the distance to the target object.
7. An ultrasonic radar ranging device, characterized in that: include: an acquisition module, used for acquiring a first ultrasonic signal corresponding to the ultrasonic radar; the first ultrasonic signal includes a first transmission wave in the time domain, a first aftershock wave, and a first echo wave formed after the first transmission wave reaches the target object; the first transmission wave is an ultrasonic wave emitted by the ultrasonic radar after being configured using preset configuration parameters, and the preset configuration parameters are used to configure the transmission frequency of the ultrasonic radar to be inconsistent with the resonant frequency of the transducer; A conversion module, used for converting the first ultrasonic signal into a time-frequency domain to obtain a second ultrasonic signal including a second transmission wave, a second echo wave and a second aftershock wave in the time-frequency domain; A distinguishing module is used to distinguish the second echo and the second aftershock wave in the second ultrasonic signal based on frequency difference, and calculate the distance to the target object based on the second echo and the second aftershock wave.
8. The ultrasonic radar ranging device according to claim 7, characterized in that: The conversion module is specifically used to convert the first ultrasonic signal into the time-frequency domain by a preset conversion algorithm to obtain a second ultrasonic signal including a second transmission wave, a second echo and a second aftershock wave in the time-frequency domain; The preset transformation algorithm is a transformation algorithm based on any one of Fourier transform, short-time Fourier transform, wavelet transform and Wigner distribution.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the ultrasonic radar ranging method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the ultrasonic radar ranging method according to any one of claims 1 to 6 is implemented.
