WO2024131580A1 - Ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device - Google Patents

Ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device Download PDF

Info

Publication number
WO2024131580A1
WO2024131580A1 PCT/CN2023/137767 CN2023137767W WO2024131580A1 WO 2024131580 A1 WO2024131580 A1 WO 2024131580A1 CN 2023137767 W CN2023137767 W CN 2023137767W WO 2024131580 A1 WO2024131580 A1 WO 2024131580A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
module
ultrasonic
correlation
carrier
Prior art date
Application number
PCT/CN2023/137767
Other languages
French (fr)
Chinese (zh)
Inventor
眭志凌
李桂萍
王炯
Original Assignee
成都极海科技有限公司
上海领帆微电子有限公司
珠海极海半导体有限公司
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 成都极海科技有限公司, 上海领帆微电子有限公司, 珠海极海半导体有限公司 filed Critical 成都极海科技有限公司
Publication of WO2024131580A1 publication Critical patent/WO2024131580A1/en

Links

Definitions

  • the present application relates to the field of ultrasonic technology, and in particular to an ultrasonic sensor chip, an ultrasonic signal processing method and an ultrasonic radar device.
  • ultrasonic radar devices can be used in vehicles, for example, to determine the distance between the vehicle and obstacles.
  • the ultrasonic radar device transmits ultrasonic signals on the one hand and receives ultrasonic signals on the other hand, wherein the received signal is divided into time segments, which are substantially equal to half the burst length.
  • a peak value is determined, and the distance between the vehicle and the obstacle is determined based on the peak signal.
  • clutter, noise, other ultrasonic waves, etc. in the environment will interfere with the ultrasonic system, making the existing scheme ineffective in evaluating the distance to obstacles.
  • An ultrasonic sensor chip, an ultrasonic signal processing method and an ultrasonic radar device can reduce the interference of the environment on the ultrasonic signal processing.
  • an ultrasonic sensor chip comprising: a driving circuit, a signal processing circuit and a storage module, the driving circuit comprising a carrier generation module, a modulation code generation module, and a phase modulation module, the signal processing circuit comprising a sampling module, a correlation calculation module and a processing module;
  • the input ends of the carrier generation module and the modulation code generation module are used to couple to the microprocessor chip to receive the trigger signal, and the output ends of the carrier generation module and the modulation code generation module are electrically connected to the input end of the phase modulation module; the output end of the phase modulation module is used to couple to the first ultrasonic transducer; the input end of the sampling module is coupled to the second ultrasonic transducer, and the output end of the sampling module is electrically connected to the input end of the correlation calculation module; the input end of the storage module is electrically connected to the output end of the driving circuit, and the output end of the storage module is electrically connected to the input end of the correlation calculation module, and the reference signal is stored in the storage module; the input end of the processing module is electrically connected to the output end of the correlation calculation module, and the output end of the processing module is used to couple to the microprocessor chip to send a feedback signal; wherein,
  • the carrier generation module receives the trigger signal to generate a carrier and inputs the carrier into the phase modulation module;
  • a modulation code generation module receives a trigger signal to generate a modulation code, and inputs the modulation code to a phase modulation module;
  • a phase modulation module receives a modulation code and a carrier signal and performs phase modulation on the carrier to obtain a modulated wave, and outputs the modulated wave to the first ultrasonic transducer;
  • a sampling module used for sampling the ultrasonic signal received by the second ultrasonic transducer, and inputting the sampled signal into the correlation calculation module;
  • a correlation calculation module reads the reference signal in the storage module to determine the correlation of the sampled signal, and inputs the correlation information to the processing module, wherein the correlation is related to the modulation code, and the correlation is related to the carrier;
  • the processing module receives the correlation information and outputs a feedback signal indicating that the correlation reaches a preset value.
  • an ultrasonic sensor chip including: a carrier generation module for generating a carrier; a modulation code generation module for generating a modulation code; a phase modulation module for modulating the phase of the carrier according to the modulation code to obtain a modulated wave, and outputting the modulated wave to a first ultrasonic transducer; a sampling module for sampling an ultrasonic signal received by a second ultrasonic transducer to obtain a sampled signal; a correlation calculation module for determining the correlation of the sampled signal according to a reference signal, the correlation being related to the modulation code, and the correlation being related to the carrier; and a processing module for determining the sampled signal whose correlation reaches a preset value as a designated echo.
  • an ultrasonic radar device comprising: the ultrasonic sensor chip mentioned above;
  • a first ultrasonic transducer the input end of which is electrically connected to the output end of the ultrasonic sensor chip, for receiving a modulated wave and transmitting an ultrasonic signal
  • the second ultrasonic transducer has an output end electrically connected to an input end of the ultrasonic sensor chip, and the ultrasonic sensor chip is used to sample the ultrasonic signal received by the second ultrasonic transducer.
  • a method for processing ultrasonic signals comprising: generating a carrier wave; generating a modulation code; modulating the phase of the carrier wave according to the modulation code to obtain a modulated wave, and outputting the modulated wave to a first ultrasonic transducer; sampling the ultrasonic signal received by the second ultrasonic transducer to obtain a sampled signal; determining a correlation of the sampled signal according to a reference signal, wherein the correlation is correlated with the modulation code, and the correlation is correlated with the carrier wave; and determining the sampled signal whose correlation reaches a preset value as a designated echo.
  • an ultrasonic radar device comprising: the above-mentioned ultrasonic sensor chip; a first ultrasonic transducer electrically connected to the ultrasonic sensor chip to receive a modulated wave, and used to transmit an ultrasonic signal according to the modulated wave; and a second ultrasonic transducer electrically connected to the ultrasonic sensor chip to transmit the received ultrasonic signal to the ultrasonic sensor chip.
  • the ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device in the embodiments of the present application modulate the carrier wave through the modulation code to generate a modulated wave for exciting ultrasonic emission, calculate the correlation of the received signal through the correlation calculation module, and determine whether it is a designated echo based on the calculation result, thereby reducing the adverse effects of interference, noise, etc. in the environment on ultrasonic signal processing and improving the accuracy of ultrasonic signal processing. For example, when the ultrasonic sensor is applied to the ultrasonic radar device of a vehicle, the accuracy of radar positioning can be improved.
  • FIG1 is a schematic diagram of the structure of an ultrasonic radar device and an obstacle in an embodiment of the present application
  • FIG2 is a schematic diagram of waveforms during phase modulation in an embodiment of the present application.
  • FIG3 is a schematic diagram of the principle of phase modulation in an embodiment of the present application.
  • FIG4 is a schematic diagram of spectrum changes before and after phase modulation of a carrier in an embodiment of the present application.
  • FIG5 is a schematic diagram of a structure of a part of the structure of the ultrasonic radar device in FIG1 ;
  • FIG. 6 is a schematic diagram of the spectrum change of a signal including only a modulated wave received by the second ultrasonic transducer in an embodiment of the present application before and after modulation and despreading;
  • FIG. 7 is a schematic diagram of the spectrum change of the signal including the modulated wave and the interference received by the second ultrasonic transducer in the embodiment of the present application before and after modulation and despreading;
  • FIG8 is another schematic diagram of a partial structure of the ultrasonic radar device in FIG1 ;
  • FIG9 is a schematic diagram of the correlation between the carrier and the sampling signals received at different times in an embodiment of the present application.
  • FIG10 is a schematic diagram of a waveform sampling in an embodiment of the present application.
  • FIG11 is a schematic diagram of a structure of a part of the ultrasonic radar device in FIG1 ;
  • FIG12 is a schematic diagram of a structure of a part of the structure of the ultrasonic radar device in FIG1 ;
  • FIG13 is a schematic diagram of waveform sampling with different amplitudes in an embodiment of the present application.
  • FIG14a is a schematic diagram of a structure of a part of the ultrasonic radar device in FIG1 ;
  • FIG14b is a schematic diagram of a structure of a part of the structure of the ultrasonic radar device in FIG1;
  • FIG15 is a schematic diagram of a structure of a part of the ultrasonic radar device in FIG1 ;
  • FIG16 is a schematic diagram of the relationship between a correlation and a modulation code in an embodiment of the present application.
  • FIG17 is a flow chart of a signal processing method in an embodiment of the present application.
  • FIG18 is a flow chart of another signal processing method in an embodiment of the present application.
  • FIG19 is a flow chart of another signal processing method in an embodiment of the present application.
  • FIG20 is a flow chart of another signal processing method in an embodiment of the present application.
  • FIG21 is a flow chart of another signal processing method in an embodiment of the present application.
  • FIG. 22 is a flow chart of another signal processing method in an embodiment of the present application.
  • the embodiment of the present application provides an ultrasonic sensor chip and an ultrasonic radar device.
  • the ultrasonic sensor chip can be applied to the ultrasonic radar device.
  • the ultrasonic radar device 100 includes the ultrasonic sensor chip 10 and an ultrasonic transducer 200.
  • the ultrasonic transducer 200 includes a first ultrasonic transducer 201 and a second ultrasonic transducer 202.
  • the input end of the first ultrasonic transducer 201 is electrically connected to the output end of the ultrasonic sensor chip 10, and is used to receive a modulated wave and transmit an ultrasonic signal.
  • the output end of the second ultrasonic transducer 202 is electrically connected to the input end of the ultrasonic sensor chip 10.
  • the ultrasonic sensor chip 10 is used to sample the ultrasonic signal received by the second ultrasonic transducer 202.
  • the first ultrasonic transducer 201 and the second ultrasonic transducer 202 can be two independent devices or integrated devices.
  • the ultrasonic sensor chip 10 includes: a driving circuit, a signal processing circuit and a storage module 81, wherein the driving circuit includes a carrier generation module 1, a modulation code generation module 2, and a phase modulation module 3, and the signal processing circuit includes a sampling module 4, a correlation calculation module 5 and a processing module 6.
  • the input ends of the carrier generation module 1 and the modulation code generation module 2 are used to couple to the microprocessor chip 20 to receive the trigger signal, and the output ends of the carrier generation module 1 and the modulation code generation module 2 are electrically connected to the input end of the phase modulation module 3; the output end of the phase modulation module 3 is used to couple to the first ultrasonic transducer 201; the input end of the sampling module 4 is coupled to the second ultrasonic transducer 202, and the output end of the sampling module 4 is electrically connected to the input end of the correlation calculation module 5; the input end of the storage module 81 is electrically connected to the output end of the driving circuit, and the output end of the storage module 81 is electrically connected to the input end of the correlation calculation module 5, and the storage module 81 stores a reference signal; the input end of the processing module 6 is electrically connected to the output end of the correlation calculation module 5, and the output end of the processing module 6 is used to couple to the microprocessor chip 20 to send a feedback signal; wherein, The carrier generation module
  • the ultrasonic radar device 100 may further include a microprocessor chip 20, the output end of the microprocessor chip 20 is electrically connected to the input end of the ultrasonic sensor chip 10, and the input end of the microprocessor chip 20 is electrically connected to the output end of the ultrasonic sensor chip 10; the ultrasonic sensor chip 10 receives a trigger signal from the microprocessor chip 20 to generate a modulated wave, and the ultrasonic sensor chip 10 is also used to send a feedback signal to the microprocessor chip 20 when a specified echo is received.
  • At least one pin of the ultrasonic sensor chip 10 is electrically connected to the ultrasonic transducer 200, and at least one pin of the ultrasonic sensor chip 10 is electrically connected to the microprocessor chip 20 through a controller area network (CAN), a local interconnect network (LIN), a point-to-point (pt-to-pt), etc.
  • the microprocessor chip 20 outputs a trigger signal to the ultrasonic sensor chip 10
  • the ultrasonic sensor chip 10 responds to the trigger signal from the microprocessor chip 20 to drive the carrier generation module 1 to generate a carrier (for example, a sine wave).
  • the modulation code generation module 2 generates a modulation code as a modulation signal.
  • the phase modulation module 3 modulates the phase of the carrier according to the modulation code to obtain a modulation wave, that is, the phase of the carrier is adjusted according to the modulation code, and the adjusted signal is the modulation wave, which is the ultrasonic excitation signal.
  • the phase modulation module 3 outputs the modulation wave to the first ultrasonic transducer 201, and the first ultrasonic transducer 201 vibrates under the excitation control of the modulation wave to generate a corresponding ultrasonic wave, and the ultrasonic wave will be reflected when encountering an obstacle.
  • the second ultrasonic transducer 202 receives an ultrasonic signal, and the sampling module 4 samples the ultrasonic signal received by the second ultrasonic transducer 202 to obtain a sampled signal.
  • the sampling module 4 is an analog-to-digital converter (ADC) that converts an analog signal into a digital signal. Due to interference and noise in the environment, there may also be ultrasonic waves generated by other ultrasonic transducers. Therefore, the wave received by the second ultrasonic transducer 202 is not necessarily the ultrasonic wave emitted by the first ultrasonic transducer 201. In the embodiment of the present application, the ultrasonic wave emitted by the first ultrasonic transducer 201 is driven by a modulation wave modulated by a modulation code, and the ultrasonic wave not only has the signal characteristics of the carrier itself, but also has the signal characteristics of the modulation code.
  • ADC analog-to-digital converter
  • the correlation is determined according to the reference signal and the sampled signal. If it is determined in the processing module 6 that the correlation reaches the preset value, it means that the signal has the characteristics of both the carrier and the modulation code, that is, it means that the signal comes from the first ultrasonic transducer 201, rather than an interference or noise signal, so the signal is used as a designated echo, and the designated echo refers to the echo signal of the ultrasonic wave emitted by the first ultrasonic transducer 201, so as to facilitate the subsequent determination of the distance to the obstacle according to the designated echo.
  • the processing module 6 If it is determined in the processing module 6 that the correlation does not reach the preset value, it means that the signal is an interference or noise signal, so it will not be used as a designated echo. In the subsequent process of determining the distance to the obstacle, interference and noise are reduced, and the accuracy of ultrasonic positioning is improved.
  • Microprocessor chips in automobiles are usually called electronic control units (ECUs), domain controllers, and can be, for example, microcontroller units (MCUs), digital signal processing (DSPs), microprocessors, etc.
  • MCUs microcontroller units
  • DSPs digital signal processing
  • MPU micro central processing unit
  • CPU micro central processing unit
  • the ultrasonic sensor chip in the embodiment of the present application modulates the carrier wave through the modulation code to generate a modulated wave for exciting ultrasonic emission, calculates the correlation of the received signal through the correlation calculation module, and determines whether it is a designated echo based on the calculation result, thereby reducing the adverse effects of interference and noise in the environment on ultrasonic signal processing and improving the accuracy of ultrasonic signal processing.
  • the ultrasonic sensor chip is used in an ultrasonic radar device of a vehicle, the accuracy of radar positioning can be improved.
  • the ultrasonic sensor chip 10 further includes a first timer, which can be electrically connected to the processing module 6.
  • the first timer is used to start timing after the first ultrasonic transducer 201 emits an ultrasonic signal, or starts timing after receiving a trigger signal sent by the microprocessor chip 20, and stops timing when it is determined that a specified echo is received; the ultrasonic sensor chip 10 is also used to calculate the obstacle distance according to the timing duration of the first timer and the specified echo, and transmit the obstacle distance to the microprocessor chip 20.
  • the processing module 6 in the ultrasonic sensor chip 10 can calculate the distance of the obstacle according to the relationship between time and ultrasonic transmission speed; after obtaining the distance information, the processing module 6 outputs data to the microprocessor chip 20, and the microprocessor chip 20 is used to make judgments and trigger prompts based on the received data, such as triggering a buzzer to emit a prompt sound, a light prompt, a display prompt, a voice prompt, etc.
  • the microprocessor chip 20 may include a first timer, and the microprocessor chip 20 obtains the timing duration of the first timer and the received feedback signal to obtain the obstacle distance. That is, the first timer may also be set in the microprocessor chip 20, and the timer starts timing after the microprocessor chip 20 sends a trigger signal, and the trigger signal is used to trigger the ultrasonic sensor chip 10 to generate a modulated wave, so that the first ultrasonic transducer 201 emits an ultrasonic signal, stops timing when it is determined that a specified echo is received, and can calculate the distance of the obstacle based on the relationship between time and ultrasonic transmission speed; after obtaining the distance information, a corresponding action is taken, such as triggering a buzzer to emit a prompt sound or triggering an alarm light, etc.
  • a corresponding action is taken, such as triggering a buzzer to emit a prompt sound or triggering an alarm light, etc.
  • the obstacle distance can be calculated by any one of the ultrasonic sensor chip 10 and the microprocessor chip 20.
  • the ultrasonic sensor chip 10 will send a feedback signal of receiving the designated echo to the microprocessor chip 20, such as the I/O pin clock is high or low.
  • the ultrasonic sensor chip 10 After determining the designated echo, the ultrasonic sensor chip 10 will pull the I/O pin high or low, and the microprocessor chip 20 will calculate the time from sending the trigger signal to receiving the indication signal based on this signal, calculate the distance of the obstacle, and then control the corresponding prompt system to take action; if the ultrasonic sensor chip 10 performs the distance calculation, it can send data indicating different distances through the I/O pin after the calculation is completed, and the microprocessor chip 20 will receive this data and analyze it, and control the corresponding prompt system to take action according to the result of the analysis.
  • the ultrasonic radar device includes a plurality of ultrasonic sensor chips 10 , a plurality of first ultrasonic transducers 201 , and a plurality of second ultrasonic transducers 202 .
  • the modulation code includes a first code value and a second code value, for example, the first code value is 0, and the second code value is 1.
  • the first code value is used to flip the carrier phase by 180°
  • the second code value is used to keep the carrier phase unchanged.
  • the signal input to the phase modulation module 3 by the modulation code generation circuit 1 includes a first signal and a second signal.
  • the phase modulation module 3 receives the first signal and outputs the corresponding carrier information.
  • the phase modulation module 3 receives the second signal and outputs the information that is 180° different from the corresponding carrier.
  • the modulation code includes multiple modulation chips, each of which has a width of d, and one carrier cycle corresponds to one modulation chip width.
  • the carrier is wave A with 9 sinusoidal wave cycles;
  • the modulation code is 111001100, that is, wave B with 9 modulation chips.
  • the sinusoidal wave phase flips 180°, and when encountering a modulation chip of 1, the sinusoidal wave phase remains unchanged, and the modulated wave obtained after modulation is wave C.
  • the sequence code of wave A is 1 at the initial phase
  • the sequence code after the phase reversal is 0, that is, the sequence code of wave C after modulation by the modulation code is 111001100.
  • the carrier after phase modulation produces a spread spectrum effect.
  • the carrier before phase modulation, the carrier has only one frequency, and after modulation, multiple frequencies are generated, which is equivalent to the frequency being scattered.
  • this scheme does not adjust the frequency of the carrier, but only adjusts the phase of the carrier, but produces the effect of frequency modulation, which is a significant improvement over frequency modulation. See the following description for details.
  • the width of a chip does not necessarily correspond to one carrier cycle, and one chip may correspond to multiple carrier cycles.
  • the principle is the same as the above one chip width equals one carrier cycle, which will not be repeated here.
  • the chip width see the following description.
  • the ultrasonic sensor chip 10 further includes: a sampling module 4 and a related A modulation and despreading module 8 is connected between the correlation calculation module 5, the input end of the modulation and despreading module 8 is coupled to the output end of the sampling module 4, and the output end of the modulation and despreading module 8 is coupled to the input end of the correlation calculation module 5; the storage module also stores the modulation code, and the input end of the modulation and despreading module 8 is also electrically connected to the output end of the storage module 81 to read the modulation code; the reference signal is a carrier or a carrier orthogonal wave orthogonal to the carrier.
  • the sampling module 4 samples the ultrasonic signal received by the second ultrasonic transducer 202, and the modulated wave obtained is wave D.
  • the modulation and despreading module 8 modulates and despreads wave D according to wave B, and the despread sampled signal obtained is wave E.
  • wave E wave D * wave B.
  • the interference signal in the environment, the channel noise, or the spread spectrum signal emitted by other devices, etc. are called undesignated echoes.
  • the undesignated echoes There are two types of undesignated echoes, one is a spread spectrum signal, i.e., a signal containing multiple frequencies, and the other is a signal with a particularly high frequency, i.e., a single frequency signal.
  • the received interference signal is a single frequency and the other signal is a spread spectrum signal as an example for explanation.
  • the above wave E1 is correlated with wave A one by one to check the correlation between wave E1 and wave A during any sliding process. When wave E1 is different from wave A, the correlation is always at a low level during the entire sliding process.
  • the other interference signal is a spread spectrum sequence, denoted as D3.
  • D3 111000110
  • the correlation calculation between wave E3 and wave A is low (the highest is 6 in the example). It can be seen that even if the received echo signal is also a signal containing multiple frequencies, it does not conform to the modulation rules of the modulation code, and the finally obtained correlation is still very low, and it is not a designated echo. It should be noted that all echoes will be slidingly demodulated. If there are signals before and after the corresponding wave, the signal of the corresponding wave will be selected for modulation and demodulation with wave B.
  • a signal contains waves D1, D2, and D3 in chronological order
  • the first 9 bits of D1 will be modulated and demodulated with wave B, and the modulated and demodulated signal will be output to the next node; the 2nd to 10th bits of D1 will continue to be modulated and demodulated with wave B...
  • the modulation and demodulation of the 10th to 18th bits of D1 with wave B is completed, the 11th to 18th bits of D1 and the 1st bit of D2 will be modulated and demodulated with wave B, and the 12th to 18th bits of D2 and The 1st to 2nd bits of D2 are modulated and demodulated with wave B...
  • the modulation and demodulation of the 1st to 9th bits of D2 with wave B After the modulation and demodulation of the 1st to 9th bits of D2 with wave B is completed, the 2nd to 9th bits of D2 and the 1st bit of D3 are modulated and demodulated with wave B, and the 3rd to 9th bits of D2 and the 1st to 2nd bits of D3 are modulated and demodulated with wave B...
  • the modulation and demodulation of the 1st to 9th bits of D3 with wave B if there is no signal behind it, then the data modulated and demodulated with wave B by D3 becomes less and less, and the 2nd to 9th bits of D3 are modulated and demodulated with wave B, and the 3rd to 9th bits of D3 are modulated and demodulated with wave B... until the number of bits of D3 has no overlap with wave B and cannot be modulated and demodulated.
  • the reference signal is a modulated wave or a modulated orthogonal wave orthogonal to the modulated wave, for example.
  • An input end of the correlation calculation module 5 is electrically connected to an output end of the sampling module 4 .
  • the correlation between the sampled signal and the modulated wave can be directly calculated to determine whether the signal received by the second ultrasonic transducer 202 is the signal emitted by the first ultrasonic transducer 201.
  • wave C 111001100
  • performing the correlation operation between wave D and wave C is equivalent to including the despreading process in the above scheme.
  • the specific process is as above and will not be repeated. Only the correlation operation is discussed here.
  • wave D2 111111111
  • wave B*wave D 111001100
  • correlation value f2 111111111*111001100.
  • the correlation value is very low (the highest in the example is 5).
  • wave D3 111000110
  • wave B*wave D 111110101
  • correlation value f3 111111111*111110101
  • wave D4 111001100
  • wave B*wave D 1111111111
  • correlation value f4 1111111111*111111111111
  • the correlation value is the highest (9 in the example).
  • the embodiment corresponding to the structure shown in FIG8 can also realize the judgment of whether the signal is an interference signal.
  • Directly using the modulated wave and the sampling signal for correlation calculation can reduce the modulation and despreading process of the sampling chip, so that the connection relationship between the hardware circuit and the circuit can be more concise.
  • the correlation calculation module includes a convolution operation logic circuit to calculate the correlation.
  • a second timer may be provided in the ultrasonic sensor chip 10, and the second timer is related to the preset value of the correlation.
  • the second timer may not be provided, and the preset value of the correlation is related to time, and the preset value is directly stored in a memory, and multiple different values are provided in the memory, and the values are used to mark the preset value.
  • the preset values at different addresses in the memory are read, and the preset value is related to time. Generally speaking, as the clock passes, the preset value becomes smaller and smaller.
  • the memory may also store data on the relationship between time and the preset value, and the correlation is calculated by reading the time and the preset value.
  • the memory used to store the preset value may be the same storage module as the storage module 81 described below, but with different addresses, or it may be a storage module independent of the storage module 81 described below, but the same storage module is still an independent storage module, which is only physically divided.
  • the storage module When a preset value of correlation related to time is set, the storage module should also be electrically connected to the processing module 6.
  • the processing module 6 reads the preset value information in the storage module and compares the correlation information output by the correlation calculation module with the preset value to determine whether a specified echo exists.
  • the correlation between the despread sampling signal (wave E) and the modulated wave (wave C) is used to determine whether the despread sampling signal (wave E) comes from the ultrasonic wave emitted by the first ultrasonic transducer 201.
  • the despread sampling signal (wave E) includes a specified echo.
  • the echo signal is not aligned with the timing corresponding to the modulated wave (wave C), and then gradually aligned, and then gradually moves away from alignment. For example:
  • the clock lengths t0 and t1 mean that the timing of the despread sampling signal (wave E) and the modulation wave (wave C) are not aligned, so the correlation is low;
  • the timing corresponding to the specified modulation wave (wave C) must appear, but also the phase must be aligned to have a high correlation, otherwise the correlation is low. If the sequence is long enough, there will be no process of correlation from low to high and then from high to low. Even if it occurs, the correlations on both sides with the highest correlation are very low, which is easy to distinguish compared with the highest correlation. That is to say, in the embodiment of the present application, the moment when the specified echo is received can be determined more accurately, thereby improving the accuracy of obstacle distance calculation based on the clock length of the received specified echo.
  • the spread spectrum effect is achieved by adjusting the phase of the carrier, and then the echo During the despreading process of the signal, only the echo signals that meet the modulation and despreading rules can obtain a high correlation, that is, reach the preset value of the correlation. Any other non-specified echo signals will be spread again by the despreading process, so that a high correlation value cannot be obtained.
  • the correlation value can be used to determine whether a designated echo appears. Due to the phase adjustment, as long as a part of any echo does not meet the rules, the calculated correlation value is relatively low. Therefore, the echo signal with a high correlation value is the designated echo signal, so that the adverse effects of interference and noise in the environment on ultrasonic signal processing can be reduced according to the determination of the designated echo signal, and the accuracy of ultrasonic signal processing can be improved.
  • the time when the echo appears can be clearly specified, and the judgment logic is relatively simple.
  • the correlation calculation when the locally stored signal is correlated with the received signal, the correlation calculation generally occurs from low to high and then from high to low. Therefore, the logical judgment of which correlation value to select as the timing of the echo signal appearance is relatively complex. The timing of the echo signal appearance in this solution is relatively clear, and the judgment logic is simpler. If the length of the carrier is long enough, then during the correlation calculation, only the correlation of the specified echo waveform will be high, and the correlation of other waveforms will be very low, because the possibility of nature or other ultrasonic systems emitting highly consistent waves is very low.
  • the embodiment of the present application changes the phase of the carrier without changing the frequency, so the sampling frequency can be fixed during sampling, and the adopted frequency can be relatively low. If the frequency is adjusted in such a way that the frequency is increased, the sampling frequency must be increased, otherwise the real waveform cannot be reflected. Either the sampling frequency must be adjusted in real time, or a higher sampling frequency must be fixed, which increases the hardware overhead of sampling. If a higher sampling frequency is fixed, a lot of data will be processed in subsequent correlation calculations, peak calculations, etc., further increasing the overhead of the hardware circuit. For the embodiment of the present application, it is only necessary to fix a relatively low frequency that can reflect the carrier waveform, and the hardware is simpler.
  • the embodiment of the present application can also effectively improve the influence of aftershocks, thereby improving the accuracy of obstacle judgment.
  • the ultrasonic excitation signal stops, but because the ultrasonic sensor cannot stop immediately, aftershocks will occur, and obstacles cannot be judged during the aftershocks, resulting in a decrease in judgment accuracy, that is, the close-range judgment is affected.
  • the existence of aftershocks basically does not affect the judgment of the specified echo, thereby improving the detection accuracy.
  • an additional aftershock elimination circuit is basically used, such as increasing the on-resistance to the ground, increasing the suppression signal, etc., which will additionally increase the complexity of the circuit and the entire chip, while the present application does not require additional processing circuits, saving hardware expenses while simplifying the circuit.
  • one of the beneficial effects of the present application is that no filtering circuit is required, but the present application does not exclude the solution of adding a filtering circuit.
  • phase angle deviation may appear, but in actual situations, 20°, 110°, 200°, and 290° may appear, resulting in deviations in the final correlation result, leading to misjudgment.
  • a sine wave samples 4 points, and the amplitude of the sine wave is 1V, then the values obtained by sampling at 0°, 90°, 180°, and 270° are 0V, 1V, 0V, and -1V (if such a pattern appears, it is considered that a sine wave with the initial phase angle described above has appeared; similarly, if -1V, 0V, 1V, and 0V appear, it is considered that a sine wave with a phase flip described above has appeared). If 0V, 1V, 0V, and -1V appear; 0V, 1V, 0V, and -1V; and -1V, 0V, 1V, and 0V appear, it means that a wave of 110 has appeared.
  • the waveform in the figure has a wave of 110, which means that the designated echo has appeared.
  • the sampling starts from 0° (waveform 1). If the waveform data obtained from sampling from 30° (waveform 2), 45° (waveform 3), and 90° (waveform 4) are different, the example of a cycle of 4 clock length is used for explanation.
  • the example of a cycle of 4 clock length is used for explanation.
  • the correlation calculation module 5 is specifically used to calculate the first correlation between the sampling signal and the time sequence corresponding to the reference signal; calculate the second correlation between the sampling signal and the orthogonal time sequence corresponding to the reference signal; and determine the sampling signal whose sum of the first correlation and the second correlation reaches a preset value as the designated echo. That is, the storage module 81 also stores a signal orthogonal to the reference signal, and the correlation calculation module 5 also reads the signal orthogonal to the reference signal to determine the correlation.
  • Correlation 1 is the correlation between the carrier and wave n
  • correlation 2 is the correlation between the orthogonal sequence corresponding to the carrier and wave n, where wave n is 1, 2, 3, or 4.
  • a modulation and despreading module may not be provided, but the correlation calculation may be performed directly on the signal output by the sampling module 4.
  • the scheme shown in FIG12 is similar to the scheme shown in FIG11, except that in the scheme shown in FIG11, the correlation of the despread sampling signal is calculated, while in the scheme shown in FIG12, the correlation of the sampling signal output by the sampling module 4 is calculated.
  • the principles of the two are similar, and both utilize the correlation calculation of the orthogonal timing to improve the misjudgment problem caused by the sampling phase deviation.
  • the solid line waveform is the ultrasonic signal received by the second ultrasonic transducer 202 when the time from the first ultrasonic transducer 201 sending the ultrasonic signal to the second ultrasonic transducer 202 receiving the ultrasonic signal is 0, and its amplitude is the same as that of the ultrasonic signal sent by the first ultrasonic transducer 201 (actually it cannot be 0s),
  • the dotted line waveform in the middle is the ultrasonic signal received by the second ultrasonic transducer 202 when the time is 5ms
  • the dotted line waveform closest to the origin is the ultrasonic signal received by the second ultrasonic transducer 202 when the time is 10ms.
  • a dynamic correlation threshold can be set, and the correlation is related to time and decreases with the increase of time, that is, the preset value of the correlation set by using the above-mentioned second timer (or directly storing the preset value related to time) is negatively correlated with the timing time of the second timer.
  • a plurality of different preset values are stored in the storage module 81, and the input end of the processing module 6 is electrically connected to the output end of the storage module 81 to read the preset value.
  • setting a dynamically changing threshold requires more registers, memories, or more hardware circuit overhead.
  • the embodiment of the present application also provides another solution to improve the problem of inaccurate judgment caused by the decrease in the amplitude of the ultrasonic signal over time.
  • the ultrasonic sensor chip further includes: a symbol processing module 7 disposed between the sampling module 4 and the correlation calculation module 5, the input end of the symbol processing module 7 being electrically connected to the output end of the sampling module 4, and the output end of the symbol processing module 7 being electrically connected to the input end of the correlation calculation module 5; the symbol processing module 7 is used to convert the positive value of the sampling signal into a first fixed value, and convert the negative value of the sampling signal into a second fixed value.
  • the symbol processing module 7 can be located between the correlation calculation module 5 and the modulation and despreading module 8, and for 0V in the despread sampling signal, it remains unchanged and still takes 0V; if it is a negative value such as -1V, -0.707V, -0.5V, etc., it takes a first fixed value such as -1V; if it is a positive value such as 1V, 0.707V, 0.5V, etc., it takes a second fixed value such as 1V, and similarly performs normalization processing. In this way, no matter what the sampled value is, after being processed by the symbol processing module, the output is independent of the amplitude.
  • Table 4-1 and Table 4-2 it is a comparative example of correlation calculation without symbol extraction based on the scheme shown in Figure 11, taking 0° phase angle sampling as an example for explanation.
  • Table 4-1 and Table 4-2 show that the sampling amplitude decreases with the increase of time, such as 1V-0.7V-0.5V-0.3V (maximum value), then, the result of correlation calculation with the timing corresponding to the carrier and the orthogonal timing corresponding to the carrier also decreases, 6-4.2-3-1.8. Then it is necessary to adjust the dynamic correlation value, which has large hardware overhead, complex circuits, and more complex logical operations.
  • FIG. 14b is a variation of FIG. 14a, and the symbol processing module 7 can also be arranged between the sampling module 4 and the modulation and despreading module 8, and the symbol processing module 7 is used to convert the positive value of the sampled signal into a first fixed value, convert the negative value of the sampled signal into a second fixed value, and output the converted sampled signal to the modulation and despreading module 8.
  • This scheme is similar to the scheme shown in FIG. 14a, except that The difference is that, in the scheme shown in FIG. 14a , the symbol extracted is a modulated and despread signal, while in the variant scheme shown in FIG. 14b , the symbol extracted is a sampled signal.
  • the symbol processing module 7 may also be arranged between the sampling module 4 and the correlation calculation module 5, and the symbol processing module 7 is used to convert the positive value of the sampling signal into a first fixed value, convert the negative value of the sampling signal into a second fixed value, and output the converted sampling signal to the correlation calculation module 5.
  • the scheme shown in FIG15 is similar to the scheme shown in FIG14a and FIG14b, except that in the schemes shown in FIG14a and FIG14b, there is a modulation and despreading module, and in the scheme shown in FIG15, there is no modulation and despreading module.
  • the width of a code chip of the modulation code can be greater than a sine wave period of the carrier, such as a code chip corresponding to 2, 3, 4, ... n sine wave periods of the carrier.
  • the width of a code chip of the modulation code is equal to one period of the carrier.
  • the sampling period is one quarter of a sine wave period of the carrier.
  • the sampling frequency does not need to be very high or does not need to be modulated; a sine wave can only sample 4 points, taking 0° sampling as an example, the amplitudes of the 4 points of a sine wave sampling are 0V, 1V, 0V, -1V, and the amplitudes of the sine wave after phase modulation are 0V, -1V, 0V, 1V. Therefore, through the four sampling points, it can be clearly known whether it is a sine wave of the initial phase or a sine wave after phase modulation, that is, it can be determined whether a specified echo appears, and there will be no judgment deviation due to low sampling.
  • the sampling rate in order to prevent misjudgment, the sampling rate must be very high, so the requirements for sampling hardware are high and the subsequent correlation calculation hardware consumption is also greater; after adopting the scheme of the embodiment of the present application, the overhead of the hardware circuit can be greatly reduced.
  • the ultrasonic sensor chip 10 may further include: a storage module 81, the storage module 81 is electrically connected to the correlation calculation module 5, and the correlation calculation module 5 may calculate the correlation according to the reference signal stored in the storage module 81.
  • the storage module 81 stores information about the carrier and the modulation code, the modulation code is used to modulate and despread the received sampling signal, and the despread signal is then correlated with the carrier; then, the modulation and despreading module 8 is electrically connected to the storage module 81 for reading the modulation code, and modulating and despreading the sampling signal according to the modulation code, and the correlation calculation module 5 is also electrically connected to the storage module 81 for reading information related to the carrier (such as the carrier, or the carrier and sequence information orthogonal to the carrier) and performing correlation calculation.
  • the carrier such as the carrier, or the carrier and sequence information orthogonal to the carrier
  • the storage module 81 stores information related to the carrier and the modulation code, and the information is the modulated wave. Because the modulated wave is obtained by phase modulation of the carrier and the modulation code, the modulated wave is also a type of information related to the carrier and the modulation code; the modulated wave and the sampling signal are correlated, and then the correlation calculation module 5 is electrically connected to the storage module 9 for reading the information related to the modulated wave (such as the modulated wave, or the modulated wave and sequence information orthogonal to the modulated wave) and performing correlation calculation.
  • the modulated wave is obtained by phase modulation of the carrier and the modulation code
  • the modulated wave is also a type of information related to the carrier and the modulation code
  • the modulated wave and the sampling signal are correlated
  • the correlation calculation module 5 is electrically connected to the storage module 9 for reading the information related to the modulated wave (such as the modulated wave, or the modulated wave and sequence information orthogonal to the modulated wave) and performing correlation calculation.
  • the storage module 81 can be electrically connected to the carrier generation module 1 and the modulation code generation module 2 to store information corresponding to the carrier and the modulation code. In the implementation mode in which the modulation and despreading module 8 is not provided, the storage module 81 can be electrically connected to the phase modulation module 3 to store information corresponding to the modulated wave.
  • sampling module 4 can be an analog-to-digital converter (ADC), which samples the analog signal to generate a digital signal through the analog-to-digital conversion function of the analog-to-digital converter, that is, the analog signal of the second ultrasonic sensor is converted into a digital signal through the analog-to-digital converter for use by subsequent modules.
  • ADC analog-to-digital converter
  • the correlation calculation module 5 includes a convolution operation logic circuit.
  • the first ultrasonic transducer 201 and the second ultrasonic transducer 202 are the same sensor.
  • the embodiment of the present application further provides an ultrasonic signal processing method, which can be applied to the above-mentioned ultrasonic sensor chip.
  • the signal processing method includes:
  • Step 101 Generate a carrier wave
  • Step 102 Generate a modulation code
  • Step 103 modulate the carrier according to the modulation code to obtain a modulated wave, and output it to the first ultrasonic transducer;
  • Step 104 sampling the ultrasonic signal received by the second ultrasonic transducer to obtain a sampled signal
  • Step 105 Determine the correlation of the sampled signal according to the reference signal, where the correlation is related to the modulation code and the correlation is related to the carrier;
  • Step 106 Determine the sampling signal whose correlation reaches a preset value as a designated echo.
  • the method further includes: step 107 , modulating and despreading the sampling signal according to the modulation code; the reference signal is a carrier or a carrier orthogonal wave orthogonal to the carrier.
  • the reference signal is a modulated wave or a modulated orthogonal wave that is orthogonal to the modulated wave.
  • step 105 determining the correlation of the sampling signal based on the reference signal includes: step 1051, calculating the first correlation between the sampling signal and the timing corresponding to the reference signal; step 1052, calculating the second correlation between the sampling signal and the orthogonal timing corresponding to the reference signal; step 106, determining the sampling signal whose correlation reaches a preset value as the designated echo includes: determining the sampling signal whose sum of the first correlation and the second correlation reaches a preset value as the designated echo.
  • the method further includes: before step 107, modulating and demodulating the sampled signal according to the modulation code, executing step 108, converting the positive value of the sampled signal into a first fixed value, and converting the negative value of the sampled signal into a second fixed value; or, as shown in FIGS. 21 and 22 , before calculating the correlation, executing step 108, converting the positive value of the sampled signal into a first fixed value, and converting the negative value of the sampled signal into a second fixed value.
  • the method before step 105 , determining the correlation of the sampled signal according to the reference signal, the method further includes: step 108 , converting the positive value of the sampled signal into a first fixed value, and converting the negative value of the sampled signal into a second fixed value.
  • the modulation code includes a first code value and a second code value.
  • the first code value is used to flip the carrier phase by 180°
  • the second code value is used to keep the carrier phase unchanged.
  • a chip width of the modulation code is equal to a period of the carrier.
  • the sampling period is one quarter of a sine wave period of the carrier.
  • “at least one” refers to one or more, and “more than one” refers to two or more.
  • “And/or” describes the association relationship of associated objects, indicating that three relationships may exist.
  • a and/or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the previous and subsequent associated objects are in an "or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one of a, b and c can be represented by: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.

Abstract

An ultrasonic sensor chip (10) and an ultrasonic radar device (100), relating to the technical field of ultrasonic waves, and capable of reducing environmental interference on ultrasonic signal processing. The ultrasonic sensor chip (10) comprises: a driving circuit, a signal processing circuit and a storage module (81). The driving circuit comprises a carrier generation module (1), a modulation code generation module (2) and a phase modulation module (3). The signal processing circuit comprises a sampling module (4), a correlation calculation module (5) and a processing module (6). Output ends of the carrier generation module (1) and the modulation code generation module (2) are electrically connected to an input end of the phase modulation module (3). An output end of the sampling module (4) is electrically connected to an input end of the correlation calculation module (5). An input end of the storage module (81) is electrically connected to an output end of the driving circuit, an output end of the storage module (81) is electrically connected to the input end of the correlation calculation module (5), and a reference signal is stored in the storage module (81). An input end of the processing module (6) is electrically connected to an output end of the correlation calculation module (5).

Description

超声波传感器芯片、超声波信号处理方法和超声波雷达装置Ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device
本申请要求于2022年12月23日提交中国国家知识产权局、申请号为202211667704.5、申请名称为“超声波传感器芯片、超声波信号处理方法和超声波雷达装置”的中国专利申请,其全部内容通过引用结合在本申请中;以及要求于2022年12月23日提交中国国家知识产权局、申请号为202223469969.2、申请名称为“超声波传感器芯片和超声波雷达装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on December 23, 2022, with application number 202211667704.5 and application name “Ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device”, the entire contents of which are incorporated by reference into this application; and claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on December 23, 2022, with application number 2022223469969.2 and application name “Ultrasonic sensor chip and ultrasonic radar device”, the entire contents of which are incorporated by reference into this application.
技术领域Technical Field
本申请涉及超声波技术领域,特别涉及一种超声波传感器芯片、超声波信号处理方法和超声波雷达装置。The present application relates to the field of ultrasonic technology, and in particular to an ultrasonic sensor chip, an ultrasonic signal processing method and an ultrasonic radar device.
背景技术Background technique
目前超声波雷达装置,例如可以应用在车辆中,用于确定车辆与障碍物之间的距离。超声波雷达装置一方面发射超声波信号,另一方面接收超声波信号,其中,将接收到的信号划分为时间区段,时间区段基本上等于突发长度的一半。在超声波接收信号的每个时间区段,确定峰值,根据峰值信号来确定车辆与障碍物之间的距离。然而,环境中的杂波、噪声、其他超声波等都会对超声波系统造成干扰,使得现有的方案评估障碍物距离时效果不佳。At present, ultrasonic radar devices can be used in vehicles, for example, to determine the distance between the vehicle and obstacles. The ultrasonic radar device transmits ultrasonic signals on the one hand and receives ultrasonic signals on the other hand, wherein the received signal is divided into time segments, which are substantially equal to half the burst length. In each time segment of the ultrasonic received signal, a peak value is determined, and the distance between the vehicle and the obstacle is determined based on the peak signal. However, clutter, noise, other ultrasonic waves, etc. in the environment will interfere with the ultrasonic system, making the existing scheme ineffective in evaluating the distance to obstacles.
发明内容Summary of the invention
一种超声波传感器芯片、超声波信号处理方法和超声波雷达装置,能够降低环境对超声波信号处理的干扰。An ultrasonic sensor chip, an ultrasonic signal processing method and an ultrasonic radar device can reduce the interference of the environment on the ultrasonic signal processing.
第一方面,提供一种超声波传感器芯片,包括:包括驱动电路、信号处理电路和存储模块,驱动电路包括载波生成模块、调制码生成模块、相位调制模块,信号处理电路包括采样模块、相关度计算模块和处理模块;In a first aspect, an ultrasonic sensor chip is provided, comprising: a driving circuit, a signal processing circuit and a storage module, the driving circuit comprising a carrier generation module, a modulation code generation module, and a phase modulation module, the signal processing circuit comprising a sampling module, a correlation calculation module and a processing module;
载波生成模块和调制码生成模块的输入端用于耦合到微处理芯片以接收触发信号,载波生成模块和调制码生成模块的输出端与相位调制模块的输入端电连接;相位调制模块的输出端用于耦合到第一超声换能器;采样模块的输入端耦合到第二超声换能器,采样模块的输出端与相关度计算模块的输入端电连接;存储模块的输入端与驱动电路的输出端电连接,存储模块的输出端与相关度计算模块的输入端电连接,存储模块中存储有参考信号;处理模块的输入端与相关度计算模块的输出端电连接,处理模块的输出端用于耦合到微处理芯片以发送反馈信号;其中,The input ends of the carrier generation module and the modulation code generation module are used to couple to the microprocessor chip to receive the trigger signal, and the output ends of the carrier generation module and the modulation code generation module are electrically connected to the input end of the phase modulation module; the output end of the phase modulation module is used to couple to the first ultrasonic transducer; the input end of the sampling module is coupled to the second ultrasonic transducer, and the output end of the sampling module is electrically connected to the input end of the correlation calculation module; the input end of the storage module is electrically connected to the output end of the driving circuit, and the output end of the storage module is electrically connected to the input end of the correlation calculation module, and the reference signal is stored in the storage module; the input end of the processing module is electrically connected to the output end of the correlation calculation module, and the output end of the processing module is used to couple to the microprocessor chip to send a feedback signal; wherein,
载波生成模块,接收触发信号产生载波,并将载波输入至相位调制模块;The carrier generation module receives the trigger signal to generate a carrier and inputs the carrier into the phase modulation module;
调制码生成模块,接收触发信号产生调制码,并将调制码输入至相位调制模块;A modulation code generation module receives a trigger signal to generate a modulation code, and inputs the modulation code to a phase modulation module;
相位调制模块,接收调制码和载波信号并对载波进行相位调制得到调制波,并将调制波输出至第一超声换能器;A phase modulation module receives a modulation code and a carrier signal and performs phase modulation on the carrier to obtain a modulated wave, and outputs the modulated wave to the first ultrasonic transducer;
采样模块,用于对第二超声换能器接收到的超声波信号进行采样,并将采样信号输入至相关度计算模块;A sampling module, used for sampling the ultrasonic signal received by the second ultrasonic transducer, and inputting the sampled signal into the correlation calculation module;
相关度计算模块,读取存储模块中的参考信号以确定采样信号的相关度,并将相关度信息输入至处理模块,相关度与调制码相关,相关度与载波相关;A correlation calculation module reads the reference signal in the storage module to determine the correlation of the sampled signal, and inputs the correlation information to the processing module, wherein the correlation is related to the modulation code, and the correlation is related to the carrier;
处理模块,接收相关度信息并输出相关度达到预设值的反馈信号。The processing module receives the correlation information and outputs a feedback signal indicating that the correlation reaches a preset value.
第二方面,提供一种超声波传感器芯片,包括:载波生成模块,用于生成载波;调制码生成模块,用于生成调制码;相位调制模块,用于根据调制码对载波的相位进行调制,得到调制波,并将调制波输出至第一超声换能器;采样模块,用于对第二超声换能器接收到的超声波信号进行采样,得到采样信号;相关度计算模块,用于根据参考信号确定采样信号的相关度,相关度与调制码相关,相关度与载波相关;处理模块,用于将相关度达到预设值的采样信号确定为指定回波。 In a second aspect, an ultrasonic sensor chip is provided, including: a carrier generation module for generating a carrier; a modulation code generation module for generating a modulation code; a phase modulation module for modulating the phase of the carrier according to the modulation code to obtain a modulated wave, and outputting the modulated wave to a first ultrasonic transducer; a sampling module for sampling an ultrasonic signal received by a second ultrasonic transducer to obtain a sampled signal; a correlation calculation module for determining the correlation of the sampled signal according to a reference signal, the correlation being related to the modulation code, and the correlation being related to the carrier; and a processing module for determining the sampled signal whose correlation reaches a preset value as a designated echo.
第三方面,提供一种超声波雷达装置,包括:上述的超声波传感器芯片;In a third aspect, an ultrasonic radar device is provided, comprising: the ultrasonic sensor chip mentioned above;
第一超声换能器,第一超声换能器的输入端电连接于超声波传感器芯片的输出端,用于接收调制波并发射超声波信号;A first ultrasonic transducer, the input end of which is electrically connected to the output end of the ultrasonic sensor chip, for receiving a modulated wave and transmitting an ultrasonic signal;
第二超声换能器,第二超声换能器的输出端电连接于超声波传感器芯片的输入端,超声波传感器芯片用于采样第二超声换能器接收的超声波信号。The second ultrasonic transducer has an output end electrically connected to an input end of the ultrasonic sensor chip, and the ultrasonic sensor chip is used to sample the ultrasonic signal received by the second ultrasonic transducer.
第四方面,提供一种超声波信号处理方法,包括:生成载波;生成调制码;根据调制码对载波的相位进行调制,得到调制波,并输出至第一超声换能器;对第二超声换能器接收到的超声波信号进行采样,得到采样信号;根据参考信号确定采样信号的相关度,相关度与调制码相关,相关度与载波相关;将相关度达到预设值的采样信号确定为指定回波。In a fourth aspect, a method for processing ultrasonic signals is provided, comprising: generating a carrier wave; generating a modulation code; modulating the phase of the carrier wave according to the modulation code to obtain a modulated wave, and outputting the modulated wave to a first ultrasonic transducer; sampling the ultrasonic signal received by the second ultrasonic transducer to obtain a sampled signal; determining a correlation of the sampled signal according to a reference signal, wherein the correlation is correlated with the modulation code, and the correlation is correlated with the carrier wave; and determining the sampled signal whose correlation reaches a preset value as a designated echo.
第五方面,提供一种超声波雷达装置,包括:上述的超声波传感器芯片;第一超声换能器,电连接于超声波传感器芯片以接收调制波,并用于根据调制波发射超声波信号;第二超声换能器,电连接于超声波传感器芯片,以将接收到的超声波信号传输给超声波传感器芯片。In a fifth aspect, an ultrasonic radar device is provided, comprising: the above-mentioned ultrasonic sensor chip; a first ultrasonic transducer electrically connected to the ultrasonic sensor chip to receive a modulated wave, and used to transmit an ultrasonic signal according to the modulated wave; and a second ultrasonic transducer electrically connected to the ultrasonic sensor chip to transmit the received ultrasonic signal to the ultrasonic sensor chip.
本申请实施例中的超声波传感器芯片、超声波信号处理方法和超声波雷达装置,通过调制码对载波进行调制,生成用于激励超声波发射的调制波,通过相关度计算模块来对接收到的信号相关度计算,并根据计算结果来确定是否为指定回波,以此来降低环境中干扰、噪声等对超声波信号处理的不良影响,提高超声波信号处理的准确性。例如当超声波传感器应用于车辆的超声波雷达装置中,可以提高雷达定位的准确性。The ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device in the embodiments of the present application modulate the carrier wave through the modulation code to generate a modulated wave for exciting ultrasonic emission, calculate the correlation of the received signal through the correlation calculation module, and determine whether it is a designated echo based on the calculation result, thereby reducing the adverse effects of interference, noise, etc. in the environment on ultrasonic signal processing and improving the accuracy of ultrasonic signal processing. For example, when the ultrasonic sensor is applied to the ultrasonic radar device of a vehicle, the accuracy of radar positioning can be improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例中一种超声波雷达装置与障碍物的结构示意图;FIG1 is a schematic diagram of the structure of an ultrasonic radar device and an obstacle in an embodiment of the present application;
图2为本申请实施例中相位调制过程中的波形示意图;FIG2 is a schematic diagram of waveforms during phase modulation in an embodiment of the present application;
图3本申请实施例中相位调制的原理示意图;FIG3 is a schematic diagram of the principle of phase modulation in an embodiment of the present application;
图4为本申请实施例中载波进行相位调制前后的频谱变化示意图;FIG4 is a schematic diagram of spectrum changes before and after phase modulation of a carrier in an embodiment of the present application;
图5为图1中超声波雷达装置中部分结构的一种结构示意图;FIG5 is a schematic diagram of a structure of a part of the structure of the ultrasonic radar device in FIG1 ;
图6为本申请实施例中第二超声换能器接收的仅包括调制波的信号进行调制解扩前后的频谱变化示意图;6 is a schematic diagram of the spectrum change of a signal including only a modulated wave received by the second ultrasonic transducer in an embodiment of the present application before and after modulation and despreading;
图7为本申请实施例中第二超声换能器接收的包括调制波和干扰的信号进行调制解扩前后的频谱变化示意图;7 is a schematic diagram of the spectrum change of the signal including the modulated wave and the interference received by the second ultrasonic transducer in the embodiment of the present application before and after modulation and despreading;
图8为图1中超声波雷达装置中部分结构的另一种结构示意图;FIG8 is another schematic diagram of a partial structure of the ultrasonic radar device in FIG1 ;
图9为本申请实施例中载波和不同时刻接收到的采样信号的相关度关系示意图;FIG9 is a schematic diagram of the correlation between the carrier and the sampling signals received at different times in an embodiment of the present application;
图10为本申请实施例中一种波形采样示意图;FIG10 is a schematic diagram of a waveform sampling in an embodiment of the present application;
图11为图1中超声波雷达装置中部分结构的一种结构示意图;FIG11 is a schematic diagram of a structure of a part of the ultrasonic radar device in FIG1 ;
图12为图1中超声波雷达装置中部分结构的一种结构示意图;FIG12 is a schematic diagram of a structure of a part of the structure of the ultrasonic radar device in FIG1 ;
图13为本申请实施例中一种不同幅度波形采样示意图;FIG13 is a schematic diagram of waveform sampling with different amplitudes in an embodiment of the present application;
图14a为图1中超声波雷达装置中部分结构的一种结构示意图;FIG14a is a schematic diagram of a structure of a part of the ultrasonic radar device in FIG1 ;
图14b为图1中超声波雷达装置中部分结构的一种结构示意图;FIG14b is a schematic diagram of a structure of a part of the structure of the ultrasonic radar device in FIG1;
图15为图1中超声波雷达装置中部分结构的一种结构示意图;FIG15 is a schematic diagram of a structure of a part of the ultrasonic radar device in FIG1 ;
图16为本申请实施例中一种相关度和调制码的关系示意图;FIG16 is a schematic diagram of the relationship between a correlation and a modulation code in an embodiment of the present application;
图17为本申请实施例中一种信号处理方法的流程示意图;FIG17 is a flow chart of a signal processing method in an embodiment of the present application;
图18为本申请实施例中另一种信号处理方法的流程示意图;FIG18 is a flow chart of another signal processing method in an embodiment of the present application;
图19为本申请实施例中另一种信号处理方法的流程示意图;FIG19 is a flow chart of another signal processing method in an embodiment of the present application;
图20为本申请实施例中另一种信号处理方法的流程示意图;FIG20 is a flow chart of another signal processing method in an embodiment of the present application;
图21为本申请实施例中另一种信号处理方法的流程示意图;FIG21 is a flow chart of another signal processing method in an embodiment of the present application;
图22为本申请实施例中另一种信号处理方法的流程示意图。FIG. 22 is a flow chart of another signal processing method in an embodiment of the present application.
具体实施方式 Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
本申请实施例提供一种超声波传感器芯片和一种超声波雷达装置,该超声波传感器芯片可以应用于超声波雷达装置中,如图1所示,超声波雷达装置100包括该超声波传感器芯片10和超声换能器200,超声换能器200包括第一超声换能器201和第二超声换能器202,第一超声换能器201的输入端电连接于超声波传感器芯片10的输出端,用于接收调制波并发射超声波信号;第二超声换能器202的输出端电连接于超声波传感器芯片10的输入端,超声波传感器芯片10用于采样第二超声换能器202接收的超声波信号。第一超声换能器201和第二超声换能器202可以为两个独立的器件,也可以为集成在一起的器件;该超声波传感器芯片10包括:驱动电路、信号处理电路和存储模块81,其中驱动电路包括载波生成模块1、调制码生成模块2、相位调制模块3,信号处理电路包括采样模块4、相关度计算模块5和处理模块6。载波生成模块1和调制码生成模块2的输入端用于耦合到微处理芯片20以接收触发信号,载波生成模块1和调制码生成模块2的输出端与相位调制模块3的输入端电连接;相位调制模块3的输出端用于耦合到第一超声换能器201;采样模块4的输入端耦合到第二超声换能器202,采样模块4的输出端与相关度计算模块5的输入端电连接;存储模块81的输入端与驱动电路的输出端电连接,存储模块81的输出端与相关度计算模块5的输入端电连接,存储模块81中存储有参考信号;处理模块6的输入端与相关度计算模块5的输出端电连接,处理模块6的输出端用于耦合到微处理芯片20以发送反馈信号;其中,载波生成模块1,接收触发信号产生载波,并将载波输入至相位调制模块3;调制码生成模块2,接收触发信号产生调制码,并将调制码输入至相位调制模块3;相位调制模块3,接收调制码和载波信号并对载波进行相位调制得到调制波,并将调制波输出至第一超声换能器201;采样模块4,用于对第二超声换能器202接收到的超声波信号进行采样,并将采样信号输入至相关度计算模块5;相关度计算模块5,读取存储模块81中的参考信号以确定采样信号的相关度,并将相关度信息输入至处理模块6,相关度与调制码相关,相关度与载波相关;处理模块6,接收相关度信息并输出相关度达到预设值的反馈信号。超声波雷达装置100还可以包括微处理芯片20,微处理芯片20的输出端电连接于超声波传感器芯片10的输入端,微处理芯片20的输入端电连接于超声波传感器芯片10的输出端;超声波传感器芯片10接收微处理芯片20的触发信号而产生调制波,超声波传感器芯片10还用于向微处理芯片20发送接收到指定回波的反馈信号。The embodiment of the present application provides an ultrasonic sensor chip and an ultrasonic radar device. The ultrasonic sensor chip can be applied to the ultrasonic radar device. As shown in FIG1 , the ultrasonic radar device 100 includes the ultrasonic sensor chip 10 and an ultrasonic transducer 200. The ultrasonic transducer 200 includes a first ultrasonic transducer 201 and a second ultrasonic transducer 202. The input end of the first ultrasonic transducer 201 is electrically connected to the output end of the ultrasonic sensor chip 10, and is used to receive a modulated wave and transmit an ultrasonic signal. The output end of the second ultrasonic transducer 202 is electrically connected to the input end of the ultrasonic sensor chip 10. The ultrasonic sensor chip 10 is used to sample the ultrasonic signal received by the second ultrasonic transducer 202. The first ultrasonic transducer 201 and the second ultrasonic transducer 202 can be two independent devices or integrated devices. The ultrasonic sensor chip 10 includes: a driving circuit, a signal processing circuit and a storage module 81, wherein the driving circuit includes a carrier generation module 1, a modulation code generation module 2, and a phase modulation module 3, and the signal processing circuit includes a sampling module 4, a correlation calculation module 5 and a processing module 6. The input ends of the carrier generation module 1 and the modulation code generation module 2 are used to couple to the microprocessor chip 20 to receive the trigger signal, and the output ends of the carrier generation module 1 and the modulation code generation module 2 are electrically connected to the input end of the phase modulation module 3; the output end of the phase modulation module 3 is used to couple to the first ultrasonic transducer 201; the input end of the sampling module 4 is coupled to the second ultrasonic transducer 202, and the output end of the sampling module 4 is electrically connected to the input end of the correlation calculation module 5; the input end of the storage module 81 is electrically connected to the output end of the driving circuit, and the output end of the storage module 81 is electrically connected to the input end of the correlation calculation module 5, and the storage module 81 stores a reference signal; the input end of the processing module 6 is electrically connected to the output end of the correlation calculation module 5, and the output end of the processing module 6 is used to couple to the microprocessor chip 20 to send a feedback signal; wherein, The carrier generation module 1 receives a trigger signal to generate a carrier, and inputs the carrier into the phase modulation module 3; the modulation code generation module 2 receives a trigger signal to generate a modulation code, and inputs the modulation code into the phase modulation module 3; the phase modulation module 3 receives the modulation code and the carrier signal and performs phase modulation on the carrier to obtain a modulated wave, and outputs the modulated wave to the first ultrasonic transducer 201; the sampling module 4 is used to sample the ultrasonic signal received by the second ultrasonic transducer 202, and input the sampled signal into the correlation calculation module 5; the correlation calculation module 5 reads the reference signal in the storage module 81 to determine the correlation of the sampled signal, and inputs the correlation information into the processing module 6, the correlation is related to the modulation code, and the correlation is related to the carrier; the processing module 6 receives the correlation information and outputs a feedback signal that the correlation reaches a preset value. The ultrasonic radar device 100 may further include a microprocessor chip 20, the output end of the microprocessor chip 20 is electrically connected to the input end of the ultrasonic sensor chip 10, and the input end of the microprocessor chip 20 is electrically connected to the output end of the ultrasonic sensor chip 10; the ultrasonic sensor chip 10 receives a trigger signal from the microprocessor chip 20 to generate a modulated wave, and the ultrasonic sensor chip 10 is also used to send a feedback signal to the microprocessor chip 20 when a specified echo is received.
具体地,超声波传感器芯片10的至少一个引脚与超声换能器200电连接,超声波传感器芯片10的至少一个引脚通过控制器域网(Controller Area Network,CAN)、区域互联网络(Local Interconnect Network,LIN)、点对点(Point-to-Point,pt-to-pt)等方式与微处理芯片20电连接。在需要进行超声波探测时,微处理芯片20输出触发信号至超声波传感器芯片10,超声波传感器芯片10响应于来自于微处理芯片20的触发信号,驱动载波生成模块1生成载波(例如正弦波),另外,调制码生成模块2生成调制码作为调制信号。相位调制模块3根据调制码对载波的相位进行调制,得到调制波,即根据调制码对载波的相位进行调整,调整后的信号为调制波,调制波即为超声波激励信号。相位调制模块3将调制波输出至第一超声换能器201,第一超声换能器201在调制波的激励控制下振动产生对应的超声波,超声波遇到障碍物会反射。第二超声换能器202接收超声波信号,采样模块4对第二超声换能器202接收到的超声波信号进行采样,得到采样信号,例如采样模块4为模数转换器(Analog-to-Digital Converter,ADC),将模拟信号转换为数字信号。由于环境中有干扰、噪声,还有可能存在其他超声换能器产生的超声波,因此,第二超声换能器202接收到的波不一定是第一超声换能器201发射的超声波。在本申请实施例中,第一超声换能器201发射的超声波是基于调制码调制的调制波驱动产生的,该超声波不但具有载波本身的信号特征,还同时具有调制码的信号特征。因此,对于第二超声换能器202接收到的超声波信号,在采样为采样信号后,在相关度计算模块5中,根据参考信号和采样信号来确定相关度,如果在处理模块6中判断相关度达到预设值,则说明该信号同时具有载波和调制码的特征,即说明该信号是来自于第一超声换能器201,而不是干扰、噪声信号,因此将该信号作为指定回波,指定回波即是指第一超声换能器201发射的超声波的回波信号,以便于后续根据指定回波来确定与障碍物之间的距离。如果在处理模块6中判断相关度未达到预设值,则说明该信号为干扰、噪声信号,因此不会作为指定回波,在后续确定与障碍物之间距离的过程中,即降低了干扰、噪声,提高了超声波定位的准确性。Specifically, at least one pin of the ultrasonic sensor chip 10 is electrically connected to the ultrasonic transducer 200, and at least one pin of the ultrasonic sensor chip 10 is electrically connected to the microprocessor chip 20 through a controller area network (CAN), a local interconnect network (LIN), a point-to-point (pt-to-pt), etc. When ultrasonic detection is required, the microprocessor chip 20 outputs a trigger signal to the ultrasonic sensor chip 10, and the ultrasonic sensor chip 10 responds to the trigger signal from the microprocessor chip 20 to drive the carrier generation module 1 to generate a carrier (for example, a sine wave). In addition, the modulation code generation module 2 generates a modulation code as a modulation signal. The phase modulation module 3 modulates the phase of the carrier according to the modulation code to obtain a modulation wave, that is, the phase of the carrier is adjusted according to the modulation code, and the adjusted signal is the modulation wave, which is the ultrasonic excitation signal. The phase modulation module 3 outputs the modulation wave to the first ultrasonic transducer 201, and the first ultrasonic transducer 201 vibrates under the excitation control of the modulation wave to generate a corresponding ultrasonic wave, and the ultrasonic wave will be reflected when encountering an obstacle. The second ultrasonic transducer 202 receives an ultrasonic signal, and the sampling module 4 samples the ultrasonic signal received by the second ultrasonic transducer 202 to obtain a sampled signal. For example, the sampling module 4 is an analog-to-digital converter (ADC) that converts an analog signal into a digital signal. Due to interference and noise in the environment, there may also be ultrasonic waves generated by other ultrasonic transducers. Therefore, the wave received by the second ultrasonic transducer 202 is not necessarily the ultrasonic wave emitted by the first ultrasonic transducer 201. In the embodiment of the present application, the ultrasonic wave emitted by the first ultrasonic transducer 201 is driven by a modulation wave modulated by a modulation code, and the ultrasonic wave not only has the signal characteristics of the carrier itself, but also has the signal characteristics of the modulation code. Therefore, for the ultrasonic signal received by the second ultrasonic transducer 202, after being sampled as a sampled signal, in the correlation calculation module 5, the correlation is determined according to the reference signal and the sampled signal. If it is determined in the processing module 6 that the correlation reaches the preset value, it means that the signal has the characteristics of both the carrier and the modulation code, that is, it means that the signal comes from the first ultrasonic transducer 201, rather than an interference or noise signal, so the signal is used as a designated echo, and the designated echo refers to the echo signal of the ultrasonic wave emitted by the first ultrasonic transducer 201, so as to facilitate the subsequent determination of the distance to the obstacle according to the designated echo. If it is determined in the processing module 6 that the correlation does not reach the preset value, it means that the signal is an interference or noise signal, so it will not be used as a designated echo. In the subsequent process of determining the distance to the obstacle, interference and noise are reduced, and the accuracy of ultrasonic positioning is improved.
微处理芯片在汽车中通常称作电子控制单元(Electronic Control Unit,ECU)、域控制器,例如可以是微控制单元(Microcontroller Unit,MCU)、数字信号处理(Digital Signal Processing,DSP)、微处理 器(Microprocessor Unit,MPU)、微型中央处理器(central processing unit,CPU)等能够处理数字信号、模拟信号,或者起到信号控制功能、指令处理和运算等功能的微型中央控制芯片、片上系统芯片。Microprocessor chips in automobiles are usually called electronic control units (ECUs), domain controllers, and can be, for example, microcontroller units (MCUs), digital signal processing (DSPs), microprocessors, etc. Microprocessor Unit (MPU), micro central processing unit (CPU), etc. can process digital signals, analog signals, or perform signal control functions, instruction processing and calculation functions, and other micro central control chips and system-on-chip chips.
本申请实施例中的超声波传感器芯片,通过调制码对载波进行调制,生成用于激励超声波发射的调制波,通过相关度计算模块来对接收到的信号相关度计算,并根据计算结果来确定是否为指定回波,以此来降低环境中干扰、噪声等对超声波信号处理的不良影响,提高超声波信号处理的准确性。例如当超声波传感器芯片应用于车辆的超声波雷达装置中,可以提高雷达定位的准确性。The ultrasonic sensor chip in the embodiment of the present application modulates the carrier wave through the modulation code to generate a modulated wave for exciting ultrasonic emission, calculates the correlation of the received signal through the correlation calculation module, and determines whether it is a designated echo based on the calculation result, thereby reducing the adverse effects of interference and noise in the environment on ultrasonic signal processing and improving the accuracy of ultrasonic signal processing. For example, when the ultrasonic sensor chip is used in an ultrasonic radar device of a vehicle, the accuracy of radar positioning can be improved.
在一种可能的实施方式中,超声波传感器芯片10还包括第一计时器,第一计时器可以电连接于处理模块6,第一计时器用于当第一超声换能器201发射超声波信号后开始计时,或者当接收到微处理芯片20发送的触发信号后开始计时,并当确定接收到指定回波时停止计时;超声波传感器芯片10还用于,根据第一计时器的计时时长和指定回波计算障碍物距离,并将障碍物距离传输至微处理芯片20。超声波传感器芯片10中的处理模块6可以根据时间与超声波传输速度的关系计算出障碍物的距离;获得距离信息后处理模块6向微处理芯片20输出数据,微处理芯片20用于根据接收到的数据做出判断并触发提示,例如触发蜂鸣器发出提示音、灯光提示、显示屏提示、语音提示等。In a possible implementation, the ultrasonic sensor chip 10 further includes a first timer, which can be electrically connected to the processing module 6. The first timer is used to start timing after the first ultrasonic transducer 201 emits an ultrasonic signal, or starts timing after receiving a trigger signal sent by the microprocessor chip 20, and stops timing when it is determined that a specified echo is received; the ultrasonic sensor chip 10 is also used to calculate the obstacle distance according to the timing duration of the first timer and the specified echo, and transmit the obstacle distance to the microprocessor chip 20. The processing module 6 in the ultrasonic sensor chip 10 can calculate the distance of the obstacle according to the relationship between time and ultrasonic transmission speed; after obtaining the distance information, the processing module 6 outputs data to the microprocessor chip 20, and the microprocessor chip 20 is used to make judgments and trigger prompts based on the received data, such as triggering a buzzer to emit a prompt sound, a light prompt, a display prompt, a voice prompt, etc.
在一种可能的实施方式中,微处理芯片20可以包括第一计时器,微处理芯片20获得第一计时器的计时时长和接收到的反馈信号获得障碍物距离。也就是说,第一计时器也可能设置于微处理芯片20中,在微处理芯片20发出触发信号后计时器开始计时,该触发信号用于触发超声波传感器芯片10产生调制波,从而使得第一超声换能器201发射超声波信号,在确定接收到指定回波时停止计,并根据时间与超声波传输速度的关系能够计算出障碍物的距离;获得距离信息后做出对应动作,如触发蜂鸣器发出提示音或触发警报灯等。In a possible implementation, the microprocessor chip 20 may include a first timer, and the microprocessor chip 20 obtains the timing duration of the first timer and the received feedback signal to obtain the obstacle distance. That is, the first timer may also be set in the microprocessor chip 20, and the timer starts timing after the microprocessor chip 20 sends a trigger signal, and the trigger signal is used to trigger the ultrasonic sensor chip 10 to generate a modulated wave, so that the first ultrasonic transducer 201 emits an ultrasonic signal, stops timing when it is determined that a specified echo is received, and can calculate the distance of the obstacle based on the relationship between time and ultrasonic transmission speed; after obtaining the distance information, a corresponding action is taken, such as triggering a buzzer to emit a prompt sound or triggering an alarm light, etc.
也就是说,在超声波雷达装置中,可以通过超声波传感器芯片10和微处理芯片20中的任意一者来计算障碍物距离。例如,超声波传感器芯片10在确定指定回波之后,会向微处理芯片20发送接收到指定回波的反馈信号,如I/O引脚时钟为高或低,当确定指定回波后,超声波传感器芯片10将I/O引脚拉高或拉低,微处理芯片20根据这个信号计算发出触发信号到接收到该指示信号的时间,计算障碍物的距离,之后控制对应的提示系统做出动作;如果是超声波传感器芯片10做距离计算,可以在计算完成之后,通过I/O引脚发出指示不同距离的数据,微处理芯片20接收到这个数据并解析,根据解析的结果控制对应的提示系统做出动作。That is to say, in the ultrasonic radar device, the obstacle distance can be calculated by any one of the ultrasonic sensor chip 10 and the microprocessor chip 20. For example, after determining the designated echo, the ultrasonic sensor chip 10 will send a feedback signal of receiving the designated echo to the microprocessor chip 20, such as the I/O pin clock is high or low. After determining the designated echo, the ultrasonic sensor chip 10 will pull the I/O pin high or low, and the microprocessor chip 20 will calculate the time from sending the trigger signal to receiving the indication signal based on this signal, calculate the distance of the obstacle, and then control the corresponding prompt system to take action; if the ultrasonic sensor chip 10 performs the distance calculation, it can send data indicating different distances through the I/O pin after the calculation is completed, and the microprocessor chip 20 will receive this data and analyze it, and control the corresponding prompt system to take action according to the result of the analysis.
在一种可能的实施方式中,超声波雷达装置包括多个超声波传感器芯片10、多个第一超声波换能器201和多个第二超声波换能器202。In a possible implementation, the ultrasonic radar device includes a plurality of ultrasonic sensor chips 10 , a plurality of first ultrasonic transducers 201 , and a plurality of second ultrasonic transducers 202 .
在一种可能的实施方式中,如图2和图3所示,调制码包括第一码值和第二码值,例如第一码值为0,第二码值为1,在调制过程中,第一码值用于使载波相位翻转180°,第二码值用于保持载波相位不变。如果用电路中所流转的信号来说明,调制码生成电路1输入到相位调制模块3的信号包括第一信号和第二信号,相位调制模块3接收到第一信号输出对应的载波信息,相位调制模块3接收到第二信号输出与对应的载波相差180°的信息。In a possible implementation, as shown in FIG. 2 and FIG. 3, the modulation code includes a first code value and a second code value, for example, the first code value is 0, and the second code value is 1. During the modulation process, the first code value is used to flip the carrier phase by 180°, and the second code value is used to keep the carrier phase unchanged. If the signal flowing in the circuit is used to illustrate, the signal input to the phase modulation module 3 by the modulation code generation circuit 1 includes a first signal and a second signal. The phase modulation module 3 receives the first signal and outputs the corresponding carrier information. The phase modulation module 3 receives the second signal and outputs the information that is 180° different from the corresponding carrier.
具体地,调制码包括多个调制码片,每个调制码片的宽度为d,一个载波周期对应一个调制码片宽度。例如,图2中载波为具有9个正弦波周期的波A;调制码为111001100,即具有9个调制码片的波B。在根据调制码对载波进行调制,得到调制波的过程中,波A遇到为0的调制码片时正弦波相位发生180°的翻转,遇到为1的调制码片时正弦波相位不变,调制后得到的调制波为波C。即波C=波A*波B,即波A(111111111)*波B(111001100)=波C(111001100),这里的“*”是上述表达的意思,即载波遇到调制码片为1时保持不变,遇到调制码片为0时相位发生翻转,假设波A初始相位时序列码为1,相位翻转后的序列码为0,即经过调制码调制后的波C序列码为111001100。经过上述相位调制后,虽然没有改变载波的驱动频率,但是经过相位调制后的载波却产生了扩频的效果。如图4所示,在相位调制前,载波只有一个频率,调制后产生了多个频率,相当于频率被打散了,这里需要知道的是,本方案没有对载波的频率进行调节,只是调整了载波的相位,但是产生了调频的效果,其相对于调频具有显著的进步,具体见下文描述。Specifically, the modulation code includes multiple modulation chips, each of which has a width of d, and one carrier cycle corresponds to one modulation chip width. For example, in Figure 2, the carrier is wave A with 9 sinusoidal wave cycles; the modulation code is 111001100, that is, wave B with 9 modulation chips. In the process of modulating the carrier according to the modulation code to obtain the modulated wave, when wave A encounters a modulation chip of 0, the sinusoidal wave phase flips 180°, and when encountering a modulation chip of 1, the sinusoidal wave phase remains unchanged, and the modulated wave obtained after modulation is wave C. That is, wave C = wave A * wave B, that is, wave A (111111111) * wave B (111001100) = wave C (111001100), where "*" means the above expression, that is, the carrier remains unchanged when the modulation code is 1, and the phase is reversed when the modulation code is 0. Assuming that the sequence code of wave A is 1 at the initial phase, the sequence code after the phase reversal is 0, that is, the sequence code of wave C after modulation by the modulation code is 111001100. After the above phase modulation, although the driving frequency of the carrier is not changed, the carrier after phase modulation produces a spread spectrum effect. As shown in Figure 4, before phase modulation, the carrier has only one frequency, and after modulation, multiple frequencies are generated, which is equivalent to the frequency being scattered. What needs to be known here is that this scheme does not adjust the frequency of the carrier, but only adjusts the phase of the carrier, but produces the effect of frequency modulation, which is a significant improvement over frequency modulation. See the following description for details.
此外,码片的宽度不一定是对应一个载波周期,也可以是一个码片对应多个载波周期,原理同上面的一个码片宽度等于一个载波周期相同,此处不再赘述。其他关于码片宽度的描述见下文描述。In addition, the width of a chip does not necessarily correspond to one carrier cycle, and one chip may correspond to multiple carrier cycles. The principle is the same as the above one chip width equals one carrier cycle, which will not be repeated here. For other descriptions of the chip width, see the following description.
在一种可能的实施方式中,如图5所示,超声波传感器芯片10还包括:设置于采样模块4和相关 度计算模块5之间的调制解扩模块8,调制解扩模块8的输入端耦合至采样模块4的输出端,调制解扩模块8的输出端耦合至相关度计算模块5的输入端;存储模块还存储有调制码,调制解扩模块8的输入端还与存储模块81的输出端电连接以读取调制码;参考信号为载波或与载波正交的载波正交波。In a possible implementation, as shown in FIG5 , the ultrasonic sensor chip 10 further includes: a sampling module 4 and a related A modulation and despreading module 8 is connected between the correlation calculation module 5, the input end of the modulation and despreading module 8 is coupled to the output end of the sampling module 4, and the output end of the modulation and despreading module 8 is coupled to the input end of the correlation calculation module 5; the storage module also stores the modulation code, and the input end of the modulation and despreading module 8 is also electrically connected to the output end of the storage module 81 to read the modulation code; the reference signal is a carrier or a carrier orthogonal wave orthogonal to the carrier.
具体地,采样模块4对第二超声换能器202接收到的超声波信号进行采样后得到的调制波为波D,调制解扩模块8根据波B对波D进行调制解扩,得到的解扩后的采样信号为波E。调制解扩的过程与调制的过程相同,即波E=波D*波B。如图6所示,若第二超声换能器202接收的信号仅仅包含调制波,波D相当于波C,那么波E=波C*波B,而波C序列码为111001100,波B为111001100,则波E=波C*波B=111111111。相关度计算的公式为相关度值f=∑M*N=M1*N1+M2*N2+…+Mn*Nn(卷积运算),M=(M1,M2,…,Mn),N=(N1,N2,…,Nn)。解扩后的采样信号(波E)和载波(波A)对应的时序之间的相关度f=∑波E*波A,由于波E等于波A,两个相同的波做相关度运算时,相关度值很高(如示例中为9)。Specifically, the sampling module 4 samples the ultrasonic signal received by the second ultrasonic transducer 202, and the modulated wave obtained is wave D. The modulation and despreading module 8 modulates and despreads wave D according to wave B, and the despread sampled signal obtained is wave E. The modulation and despreading process is the same as the modulation process, that is, wave E = wave D * wave B. As shown in FIG6, if the signal received by the second ultrasonic transducer 202 only contains the modulated wave, wave D is equivalent to wave C, then wave E = wave C * wave B, and the sequence code of wave C is 111001100, and wave B is 111001100, then wave E = wave C * wave B = 111111111. The formula for correlation calculation is correlation value f = ∑M*N = M1*N1+M2*N2+…+Mn*Nn (convolution operation), M = (M1, M2,…, Mn), N = (N1, N2,…, Nn). The correlation between the demodulated sampling signal (wave E) and the timing corresponding to the carrier (wave A) is f=∑wave E*wave A. Since wave E is equal to wave A, when correlation operation is performed on two identical waves, the correlation value is very high (such as 9 in the example).
如图7所示,若第二超声换能器202接收的信号包含指定回波本身(即扩频的调制波)、环境中的干扰信号、信道噪声或其他设备发出的扩频信号等,环境中的干扰信号、信道噪声或其他设备发出的扩频信号等称为非指定回波,非指定回波存在两种情况,一种是扩频信号,即信号中包含多种频率的信号,另外一种是某一个频率特别高的信号,即单一频率信号。这里以接收到的干扰信号为单一频率、其他信号为扩频信号为例进行说明。As shown in FIG7 , if the signal received by the second ultrasonic transducer 202 includes the designated echo itself (i.e., the modulated wave of the spread spectrum), the interference signal in the environment, the channel noise, or the spread spectrum signal emitted by other devices, etc., the interference signal in the environment, the channel noise, or the spread spectrum signal emitted by other devices, etc. are called undesignated echoes. There are two types of undesignated echoes, one is a spread spectrum signal, i.e., a signal containing multiple frequencies, and the other is a signal with a particularly high frequency, i.e., a single frequency signal. Here, the received interference signal is a single frequency and the other signal is a spread spectrum signal as an example for explanation.
为更好理解,这里举例说明:For better understanding, here is an example:
例如,干扰信号的单频序列,记为波D1,波D1=111111111111111111(为载波的2倍频),那么该干扰信号经过调制解扩后的信号为波E1,波E1=波D1*波B,波E1与波A做相关度运算,相关度值很低或较低(如示例中小于等于6);即使随着波D1的滑动,通过与调制码波B进行滑动解扩,得到的波E1与波A做相关度运算的相关度仍然很低。滑动解扩大致原理如下:D1前9位与波B做调制解扩后得E1=111001100,D1第2-第10位与波B做调制解扩后得E1=111001100,D1第3-第11位与波B做调制解扩后得E1=111001100,依次类推,一直到D1移动完毕。上述波E1逐个与波A做相关度运算查看任意滑动过程中波E1与波A的相关度。在波E1与波A不同时,在整个滑动过程中,相关度始终处于较低的水平。For example, the single frequency sequence of the interference signal is recorded as wave D1, wave D1 = 111111111111111111 (twice the frequency of the carrier), then the signal of the interference signal after modulation and despreading is wave E1, wave E1 = wave D1 * wave B, wave E1 and wave A are correlated, and the correlation value is very low or relatively low (such as less than or equal to 6 in the example); even with the sliding of wave D1, by sliding despreading with the modulation code wave B, the correlation between the obtained wave E1 and wave A is still very low. The sliding despreading principle is as follows: the first 9 bits of D1 are modulated and despread with wave B to obtain E1 = 111001100, the 2nd to 10th bits of D1 are modulated and despread with wave B to obtain E1 = 111001100, the 3rd to 11th bits of D1 are modulated and despread with wave B to obtain E1 = 111001100, and so on, until D1 is completely moved. The above wave E1 is correlated with wave A one by one to check the correlation between wave E1 and wave A during any sliding process. When wave E1 is different from wave A, the correlation is always at a low level during the entire sliding process.
又例如,干扰信号为单频序列,记为波D2,波D2=111111111(与载波频率一样),那么波E2=波D2*波B=111001100,波E2与波A做相关度运算,相关度值很低(如示例中最高为5),由此可知,即使收到的回波信号与载波一致,但是不符合调制码的调制规则,最后获得的相关度仍然很低,不是指定回波;For another example, the interference signal is a single-frequency sequence, recorded as wave D2, wave D2 = 111111111 (the same as the carrier frequency), then wave E2 = wave D2 * wave B = 111001100, wave E2 and wave A are correlated, and the correlation value is very low (such as the highest in the example is 5). It can be seen that even if the received echo signal is consistent with the carrier, but does not conform to the modulation rule of the modulation code, the final correlation obtained is still very low, and it is not a designated echo;
又例如,其他干扰信号为扩频序列,记为D3,示例,波D3=111000110,那么波E3=波D3*波B=111110110,波E3与波A做相关度运算,相关度值较低(如示例中最高为6),由此可知,即使收到的回波信号与也是一种包含有多种频率的信号,但是不符合调制码的调制规则,最后获得的相关度仍然很低,不是指定回波。需要说明的是,所有的回波都会进行滑动解扩,对应波的前后信号有信号,则会选取对应波的信号与波B进行调制解扩,如一个信号按照时间顺序包含有D1、D2、D3的波,则将D1的前9位与波B进行调制解扩,调制解扩的信号输出到下一个节点;继续将D1的第2位-第10位与波B进行调制解扩…,当D1的第10位-第18位与波B进行调制解扩结束后,将D1第11位-18位以及D2第1位与波B进行调制解扩,将D2第12位-18位以及D2第1-2位与波B进行调制解扩…当D2第1-9位与波B进行调制解扩结束后,将D2第2位-9位以及D3第1位与波B进行调制解扩,将D2第3位-9位以及D3第1-2位与波B进行调制解扩…当D3第1-9位与波B进行调制解扩结束后,如果后面没有任何信号,那么D3与波B做调制解扩的数据越来越少,D3的第2-9位与波B进行调制解扩,D3的第3-9位与波B进行调制解扩…直到D3的位数与波B没有任何交叠无法做调制解扩。For another example, the other interference signal is a spread spectrum sequence, denoted as D3. For example, wave D3=111000110, then wave E3=wave D3*wave B=111110110, and the correlation calculation between wave E3 and wave A is low (the highest is 6 in the example). It can be seen that even if the received echo signal is also a signal containing multiple frequencies, it does not conform to the modulation rules of the modulation code, and the finally obtained correlation is still very low, and it is not a designated echo. It should be noted that all echoes will be slidingly demodulated. If there are signals before and after the corresponding wave, the signal of the corresponding wave will be selected for modulation and demodulation with wave B. For example, if a signal contains waves D1, D2, and D3 in chronological order, the first 9 bits of D1 will be modulated and demodulated with wave B, and the modulated and demodulated signal will be output to the next node; the 2nd to 10th bits of D1 will continue to be modulated and demodulated with wave B... When the modulation and demodulation of the 10th to 18th bits of D1 with wave B is completed, the 11th to 18th bits of D1 and the 1st bit of D2 will be modulated and demodulated with wave B, and the 12th to 18th bits of D2 and The 1st to 2nd bits of D2 are modulated and demodulated with wave B... After the modulation and demodulation of the 1st to 9th bits of D2 with wave B is completed, the 2nd to 9th bits of D2 and the 1st bit of D3 are modulated and demodulated with wave B, and the 3rd to 9th bits of D2 and the 1st to 2nd bits of D3 are modulated and demodulated with wave B... After the modulation and demodulation of the 1st to 9th bits of D3 with wave B is completed, if there is no signal behind it, then the data modulated and demodulated with wave B by D3 becomes less and less, and the 2nd to 9th bits of D3 are modulated and demodulated with wave B, and the 3rd to 9th bits of D3 are modulated and demodulated with wave B... until the number of bits of D3 has no overlap with wave B and cannot be modulated and demodulated.
由此可以知道,如果第二超声换能器202接收到的超声波信号包含调制波,那么解扩后会得到一个频率与载波一致的波;如果第二超声换能器202接收到的超声波信号包含其他非指定回波,那么经过解扩过程,无论是单频信号还是扩频信号均会再次扩频(即打散),从而不会得到频率与载波一致的波。如图7所示,因此,本申请实施例可以实现对信号是否为干扰信号的判断,准确性和精度、识别效果表现优秀。It can be known that if the ultrasonic signal received by the second ultrasonic transducer 202 contains a modulated wave, then after despreading, a wave with a frequency consistent with the carrier wave will be obtained; if the ultrasonic signal received by the second ultrasonic transducer 202 contains other non-specified echoes, then after the despreading process, both the single-frequency signal and the spread spectrum signal will be spread again (i.e., scattered), so that a wave with a frequency consistent with the carrier wave will not be obtained. As shown in Figure 7, therefore, the embodiment of the present application can realize the judgment of whether the signal is an interference signal, and the accuracy, precision, and recognition effect are excellent.
在一种可能的实施方式中,如图8所示,参考信号为调制波或与调制波正交的调制正交波,例如, 相关度计算模块5的输入端电连接于采样模块4的输出端。In a possible implementation, as shown in FIG8 , the reference signal is a modulated wave or a modulated orthogonal wave orthogonal to the modulated wave, for example, An input end of the correlation calculation module 5 is electrically connected to an output end of the sampling module 4 .
具体地,在图8所示的结构中,可以直接计算采样信号和调制波之间的相关度,以此来判断第二超声换能器202接收到的信号是否为第一超声换能器201所发射的信号。例如,波C=111001100,由于波C=波A*波B,则波D与波C的相关度运算相当于计算波A*波B与波D的相关度,即计算波A*波B*波D=波A*(波B*波D),做波D与波C的相关度运算,相当于包含了上述方案中的解扩过程,具体过程如上,不再赘述。这里只说相关度运算。Specifically, in the structure shown in FIG8 , the correlation between the sampled signal and the modulated wave can be directly calculated to determine whether the signal received by the second ultrasonic transducer 202 is the signal emitted by the first ultrasonic transducer 201. For example, wave C = 111001100, since wave C = wave A*wave B, the correlation operation between wave D and wave C is equivalent to calculating the correlation between wave A*wave B and wave D, that is, calculating wave A*wave B*wave D = wave A*(wave B*wave D), and performing the correlation operation between wave D and wave C is equivalent to including the despreading process in the above scheme. The specific process is as above and will not be repeated. Only the correlation operation is discussed here.
由上可知,相关度值f=波A*(波B*波D)=111111111*(111001100*波D)。From the above, we can see that the correlation value f=wave A*(wave B*wave D)=1111111111*(111001100*wave D).
例如波D1=111111111111111111,波B*波D=111001100,则相关度值f1=111111111*111001100,相关度值很低(如示例中最高为5);For example, if wave D1 = 111111111111111111, and wave B*wave D = 111001100, then the correlation value f1 = 111111111*111001100, and the correlation value is very low (the highest in the example is 5);
例如波D2=111111111,波B*波D=111001100,相关度值f2=111111111*111001100,相关度值很低(如示例中最高为5);For example, wave D2 = 111111111, wave B*wave D = 111001100, and correlation value f2 = 111111111*111001100. The correlation value is very low (the highest in the example is 5).
例如波D3=111000110,波B*波D=111110101,相关度值f3=111111111*111110101,相关度值较低(如示例中最高为7);For example, wave D3 = 111000110, wave B*wave D = 111110101, and correlation value f3 = 111111111*111110101, and the correlation value is relatively low (the highest in the example is 7);
例如波D4=111001100,波B*波D=111111111,相关度值f4=111111111*111111111,相关度值最高(如示例中为9)。For example, wave D4=111001100, wave B*wave D=1111111111, correlation value f4=1111111111*111111111, and the correlation value is the highest (9 in the example).
因此,图8所示结构对应的实施例同样可以实现对信号是否为干扰信号的判断。直接使用调制波与采样信号进行相关度运算,能够减少对采样芯片的调制解扩过程,从而能够更加介于硬件电路、电路之间的连接关系也更加简洁。在上述本专利中,相关度计算模块包括卷积运算逻辑电路以对相关度进行计算。Therefore, the embodiment corresponding to the structure shown in FIG8 can also realize the judgment of whether the signal is an interference signal. Directly using the modulated wave and the sampling signal for correlation calculation can reduce the modulation and despreading process of the sampling chip, so that the connection relationship between the hardware circuit and the circuit can be more concise. In the above patent, the correlation calculation module includes a convolution operation logic circuit to calculate the correlation.
在一种可能的实施方式中,超声波传感器芯片10中还可以设置第二计时器,该第二计时器与相关度的预设值有关,随着时间的增加,超声波回波信号越弱,那么相关度的预设值也随着时间的增加而降低,即预设值包括多个不同的数值。也可以不设置第二计时器,相关度的预设值与时间有关,而该预设值直接存储在存储器中,存储器中设置有多个不同的数值,该数值用于标志预设值,随着时钟的推移,读取存储器中不同地址的预设值,该预设值即与时间有关,一般而言,随着时钟的推移,预设值越来越小。此外,存储器中还可以存储时间与预设值的关系的数据,通过读取时间和预设值,从而进行相关度的计算。用于存储预设值的存储器可以是与下面描述的存储模块81为同一存储模块,地址不同,也可以是独立于下面描述的存储模块81的存储模块,但是同一存储模块还是独立的存储模块,只是物理上的划分。In a possible implementation, a second timer may be provided in the ultrasonic sensor chip 10, and the second timer is related to the preset value of the correlation. As time increases, the ultrasonic echo signal becomes weaker, and the preset value of the correlation also decreases as time increases, that is, the preset value includes multiple different values. Alternatively, the second timer may not be provided, and the preset value of the correlation is related to time, and the preset value is directly stored in a memory, and multiple different values are provided in the memory, and the values are used to mark the preset value. As the clock passes, the preset values at different addresses in the memory are read, and the preset value is related to time. Generally speaking, as the clock passes, the preset value becomes smaller and smaller. In addition, the memory may also store data on the relationship between time and the preset value, and the correlation is calculated by reading the time and the preset value. The memory used to store the preset value may be the same storage module as the storage module 81 described below, but with different addresses, or it may be a storage module independent of the storage module 81 described below, but the same storage module is still an independent storage module, which is only physically divided.
当设置有随时间有关的相关度预设值后,存储模块还应与处理模块6电连接,处理模块6读取存储模块中的预设值信息,将相关度计算模块输出的相关度信息与预设值进行比较从而判断是否存在指定回波。When a preset value of correlation related to time is set, the storage module should also be electrically connected to the processing module 6. The processing module 6 reads the preset value information in the storage module and compares the correlation information output by the correlation calculation module with the preset value to determine whether a specified echo exists.
以下对本申请实施例的技术效果进一步进行说明,例如在图8所示的结构对应的实施例中,通过解扩后的采样信号(波E)和调制波(波C)之间的相关度来判断解扩后的采样信号(波E)是否来自于第一超声换能器201发射的超声波。如图9所示,解扩后的采样信号(波E)包含指定回波,在传输或者滑动过程中,回波信号没有与调制波(波C)对应的时序对齐,再逐渐对齐,再从对齐到逐渐远离不对齐。例如:The technical effects of the embodiments of the present application are further described below. For example, in the embodiment corresponding to the structure shown in FIG8 , the correlation between the despread sampling signal (wave E) and the modulated wave (wave C) is used to determine whether the despread sampling signal (wave E) comes from the ultrasonic wave emitted by the first ultrasonic transducer 201. As shown in FIG9 , the despread sampling signal (wave E) includes a specified echo. During the transmission or sliding process, the echo signal is not aligned with the timing corresponding to the modulated wave (wave C), and then gradually aligned, and then gradually moves away from alignment. For example:
t0、t1时钟长度,解扩后的采样信号(波E)与调制波(波C)对应的时序没有对齐,因此相关度较低;The clock lengths t0 and t1 mean that the timing of the despread sampling signal (wave E) and the modulation wave (wave C) are not aligned, so the correlation is low;
t2时钟长度,解扩后的采样信号(波E)与调制波(波C)对应的时序对齐,因此相关度最高;t2 clock length, the timing of the despread sampling signal (wave E) and the modulation wave (wave C) is aligned, so the correlation is the highest;
t3、t4时钟长度,解扩后的采样信号(波E)与调制波(波C)对应的时序没有对齐,因此相关度较低。At the clock lengths of t3 and t4, the timing of the despread sampling signal (wave E) and the modulation wave (wave C) are not aligned, so the correlation is low.
因此,不仅仅要出现指定的调制波(波C)对应的时序,而且相位要对齐的情况下才会出现高的相关度,否则相关度较低。如果序列足够长,则基本不会出现相关度从低到高,再由高到底的过程,即使出现,相关度最高的两边的相关度也是很低的,与最高相关度相比容易区分。也就是说,本申请实施例中,可以更加准确地确定接收到指定回波的时刻,因此,提高了基于接收到指定回波的时钟长度进行障碍物距离计算的准确性。Therefore, not only the timing corresponding to the specified modulation wave (wave C) must appear, but also the phase must be aligned to have a high correlation, otherwise the correlation is low. If the sequence is long enough, there will be no process of correlation from low to high and then from high to low. Even if it occurs, the correlations on both sides with the highest correlation are very low, which is easy to distinguish compared with the highest correlation. That is to say, in the embodiment of the present application, the moment when the specified echo is received can be determined more accurately, thereby improving the accuracy of obstacle distance calculation based on the clock length of the received specified echo.
由上面的介绍可知,通过对载波进行相位调制,经过对载波进行相位调节达到扩频效果,再对回波 信号进行解扩过程,只有满足调制和解扩的规则的回波信号才能获得较高的相关度,即达到相关度的预设值,其他任何非指定回波信号均会被解扩过程再次扩频,从而无法得到高的相关度值,通过相关度值就能判断是否出现指定回波。由于相位的调节,任何回波只要有一部分不满足规则,那么算出来的相关度值都比较低,因此,高相关度值出现的回波信号,才是指定回波信号,从而可以根据指定回波信号的确定来降低环境中干扰、噪声等对超声波信号处理的不良影响,提高超声波信号处理的准确性。From the above introduction, we can know that by phase modulating the carrier, the spread spectrum effect is achieved by adjusting the phase of the carrier, and then the echo During the despreading process of the signal, only the echo signals that meet the modulation and despreading rules can obtain a high correlation, that is, reach the preset value of the correlation. Any other non-specified echo signals will be spread again by the despreading process, so that a high correlation value cannot be obtained. The correlation value can be used to determine whether a designated echo appears. Due to the phase adjustment, as long as a part of any echo does not meet the rules, the calculated correlation value is relatively low. Therefore, the echo signal with a high correlation value is the designated echo signal, so that the adverse effects of interference and noise in the environment on ultrasonic signal processing can be reduced according to the determination of the designated echo signal, and the accuracy of ultrasonic signal processing can be improved.
此外,相较于现有的技术而言,本申请实施例还具有以下有益效果:In addition, compared with the existing technology, the embodiments of the present application also have the following beneficial effects:
1)能够明确指定回波出现的时间,判断逻辑比较简单。现有的相关度运算中,本地存储的信号与接收到的信号做相关度运算时,相关度运算一般会出现从低到高,再从高到底的一个过程,那么从选取哪个相关度值作为回波信号出现的时机逻辑判断比较复杂,本方案的回波信号出现时机比较明确,判断逻辑更加简化。若载波的长度足够长,那么相关度运算时,只有出现指定回波波形相关度才会很高,其他波形相关度都很低,因为自然界或者其他超声波系统发出一致度很高的波可能性很低。1) The time when the echo appears can be clearly specified, and the judgment logic is relatively simple. In the existing correlation calculation, when the locally stored signal is correlated with the received signal, the correlation calculation generally occurs from low to high and then from high to low. Therefore, the logical judgment of which correlation value to select as the timing of the echo signal appearance is relatively complex. The timing of the echo signal appearance in this solution is relatively clear, and the judgment logic is simpler. If the length of the carrier is long enough, then during the correlation calculation, only the correlation of the specified echo waveform will be high, and the correlation of other waveforms will be very low, because the possibility of nature or other ultrasonic systems emitting highly consistent waves is very low.
2)通过本申请实施例,可以不加滤波电路(采样前,或采样后),因为本申请实施例中,第二超声换能器202接收到的波本来就不是单一频率的回波,那么就不需要增加滤波器来过滤掉无关的波。无关的波,在做相关度运算时均会被滤掉,不会影响最终结果,节省了硬件电路开销。2) Through the embodiment of the present application, no filtering circuit is required (before sampling or after sampling), because in the embodiment of the present application, the wave received by the second ultrasonic transducer 202 is not an echo of a single frequency, so there is no need to add a filter to filter out irrelevant waves. Irrelevant waves will be filtered out when performing correlation calculations, will not affect the final result, and save hardware circuit overhead.
3)本申请实施例是改变载波的相位没有去改变频率,因此采样的时候可以固定采样频率,而且采用频率可以比较低。如果调整频率的方式,频率调高,则采样频率要增加否则反映不出真实的波形,要么要实时调整采样频率,要么就要固定一个较高的采样频率,这样采样的硬件开销更大;如果固定一个较高的采样频率,后续的相关度运算、峰值运算等处理的数据也会很多,进一步加大了硬件电路的开销。对于本申请实施例,只需要固定一个比较低、能够反映载波波形的频率即可,硬件更加简单。3) The embodiment of the present application changes the phase of the carrier without changing the frequency, so the sampling frequency can be fixed during sampling, and the adopted frequency can be relatively low. If the frequency is adjusted in such a way that the frequency is increased, the sampling frequency must be increased, otherwise the real waveform cannot be reflected. Either the sampling frequency must be adjusted in real time, or a higher sampling frequency must be fixed, which increases the hardware overhead of sampling. If a higher sampling frequency is fixed, a lot of data will be processed in subsequent correlation calculations, peak calculations, etc., further increasing the overhead of the hardware circuit. For the embodiment of the present application, it is only necessary to fix a relatively low frequency that can reflect the carrier waveform, and the hardware is simpler.
4)另外,具有很强的抗干扰性,允许多设备同时工作。因为扩频的抗干扰性,可以同时允许多个使用互不相关扩频码序列的设备同时工作,且不会互相干扰。4) In addition, it has strong anti-interference ability, allowing multiple devices to work at the same time. Because of the anti-interference ability of spread spectrum, it can allow multiple devices using unrelated spread spectrum code sequences to work at the same time without interfering with each other.
5)本申请实施例还能有效改善余震的影响,从而提高障碍物判断精度。第一超声换能器和第二超声换能器为同一传感器的情况,在超声波传感器发射完超声波后,超声波激励信号停止,但是由于超声波传感器无法立即停止,因此会产生余震,余震期间无法判断障碍物,导致判断精度下降,即近距离判断收到影响。发明人发现,由于余震振动周期会随着时间的推移振幅会发生变化的同时,它的频率也会发生变化,则与本申请实施例中介绍的那样,无法获得高的相关度,因此,第一超声换能器和第二超声换能器为同一传感器的情况存在余震也基本不影响对指定回波的判断,从而提高了检测精度。而且,现有对存在余震的情况,基本是额外采用余震消除电路,如增加对地的导通电阻、增加抑制信号等,这些都会额外增加电路以及整个芯片的复杂程度,而本申请不需要额外设置处理电路,节省了硬件开支同时简化了电路。5) The embodiment of the present application can also effectively improve the influence of aftershocks, thereby improving the accuracy of obstacle judgment. In the case where the first ultrasonic transducer and the second ultrasonic transducer are the same sensor, after the ultrasonic sensor emits the ultrasonic wave, the ultrasonic excitation signal stops, but because the ultrasonic sensor cannot stop immediately, aftershocks will occur, and obstacles cannot be judged during the aftershocks, resulting in a decrease in judgment accuracy, that is, the close-range judgment is affected. The inventor found that since the aftershock vibration period will change with the passage of time, its amplitude will also change, and as described in the embodiment of the present application, a high correlation cannot be obtained. Therefore, in the case where the first ultrasonic transducer and the second ultrasonic transducer are the same sensor, the existence of aftershocks basically does not affect the judgment of the specified echo, thereby improving the detection accuracy. Moreover, in the existing case where there are aftershocks, an additional aftershock elimination circuit is basically used, such as increasing the on-resistance to the ground, increasing the suppression signal, etc., which will additionally increase the complexity of the circuit and the entire chip, while the present application does not require additional processing circuits, saving hardware expenses while simplifying the circuit.
针对上述的第2)点,可以不加滤波电路是本申请的一个有益效果之一,但本申请并没有将增加滤波电路方案排除在外。Regarding the above-mentioned point 2), one of the beneficial effects of the present application is that no filtering circuit is required, but the present application does not exclude the solution of adding a filtering circuit.
如图10所示,由于采样不一定能够按照最理想的相位角度进行采样会出现一定相位角度的偏移,比如理想情况下0°、90°、180°、270°各采样一个点,实际情况下可能会出现20°、110°、200°、290°采样,从而导致相关度最终结果出现偏差,从而产生误判。As shown in Figure 10, since sampling may not be performed at the most ideal phase angle, there will be a certain phase angle deviation. For example, in an ideal situation, one point is sampled at 0°, 90°, 180°, and 270° respectively, but in actual situations, 20°, 110°, 200°, and 290° may appear, resulting in deviations in the final correlation result, leading to misjudgment.
例如,一个正弦波采样4个点,正弦波的振幅为1V,那么0°、90°、180°、270°采样得到的值为0V、1V、0V、-1V(出现这样一个规律,则认为出现了如上描述的初始相位角的正弦波;同理,如果出现了-1V、0V、1V、0V,则认为出现了如上描述的相位发生翻转的正弦波)。如果出现0V、1V、0V、-1V;0V、1V、0V、-1V;-1V、0V、1V、0V则表示出现了110的波。For example, a sine wave samples 4 points, and the amplitude of the sine wave is 1V, then the values obtained by sampling at 0°, 90°, 180°, and 270° are 0V, 1V, 0V, and -1V (if such a pattern appears, it is considered that a sine wave with the initial phase angle described above has appeared; similarly, if -1V, 0V, 1V, and 0V appear, it is considered that a sine wave with a phase flip described above has appeared). If 0V, 1V, 0V, and -1V appear; 0V, 1V, 0V, and -1V; and -1V, 0V, 1V, and 0V appear, it means that a wave of 110 has appeared.
为简化说明,如图10和表1所示,附图中的波形出现了110的波,即为出现了指定回波。那么理想情况下,是从0°开始采样(波形1),若从30°开始采样(波形2)、从45°开始采样(波形3)、从90°开始采样(波形4)的得到的波形数据不同,以一个周期为4个时钟长度为例进行说明。在45°采样时候出现较低的相关度,在90°采样的时候相关度为0;那么,这时候这种结果就会被排除,认为没有出现指定回波,从而导致错误判断。To simplify the description, as shown in FIG10 and Table 1, the waveform in the figure has a wave of 110, which means that the designated echo has appeared. Ideally, the sampling starts from 0° (waveform 1). If the waveform data obtained from sampling from 30° (waveform 2), 45° (waveform 3), and 90° (waveform 4) are different, the example of a cycle of 4 clock length is used for explanation. When sampling at 45°, a lower correlation is obtained, and when sampling at 90°, the correlation is 0; then, this result will be excluded, and it is considered that the designated echo has not appeared, resulting in an erroneous judgment.
表1

Table 1

因此,为了改善采样相位角偏差导致的误判断问题,在一种可能的实施方式中,如图11所示,相关度计算模块5具体用于,计算采样信号与参考信号对应的时序之间的第一相关度;计算采样信号和参考信号对应的正交时序之间的第二相关度;将第一相关度和第二相关度之和达到预设值的采样信号确定为指定回波。即存储模块81中还存有与参考信号正交的信号,相关度计算模块5还读取与参考信号正交的信号用于确定相关度。Therefore, in order to improve the problem of misjudgment caused by sampling phase angle deviation, in a possible implementation, as shown in FIG11, the correlation calculation module 5 is specifically used to calculate the first correlation between the sampling signal and the time sequence corresponding to the reference signal; calculate the second correlation between the sampling signal and the orthogonal time sequence corresponding to the reference signal; and determine the sampling signal whose sum of the first correlation and the second correlation reaches a preset value as the designated echo. That is, the storage module 81 also stores a signal orthogonal to the reference signal, and the correlation calculation module 5 also reads the signal orthogonal to the reference signal to determine the correlation.
例如载波对应的时序为0,1,0,-1,0,1,0,-1,0,-1,0,1,则载波对应的正交时序为1,0,-1,0,1,0,-1,0,-1,0,1,0,∑载波对应的时序*载波对应的正交时序=0,如表2所示。For example, if the timing corresponding to the carrier is 0, 1, 0, -1, 0, 1, 0, -1, 0, -1, 0, 1, then the orthogonal timing corresponding to the carrier is 1, 0, -1, 0, 1, 0, -1, 0, -1, 0, 1, ∑ the timing corresponding to the carrier * the orthogonal timing corresponding to the carrier = 0, as shown in Table 2.
表2
Table 2
再以上面的采样角度为0°、30°、45°、90°的波1、波2、波3、波4的数据为例进行说明。具 体见表3-1和3-2所示。相关度1为载波与波n的相关度,相关度2位载波对应的正交时序与波n的相关度,波n为1、2、3、4。Let’s take the data of Wave 1, Wave 2, Wave 3, and Wave 4 with sampling angles of 0°, 30°, 45°, and 90° as an example. See Tables 3-1 and 3-2. Correlation 1 is the correlation between the carrier and wave n, and correlation 2 is the correlation between the orthogonal sequence corresponding to the carrier and wave n, where wave n is 1, 2, 3, or 4.
表3-1
Table 3-1
表3-2

Table 3-2

由此可知,无论采样的相位角是如何的,解扩后的采样信号与载波对应的时序做相关度运算得到的第一相关度以及解扩后的采样信号与载波对应的正交时序之间做相关度运算后的第二相关度的两者之和始终不变,示例中为6。因此,改善了采样相位角偏差导致的误判断问题。It can be seen that no matter what the sampling phase angle is, the sum of the first correlation obtained by performing correlation operation between the despread sampling signal and the timing corresponding to the carrier and the second correlation obtained by performing correlation operation between the despread sampling signal and the orthogonal timing corresponding to the carrier remains unchanged, which is 6 in the example. Therefore, the problem of misjudgment caused by sampling phase angle deviation is improved.
在一种可能的实施方式中,如图12所示,在上述相关度计算之前,可以不设置调制解扩模块,而是直接针对采样模块4输出的信号进行相关度计算。图12所示的方案与图11所示的方案类似,区别在于,图11所示的方案中,计算的是解扩后的采样信号的相关度,图12所示的方案中,计算的是采样模块4输出的采样信号的相关度,但是两者的原理类似,都是利用对正交时序的相关度计算,来改善采样相位偏差导致的误判断问题。In a possible implementation, as shown in FIG12, before the above correlation calculation, a modulation and despreading module may not be provided, but the correlation calculation may be performed directly on the signal output by the sampling module 4. The scheme shown in FIG12 is similar to the scheme shown in FIG11, except that in the scheme shown in FIG11, the correlation of the despread sampling signal is calculated, while in the scheme shown in FIG12, the correlation of the sampling signal output by the sampling module 4 is calculated. However, the principles of the two are similar, and both utilize the correlation calculation of the orthogonal timing to improve the misjudgment problem caused by the sampling phase deviation.
由于障碍物离超声波系统越远,超声波传输时间越长,因此,随着时间的增加,第二超声换能器202接收到的超声波信号的幅值会随之下降。示例性的,如图13所示,实线波形为第一超声换能器201发出超声波信号到第二超声换能器202接收到的超声波信号的时间为0时候的第二超声换能器202接收到的超声波信号,其幅值与第一超声换能器201发出超声波信号一样(实际上不可能是0s),中间的虚线波形为时间为5ms时候第二超声换能器202接收到的超声波信号,最靠近原点的虚线波形为时间为10ms时候的第二超声换能器202接收到的超声波信号,由此可知,随着第二超声换能器202接收到的超声波信号的时间越晚,则与载波或调制波计算后的相关度也越低,因此,可以设置动态的相关度阈值,该相关度与时间有关,随着时间的增加而减小,即利用上述第二计时器(或直接存储与时间有关的预设值)来设置相关度的预设值与第二计时器的计时时间负相关。例如在一种可能的实施方式中,存储模块81中存储有多个不同的预设值,处理模块6的输入端与存储模块81的输出端电连接以读取预设值。然而,设置动态变化的阈值,需要较多的寄存器、存储器或者较多的硬件电路开销。Since the farther the obstacle is from the ultrasonic system, the longer the ultrasonic transmission time is, the amplitude of the ultrasonic signal received by the second ultrasonic transducer 202 will decrease as time goes by. Exemplarily, as shown in FIG13 , the solid line waveform is the ultrasonic signal received by the second ultrasonic transducer 202 when the time from the first ultrasonic transducer 201 sending the ultrasonic signal to the second ultrasonic transducer 202 receiving the ultrasonic signal is 0, and its amplitude is the same as that of the ultrasonic signal sent by the first ultrasonic transducer 201 (actually it cannot be 0s), the dotted line waveform in the middle is the ultrasonic signal received by the second ultrasonic transducer 202 when the time is 5ms, and the dotted line waveform closest to the origin is the ultrasonic signal received by the second ultrasonic transducer 202 when the time is 10ms. It can be seen that as the time of the ultrasonic signal received by the second ultrasonic transducer 202 is later, the correlation calculated with the carrier or modulated wave is also lower. Therefore, a dynamic correlation threshold can be set, and the correlation is related to time and decreases with the increase of time, that is, the preset value of the correlation set by using the above-mentioned second timer (or directly storing the preset value related to time) is negatively correlated with the timing time of the second timer. For example, in a possible implementation, a plurality of different preset values are stored in the storage module 81, and the input end of the processing module 6 is electrically connected to the output end of the storage module 81 to read the preset value. However, setting a dynamically changing threshold requires more registers, memories, or more hardware circuit overhead.
因此,本申请实施例还提供了另外一种方案来改善由于超声波信号的幅值随时间下降而导致的判断不准确问题。Therefore, the embodiment of the present application also provides another solution to improve the problem of inaccurate judgment caused by the decrease in the amplitude of the ultrasonic signal over time.
在一种可能的实施方式中,如图14a所示,上述超声波传感器芯片,还包括:设置于采样模块4和相关度计算模块5之间的符号处理模块7,符号处理模块7的输入端与采样模块4的输出端电连接,符号处理模块7的输出端与相关度计算模块5的输入端电连接;符号处理模块7用于对采样信号的正值转换为第一固定值,将采样信号的负值转换为第二固定值。例如,符号处理模块7可以位于相关度计算模块5和调制解扩模块8之间,对于解扩后的采样信号中的0V,则不变,仍取0V,如果为-1V、-0.707V、-0.5V等负值则取第一固定值,如-1V,如果为1V、0.707V、0.5V等正值则取第二固定值,如1V,类似做归一化处理。这样,无论采样的值如何,经过符号处理模块处理后,输出与幅值无关。In a possible implementation, as shown in FIG14a, the ultrasonic sensor chip further includes: a symbol processing module 7 disposed between the sampling module 4 and the correlation calculation module 5, the input end of the symbol processing module 7 being electrically connected to the output end of the sampling module 4, and the output end of the symbol processing module 7 being electrically connected to the input end of the correlation calculation module 5; the symbol processing module 7 is used to convert the positive value of the sampling signal into a first fixed value, and convert the negative value of the sampling signal into a second fixed value. For example, the symbol processing module 7 can be located between the correlation calculation module 5 and the modulation and despreading module 8, and for 0V in the despread sampling signal, it remains unchanged and still takes 0V; if it is a negative value such as -1V, -0.707V, -0.5V, etc., it takes a first fixed value such as -1V; if it is a positive value such as 1V, 0.707V, 0.5V, etc., it takes a second fixed value such as 1V, and similarly performs normalization processing. In this way, no matter what the sampled value is, after being processed by the symbol processing module, the output is independent of the amplitude.
如表4-1和表4-2所示,是在图11所示的方案基础上没有进行符号提取的相关度运算的对比例,以0°相位角采样为例进行说明。表4-1和表4-2为随着时间的增加采样幅值随着减少,如1V——0.7V——0.5V——0.3V(最大值),那么,与载波对应的时序和载波对应的正交时序进行相关度运算后其结果也随着减小,6——4.2——3——1.8。那么就要调整动态相关度值,硬件开销大、电路复杂、逻辑运算更加复杂。As shown in Table 4-1 and Table 4-2, it is a comparative example of correlation calculation without symbol extraction based on the scheme shown in Figure 11, taking 0° phase angle sampling as an example for explanation. Table 4-1 and Table 4-2 show that the sampling amplitude decreases with the increase of time, such as 1V-0.7V-0.5V-0.3V (maximum value), then, the result of correlation calculation with the timing corresponding to the carrier and the orthogonal timing corresponding to the carrier also decreases, 6-4.2-3-1.8. Then it is necessary to adjust the dynamic correlation value, which has large hardware overhead, complex circuits, and more complex logical operations.
表4-1
Table 4-1
表4-2
Table 4-2
如表5-1和表5-2所示,经过符号处理模块后,将正值和负值的值进行处理的图14a所示的本申请实施例,可知,随着时间的增加,用于运算的采样值不变,因此,相关度的总和与时间无关。因此,能够节约大量的硬件电路,芯片面积更加节省、成本更低、逻辑运算更加简单。 As shown in Table 5-1 and Table 5-2, after the symbol processing module, the positive and negative values are processed in the embodiment of the present application shown in FIG. 14a. It can be seen that as time increases, the sampled values used for calculation remain unchanged, so the sum of the correlations is independent of time. Therefore, a large amount of hardware circuits can be saved, the chip area is more saved, the cost is lower, and the logic operation is simpler.
表5-1
Table 5-1
表5-2
Table 5-2
在一种可能的实施方式中,图14b为图14a的变形,符号处理模块7还可以设置于采样模块4和调制解扩模块8之间,符号处理模块7用于将采样信号的正值转换为第一固定值,将采样信号的负值转换为第二固定值,并将转换后的采样信号输出至调制解扩模块8。该方案与图14a所示的方案类似,区别 在于,在图14a所示的方案中,符号提取的是调制解扩后的信号,在图14b所示的该变形方案中,符号提取的是采样后的信号。In a possible implementation, FIG. 14b is a variation of FIG. 14a, and the symbol processing module 7 can also be arranged between the sampling module 4 and the modulation and despreading module 8, and the symbol processing module 7 is used to convert the positive value of the sampled signal into a first fixed value, convert the negative value of the sampled signal into a second fixed value, and output the converted sampled signal to the modulation and despreading module 8. This scheme is similar to the scheme shown in FIG. 14a, except that The difference is that, in the scheme shown in FIG. 14a , the symbol extracted is a modulated and despread signal, while in the variant scheme shown in FIG. 14b , the symbol extracted is a sampled signal.
在一种可能的实施方式中,如图15所示,符号处理模块7还可以设置于采样模块4和相关度计算模块5之间,符号处理模块7用于将采样信号的正值转换为第一固定值,将采样信号的负值转换为第二固定值,并将转换后的采样信号输出至相关度计算模块5。图15所示的方案与图14a即图14b所示的方案类似,区别在于,在图14a和图14b所示的方案中,存在调制解扩模块,在图15所示的方案中,不存在调制解扩模块。In a possible implementation, as shown in FIG15, the symbol processing module 7 may also be arranged between the sampling module 4 and the correlation calculation module 5, and the symbol processing module 7 is used to convert the positive value of the sampling signal into a first fixed value, convert the negative value of the sampling signal into a second fixed value, and output the converted sampling signal to the correlation calculation module 5. The scheme shown in FIG15 is similar to the scheme shown in FIG14a and FIG14b, except that in the schemes shown in FIG14a and FIG14b, there is a modulation and despreading module, and in the scheme shown in FIG15, there is no modulation and despreading module.
调制码的一个码片宽度可以大于载波的一个正弦波周期,如一个码片对应2、3、4、…n个载波的正弦波周期。在一种可能的实施方式中,调制码的一个码片宽度等于载波的一个周期。参照图9,当出现波形和相位角相关的信号时会出现很高的相关度。然而,由于一个正弦波有多个采样点,当最后一个正弦波的第一个采样数据开始出现数据匹配时相关度逐渐开始增加,当全部采样数据匹配时相关度达到最大,随着波的移动,匹配度又会下降从而相关度又降低。将相关峰的时间轴放大,相关度最高的相关峰会出现类似一个三角形,即相关度从低到高,再从高到低的过程。如图16所示。那么精确的确定相关峰出现的时机,就要尽可能压缩这个三角形的底边,越小则时间越精确。此时,将调制码码片宽度设置为等于一个载波的正弦波周期能够有效的降低这个三角形的底边。一个正弦波采样n个点,则三角形的底边由2*n个时钟长度组成,则相关峰最高的点出现在相关峰出现的第n和n+1个时钟之间,时间确定精度可以控制在正负1个时钟长度之间。The width of a code chip of the modulation code can be greater than a sine wave period of the carrier, such as a code chip corresponding to 2, 3, 4, ... n sine wave periods of the carrier. In a possible implementation, the width of a code chip of the modulation code is equal to one period of the carrier. Referring to Figure 9, when a signal related to the waveform and phase angle appears, a very high correlation will appear. However, since a sine wave has multiple sampling points, the correlation gradually begins to increase when the first sampled data of the last sine wave begins to match data, and the correlation reaches the maximum when all the sampled data match. As the wave moves, the matching degree will decrease and the correlation will decrease again. Enlarge the time axis of the correlation peak, and the correlation peak with the highest correlation will appear similar to a triangle, that is, the correlation goes from low to high, and then from high to low. As shown in Figure 16. Then, to accurately determine the timing of the correlation peak, it is necessary to compress the bottom side of the triangle as much as possible. The smaller the time, the more accurate the time. At this time, setting the modulation code chip width equal to the sine wave period of a carrier can effectively reduce the bottom side of the triangle. A sine wave samples n points, and the base of the triangle consists of 2*n clock lengths. The point with the highest correlation peak appears between the nth and n+1th clocks where the correlation peak appears, and the time determination accuracy can be controlled between plus or minus 1 clock length.
在一种可能的实施方式中,在对第二超声换能器接收到的超声波信号进行采样的过程中,采样周期为载波的一个正弦波周期的四分之一。In a possible implementation, during the process of sampling the ultrasonic signal received by the second ultrasonic transducer, the sampling period is one quarter of a sine wave period of the carrier.
具体地,正如上面所述,由于采用了相位调制,因此,采样频率不用很高或者不需要调制;一个正弦波可以只采样4个点,以0°采样为例,一个正弦波采样的4个点的幅值为0V、1V、0V、-1V,相位调制后的正弦波的4个点幅值为0V、-1V、0V、1V,因此,通过四个采样点就能清楚的得知是初始相位的正弦波还是相位被调制后的正弦波,即能够判断是否出现指定回波,不会因为采样低出现判断偏差问题。在现有技术的方案中,为了防止出现误判,采样率都要做得很高,因此对采样硬件的要求高、后续的相关度运算硬件消耗也更大;采用本申请实施例的方案之后可以大大降低对硬件电路的开销。Specifically, as described above, due to the use of phase modulation, the sampling frequency does not need to be very high or does not need to be modulated; a sine wave can only sample 4 points, taking 0° sampling as an example, the amplitudes of the 4 points of a sine wave sampling are 0V, 1V, 0V, -1V, and the amplitudes of the sine wave after phase modulation are 0V, -1V, 0V, 1V. Therefore, through the four sampling points, it can be clearly known whether it is a sine wave of the initial phase or a sine wave after phase modulation, that is, it can be determined whether a specified echo appears, and there will be no judgment deviation due to low sampling. In the scheme of the prior art, in order to prevent misjudgment, the sampling rate must be very high, so the requirements for sampling hardware are high and the subsequent correlation calculation hardware consumption is also greater; after adopting the scheme of the embodiment of the present application, the overhead of the hardware circuit can be greatly reduced.
在一种可能的实施方式中,如图1所示,超声波传感器芯片10还可以包括:存储模块81,存储模块81电连接于相关度计算模块5,相关度计算模块5可以根据存储模块81中存储的参考信号来进行相关度的计算。对于设置调制解扩模块8的实施方式中,存储模块81中存储有载波和调制码的信息,调制码用于对收的采样信号进行调节解扩,解扩后的信号再与载波做相关度计算;那么,调制解扩模块8与存储模块81电连接用于读取调制码,并根据调制码对采样信号进行调制解扩,相关度计算模块5也与存储模块81电连接,用于读取与载波有关的信息(如载波,或载波以及与载波正交的序列信息)并做相关度计算。对于不设置调制解扩模块8的实施方式中,存储模块81中存储有与载波和调制码有关的信息,该信息是调制波,因为调制波是通过载波与调制码做相位调制得到的,因此,调制波也是与载波和调制码有关的信息中的一种;调制波与采样信号做相关度计算,那么相关度计算模块5与存储模块9电连接用于读取与调制波有关的信息(如调制波,或调制波以及与调制波正交的序列信息)并做相关度计算。In a possible implementation, as shown in FIG1 , the ultrasonic sensor chip 10 may further include: a storage module 81, the storage module 81 is electrically connected to the correlation calculation module 5, and the correlation calculation module 5 may calculate the correlation according to the reference signal stored in the storage module 81. In the implementation of setting the modulation and despreading module 8, the storage module 81 stores information about the carrier and the modulation code, the modulation code is used to modulate and despread the received sampling signal, and the despread signal is then correlated with the carrier; then, the modulation and despreading module 8 is electrically connected to the storage module 81 for reading the modulation code, and modulating and despreading the sampling signal according to the modulation code, and the correlation calculation module 5 is also electrically connected to the storage module 81 for reading information related to the carrier (such as the carrier, or the carrier and sequence information orthogonal to the carrier) and performing correlation calculation. In the implementation method where the modulation and demodulation module 8 is not set, the storage module 81 stores information related to the carrier and the modulation code, and the information is the modulated wave. Because the modulated wave is obtained by phase modulation of the carrier and the modulation code, the modulated wave is also a type of information related to the carrier and the modulation code; the modulated wave and the sampling signal are correlated, and then the correlation calculation module 5 is electrically connected to the storage module 9 for reading the information related to the modulated wave (such as the modulated wave, or the modulated wave and sequence information orthogonal to the modulated wave) and performing correlation calculation.
另外,对于设置调制解扩模块8的实施方式中,存储模块81可以与载波生成模块1、调制码生成模块2电连接以存储载波和调制码对应的信息。对于不设置调制解扩模块8的实施方式中,存储模块81可以与相位调制模块3电连接以存储调制波对应的信息。In addition, in the implementation mode in which the modulation and despreading module 8 is provided, the storage module 81 can be electrically connected to the carrier generation module 1 and the modulation code generation module 2 to store information corresponding to the carrier and the modulation code. In the implementation mode in which the modulation and despreading module 8 is not provided, the storage module 81 can be electrically connected to the phase modulation module 3 to store information corresponding to the modulated wave.
另外,采样模块4可以为模数转换器(ADC),通过模数转换器的模数转换功能,将模拟信号采样生成数字信号,即将第二超声波传感器的模拟信号,通过模数转换器转换成数字信号,以供后面的各个模块使用。In addition, the sampling module 4 can be an analog-to-digital converter (ADC), which samples the analog signal to generate a digital signal through the analog-to-digital conversion function of the analog-to-digital converter, that is, the analog signal of the second ultrasonic sensor is converted into a digital signal through the analog-to-digital converter for use by subsequent modules.
在一种可能的实施方式中,相关度计算模块5包括卷积运算逻辑电路。In a possible implementation, the correlation calculation module 5 includes a convolution operation logic circuit.
在一种可能的实施方式中,第一超声换能器201和第二超声换能器202为同一传感器。In a possible implementation manner, the first ultrasonic transducer 201 and the second ultrasonic transducer 202 are the same sensor.
本申请实施例还提供一种超声波信号处理方法,该超声波信号处理方法可以应用于上述的超声波传感器芯片,如图17所示,该信号处理方法包括:The embodiment of the present application further provides an ultrasonic signal processing method, which can be applied to the above-mentioned ultrasonic sensor chip. As shown in FIG17 , the signal processing method includes:
步骤101、生成载波; Step 101: Generate a carrier wave;
步骤102、生成调制码;Step 102: Generate a modulation code;
步骤103、根据调制码对载波进行调制,得到调制波,并输出至第一超声换能器;Step 103: modulate the carrier according to the modulation code to obtain a modulated wave, and output it to the first ultrasonic transducer;
步骤104、对第二超声换能器接收到的超声波信号进行采样,得到采样信号;Step 104: sampling the ultrasonic signal received by the second ultrasonic transducer to obtain a sampled signal;
步骤105、根据参考信号确定采样信号的相关度,相关度与调制码相关,相关度与载波相关;Step 105: Determine the correlation of the sampled signal according to the reference signal, where the correlation is related to the modulation code and the correlation is related to the carrier;
步骤106、将相关度达到预设值的采样信号确定为指定回波。Step 106: Determine the sampling signal whose correlation reaches a preset value as a designated echo.
该方法的具体过程和原理与上述实施例中记载的方案相同,在此不再赘述。The specific process and principle of this method are the same as those described in the above embodiment and will not be described in detail here.
在一种可能的实施方式中,如图18所示,在步骤105、根据参考信号确定采样信号的相关度之前,还包括:步骤107、根据调制码对采样信号进行调制解扩;参考信号为载波或与载波正交的载波正交波。In a possible implementation, as shown in FIG. 18 , before step 105 , determining the correlation of the sampling signal according to the reference signal, the method further includes: step 107 , modulating and despreading the sampling signal according to the modulation code; the reference signal is a carrier or a carrier orthogonal wave orthogonal to the carrier.
在一种可能的实施方式中,如图19所示,在该流程中,不需要执行调制解扩的过程,参考信号为调制波或与调制波正交的调制正交波。In a possible implementation, as shown in FIG. 19 , in this process, there is no need to perform a modulation and despreading process, and the reference signal is a modulated wave or a modulated orthogonal wave that is orthogonal to the modulated wave.
在一种可能的实施方式中,如图20、图21或22所示,步骤105、根据参考信号确定采样信号的相关度包括:步骤1051、计算采样信号与参考信号对应的时序之间的第一相关度;步骤1052、计算采样信号和参考信号对应的正交时序之间的第二相关度;步骤106、将相关度达到预设值的采样信号确定为指定回波包括:将第一相关度和第二相关度之和达到预设值的采样信号确定为指定回波。In a possible implementation, as shown in FIG. 20, FIG. 21 or FIG. 22, step 105, determining the correlation of the sampling signal based on the reference signal includes: step 1051, calculating the first correlation between the sampling signal and the timing corresponding to the reference signal; step 1052, calculating the second correlation between the sampling signal and the orthogonal timing corresponding to the reference signal; step 106, determining the sampling signal whose correlation reaches a preset value as the designated echo includes: determining the sampling signal whose sum of the first correlation and the second correlation reaches a preset value as the designated echo.
在一种可能的实施方式中,如图18和图20所示,方法还包括:在步骤107、根据调制码对采样信号进行调制解扩之前,执行步骤108、将采样信号的正值转换为第一固定值,将采样信号的负值转换为第二固定值;或,如图21和图22所示,在计算所述相关度之前,执行步骤108、将采样信号的正值转换为第一固定值,将采样信号的负值转换为第二固定值。In a possible implementation, as shown in FIGS. 18 and 20 , the method further includes: before step 107, modulating and demodulating the sampled signal according to the modulation code, executing step 108, converting the positive value of the sampled signal into a first fixed value, and converting the negative value of the sampled signal into a second fixed value; or, as shown in FIGS. 21 and 22 , before calculating the correlation, executing step 108, converting the positive value of the sampled signal into a first fixed value, and converting the negative value of the sampled signal into a second fixed value.
在一种可能的实施方式中,如图19至图22所示,在步骤105、根据参考信号确定采样信号的相关度之前,方法还包括:步骤108、将采样信号的正值转换为第一固定值,将采样信号的负值转换为第二固定值。In a possible implementation, as shown in FIGS. 19 to 22 , before step 105 , determining the correlation of the sampled signal according to the reference signal, the method further includes: step 108 , converting the positive value of the sampled signal into a first fixed value, and converting the negative value of the sampled signal into a second fixed value.
在一种可能的实施方式中,调制码包括第一码值和第二码值,在调制过程中,第一码值用于使载波相位翻转180°,第二码值用于保持载波相位不变。In a possible implementation, the modulation code includes a first code value and a second code value. During the modulation process, the first code value is used to flip the carrier phase by 180°, and the second code value is used to keep the carrier phase unchanged.
在一种可能的实施方式中,调制码的一个码片宽度等于载波的一个周期。In a possible implementation manner, a chip width of the modulation code is equal to a period of the carrier.
在一种可能的实施方式中,在对第二超声换能器接收到的超声波信号进行采样的过程中,采样周期为载波的一个正弦波周期的四分之一。In a possible implementation, during the process of sampling the ultrasonic signal received by the second ultrasonic transducer, the sampling period is one quarter of a sine wave period of the carrier.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.
以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (38)

  1. 一种超声波传感器芯片,其特征在于,包括:包括驱动电路、信号处理电路和存储模块,所述驱动电路包括载波生成模块、调制码生成模块、相位调制模块,所述信号处理电路包括采样模块、相关度计算模块和处理模块;An ultrasonic sensor chip, characterized in that it comprises: a driving circuit, a signal processing circuit and a storage module, the driving circuit comprises a carrier generation module, a modulation code generation module, and a phase modulation module, the signal processing circuit comprises a sampling module, a correlation calculation module and a processing module;
    所述载波生成模块和所述调制码生成模块的输入端用于耦合到微处理芯片以接收触发信号,所述载波生成模块和所述调制码生成模块的输出端与所述相位调制模块的输入端电连接;所述相位调制模块的输出端用于耦合到第一超声换能器;所述采样模块的输入端耦合到第二超声换能器,所述采样模块的输出端与所述相关度计算模块的输入端电连接;所述存储模块的输入端与所述驱动电路的输出端电连接,所述存储模块的输出端与所述相关度计算模块的输入端电连接,所述存储模块中存储有参考信号;所述处理模块的输入端与所述相关度计算模块的输出端电连接,所述处理模块的输出端用于耦合到所述微处理芯片以发送反馈信号;其中,The input ends of the carrier generation module and the modulation code generation module are used to couple to a microprocessor chip to receive a trigger signal, and the output ends of the carrier generation module and the modulation code generation module are electrically connected to the input end of the phase modulation module; the output end of the phase modulation module is used to couple to a first ultrasonic transducer; the input end of the sampling module is coupled to a second ultrasonic transducer, and the output end of the sampling module is electrically connected to the input end of the correlation calculation module; the input end of the storage module is electrically connected to the output end of the driving circuit, and the output end of the storage module is electrically connected to the input end of the correlation calculation module, and a reference signal is stored in the storage module; the input end of the processing module is electrically connected to the output end of the correlation calculation module, and the output end of the processing module is used to couple to the microprocessor chip to send a feedback signal; wherein,
    所述载波生成模块,接收所述触发信号产生载波,并将所述载波输入至所述相位调制模块;The carrier generation module receives the trigger signal to generate a carrier, and inputs the carrier into the phase modulation module;
    所述调制码生成模块,接收所述触发信号产生调制码,并将所述调制码输入至所述相位调制模块;The modulation code generation module receives the trigger signal to generate a modulation code, and inputs the modulation code to the phase modulation module;
    所述相位调制模块,接收所述调制码和所述载波信号并对所述载波进行相位调制得到调制波,并将所述调制波输出至所述第一超声换能器;The phase modulation module receives the modulation code and the carrier signal and performs phase modulation on the carrier to obtain a modulated wave, and outputs the modulated wave to the first ultrasonic transducer;
    所述采样模块,用于对所述第二超声换能器接收到的超声波信号进行采样,并将采样信号输入至所述相关度计算模块;The sampling module is used to sample the ultrasonic signal received by the second ultrasonic transducer and input the sampled signal to the correlation calculation module;
    所述相关度计算模块,读取所述存储模块中的所述参考信号以确定所述采样信号的相关度,并将所述相关度信息输入至所述处理模块,所述相关度与所述调制码相关,所述相关度与所述载波相关;The correlation calculation module reads the reference signal in the storage module to determine the correlation of the sampled signal, and inputs the correlation information to the processing module, wherein the correlation is related to the modulation code, and the correlation is related to the carrier;
    所述处理模块,接收所述相关度信息并输出相关度达到预设值的反馈信号。The processing module receives the correlation information and outputs a feedback signal indicating that the correlation reaches a preset value.
  2. 根据权利要求1所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 1, characterized in that
    所述存储模块中还存有与所述参考信号正交的信号,所述相关度计算模块还读取与所述参考信号正交的信号用于确定所述相关度。The storage module also stores a signal orthogonal to the reference signal, and the correlation calculation module also reads the signal orthogonal to the reference signal to determine the correlation.
  3. 根据权利要求1所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 1, characterized in that
    还包括符号处理模块,所述符号处理模块的输入端与所述采样模块的输出端电连接,所述符号处理模块的输出端与所述相关度计算模块的输入端电连接;所述符号处理模块用于对所述采样信号的正值转换为第一固定值,将所述采样信号的负值转换为第二固定值。It also includes a sign processing module, the input end of the sign processing module is electrically connected to the output end of the sampling module, and the output end of the sign processing module is electrically connected to the input end of the correlation calculation module; the sign processing module is used to convert the positive value of the sampling signal into a first fixed value, and convert the negative value of the sampling signal into a second fixed value.
  4. 根据权利要求1至3任意一项所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to any one of claims 1 to 3, characterized in that:
    还包括调制解扩模块,所述调制解扩模块的输入端耦合至所述采样模块的输出端,所述调制解扩模块的输出端耦合至所述相关度计算模块的输入端;所述存储模块还存储有所述调制码,所述调制解扩模块的输入端还与所述存储模块的输出端电连接以读取所述调制码;It also includes a modulation and despreading module, the input end of the modulation and despreading module is coupled to the output end of the sampling module, and the output end of the modulation and despreading module is coupled to the input end of the correlation calculation module; the storage module also stores the modulation code, and the input end of the modulation and despreading module is also electrically connected to the output end of the storage module to read the modulation code;
    所述参考信号为所述载波或与所述载波正交的载波正交波。The reference signal is the carrier or a carrier orthogonal wave orthogonal to the carrier.
  5. 根据权利要求1至3任意一项所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to any one of claims 1 to 3, characterized in that:
    所述参考信号为所述调制波或与所述调制波正交的调制正交波。The reference signal is the modulated wave or a modulated orthogonal wave orthogonal to the modulated wave.
  6. 根据权利要求1或2所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 1 or 2, characterized in that
    所述存储模块中存储有多个不同的所述预设值,所述处理模块的输入端与所述存储模块的输出端电连接以读取所述预设值。The storage module stores a plurality of different preset values, and the input end of the processing module is electrically connected to the output end of the storage module to read the preset values.
  7. 根据权利要求1至3任意一项所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to any one of claims 1 to 3, characterized in that:
    所述调制码生成电路输入到所述相位调制模块的信号包括第一信号和第二信号,所述相位调制模块接收到所述第一信号输出对应的所述载波信息,所述相位调制模块接收到所述第二信号输出与对应的所述载波相差180°的信息。The signal input to the phase modulation module by the modulation code generation circuit includes a first signal and a second signal. The phase modulation module receives the first signal and outputs the corresponding carrier information. The phase modulation module receives the second signal and outputs information that the second signal is 180° different from the corresponding carrier.
  8. 根据权利要求7所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 7, characterized in that
    所述调制码的一个码片宽度等于所述载波的一个周期。One chip width of the modulation code is equal to one period of the carrier.
  9. 根据权利要求8所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 8, characterized in that
    在所述对第二超声换能器接收到的超声波信号进行采样的过程中,采样周期为所述载波的一个周期的四分之一。In the process of sampling the ultrasonic signal received by the second ultrasonic transducer, the sampling period is one quarter of a period of the carrier.
  10. 根据权利要求1所述的超声波传感器芯片,其特征在于, The ultrasonic sensor chip according to claim 1, characterized in that
    所述采样模块为模数转换器。The sampling module is an analog-to-digital converter.
  11. 根据权利要求1所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 1, characterized in that
    所述相关度计算模块包括卷积运算逻辑电路。The correlation calculation module includes a convolution operation logic circuit.
  12. 根据权利要求1所述的超声波传感器芯片,其特征在于,所述第一超声换能器和所述第二超声换能器为同一传感器。The ultrasonic sensor chip according to claim 1, characterized in that the first ultrasonic transducer and the second ultrasonic transducer are the same sensor.
  13. 一种超声波传感器芯片,其特征在于,包括:An ultrasonic sensor chip, characterized by comprising:
    载波生成模块,用于生成载波;A carrier generation module, used for generating a carrier;
    调制码生成模块,用于生成调制码;A modulation code generation module, used for generating a modulation code;
    相位调制模块,用于根据所述调制码对所述载波的相位进行调制,得到调制波,并将所述调制波输出至第一超声换能器;A phase modulation module, used for modulating the phase of the carrier according to the modulation code to obtain a modulated wave, and outputting the modulated wave to the first ultrasonic transducer;
    采样模块,用于对第二超声换能器接收到的超声波信号进行采样,得到采样信号;A sampling module, used for sampling the ultrasonic signal received by the second ultrasonic transducer to obtain a sampling signal;
    相关度计算模块,用于根据参考信号确定所述采样信号的相关度,所述相关度与所述调制码相关,所述相关度与所述载波相关;A correlation calculation module, used to determine the correlation of the sampled signal according to a reference signal, wherein the correlation is related to the modulation code, and the correlation is related to the carrier;
    处理模块,用于将相关度达到预设值的采样信号确定为指定回波。The processing module is used to determine the sampling signal whose correlation reaches a preset value as a designated echo.
  14. 根据权利要求13所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 13, characterized in that
    所述相关度计算模块具体用于:The correlation calculation module is specifically used for:
    计算所述采样信号与所述参考信号对应的时序之间的第一相关度;Calculating a first correlation between the sampling signal and the timing corresponding to the reference signal;
    计算所述采样信号和所述参考信号对应的正交时序之间的第二相关度;Calculating a second correlation between the sampling signal and the orthogonal timing corresponding to the reference signal;
    将所述第一相关度和所述第二相关度之和达到预设值的采样信号确定为指定回波。A sampling signal for which the sum of the first correlation degree and the second correlation degree reaches a preset value is determined as a designated echo.
  15. 根据权利要求13所述的超声波传感器芯片,其特征在于,还包括:The ultrasonic sensor chip according to claim 13, further comprising:
    设置于所述采样模块和所述相关度计算模块之间的符号处理模块,所述符号处理模块用于将所述采样信号的正值转换为第一固定值,将所述采样信号的负值转换为第二固定值。A sign processing module is provided between the sampling module and the correlation calculation module, and is used for converting a positive value of the sampling signal into a first fixed value, and converting a negative value of the sampling signal into a second fixed value.
  16. 根据权利要求13至15中任意一项所述的超声波传感器芯片,其特征在于,还包括:The ultrasonic sensor chip according to any one of claims 13 to 15, further comprising:
    设置于所述采样模块和所述相关度计算模块之间的调制解扩模块,所述调制解扩模块用于根据所述调制码对所述采样信号进行调制解扩;A modulation and despreading module is provided between the sampling module and the correlation calculation module, and the modulation and despreading module is used to modulate and despread the sampling signal according to the modulation code;
    所述参考信号为所述载波或与所述载波正交的载波正交波。The reference signal is the carrier or a carrier orthogonal wave orthogonal to the carrier.
  17. 根据权利要求13至15中任意一项所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to any one of claims 13 to 15, characterized in that:
    所述参考信号为所述调制波或与所述调制波正交的调制正交波。The reference signal is the modulated wave or a modulated orthogonal wave orthogonal to the modulated wave.
  18. 根据权利要求13至15中任意一项所述的超声波传感器芯片,其特征在于,所述预设值包括多个不同的数值。The ultrasonic sensor chip according to any one of claims 13 to 15, characterized in that the preset value includes a plurality of different numerical values.
  19. 根据权利要求13至15中任意一项所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to any one of claims 13 to 15, characterized in that:
    所述调制码包括第一码值和第二码值,在所述调制过程中,所述第一码值用于使所述载波相位翻转180°,所述第二码值用于保持所述载波相位不变。The modulation code includes a first code value and a second code value. During the modulation process, the first code value is used to flip the carrier phase by 180°, and the second code value is used to keep the carrier phase unchanged.
  20. 根据权利要求19所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 19, characterized in that
    所述调制码的一个码片宽度等于所述载波的一个周期。One chip width of the modulation code is equal to one period of the carrier.
  21. 根据权利要求20所述的超声波传感器芯片,其特征在于,The ultrasonic sensor chip according to claim 20, characterized in that
    在所述对第二超声换能器接收到的超声波信号进行采样的过程中,采样周期为所述载波的一个周期的四分之一。In the process of sampling the ultrasonic signal received by the second ultrasonic transducer, the sampling period is one quarter of a period of the carrier.
  22. 一种超声波信号处理方法,其特征在于,包括:An ultrasonic signal processing method, characterized by comprising:
    生成载波;Generate a carrier wave;
    生成调制码;generating a modulation code;
    根据所述调制码对所述载波的相位进行调制,得到调制波,并输出至第一超声换能器;Modulating the phase of the carrier according to the modulation code to obtain a modulated wave, and outputting the modulated wave to the first ultrasonic transducer;
    对第二超声换能器接收到的超声波信号进行采样,得到采样信号;Sampling the ultrasonic signal received by the second ultrasonic transducer to obtain a sampling signal;
    根据参考信号确定所述采样信号的相关度,所述相关度与所述调制码相关,所述相关度与所述载波相关;Determine the correlation of the sampled signal according to the reference signal, wherein the correlation is related to the modulation code, and the correlation is related to the carrier;
    将相关度达到预设值的采样信号确定为指定回波。The sampling signal whose correlation reaches a preset value is determined as the designated echo.
  23. 根据权利要求22所述的方法,其特征在于, The method according to claim 22, characterized in that
    所述根据参考信号确定所述采样信号的相关度包括:Determining the correlation of the sampled signal according to the reference signal comprises:
    计算所述采样信号与所述参考信号对应的时序之间的第一相关度;Calculating a first correlation between the sampling signal and the timing corresponding to the reference signal;
    计算所述采样信号和所述参考信号对应的正交时序之间的第二相关度;Calculating a second correlation between the sampling signal and the orthogonal timing corresponding to the reference signal;
    所述将相关度达到预设值的采样信号确定为指定回波包括:The step of determining the sampling signal whose correlation reaches a preset value as the designated echo comprises:
    将所述第一相关度和所述第二相关度之和达到预设值的采样信号确定为指定回波。A sampling signal for which the sum of the first correlation degree and the second correlation degree reaches a preset value is determined as a designated echo.
  24. 根据权利要求22所述的方法,其特征在于,The method according to claim 22, characterized in that
    在所述根据参考信号确定所述采样信号的相关度之前,还包括:Before determining the correlation of the sampled signal according to the reference signal, the method further includes:
    将所述采样信号的正值转换为第一固定值,将所述采样信号的负值转换为第二固定值。The positive value of the sampling signal is converted into a first fixed value, and the negative value of the sampling signal is converted into a second fixed value.
  25. 根据权利要求22至24中任意一项所述的方法,其特征在于,The method according to any one of claims 22 to 24, characterized in that
    在所述根据参考信号确定所述采样信号的相关度之前,还包括:Before determining the correlation of the sampled signal according to the reference signal, the method further includes:
    根据所述调制码对所述采样信号进行调制解扩;Modulating and despreading the sampled signal according to the modulation code;
    所述参考信号为所述载波或与所述载波正交的载波正交波。The reference signal is the carrier or a carrier orthogonal wave orthogonal to the carrier.
  26. 根据权利要求22至24中任意一项所述的方法,其特征在于,The method according to any one of claims 22 to 24, characterized in that
    所述参考信号为所述调制波或与所述调制波正交的调制正交波。The reference signal is the modulated wave or a modulated orthogonal wave orthogonal to the modulated wave.
  27. 根据权利要求22至24中任意一项所述的方法,其特征在于,The method according to any one of claims 22 to 24, characterized in that
    所述预设值与时间有关。The preset value is related to time.
  28. 根据权利要求22至24中任意一项所述的方法,其特征在于,The method according to any one of claims 22 to 24, characterized in that
    所述调制码包括第一码值和第二码值,在所述调制过程中,所述第一码值用于使所述载波相位翻转180°,所述第二码值用于保持所述载波相位不变。The modulation code includes a first code value and a second code value. During the modulation process, the first code value is used to flip the carrier phase by 180°, and the second code value is used to keep the carrier phase unchanged.
  29. 根据权利要求28任意一项所述的方法,其特征在于,The method according to any one of claim 28, characterized in that
    所述调制码的一个码片宽度等于所述载波的一个周期。One chip width of the modulation code is equal to one period of the carrier.
  30. 根据权利要求29任意一项所述的方法,其特征在于,The method according to any one of claim 29, characterized in that
    在所述对第二超声换能器接收到的超声波信号进行采样的过程中,采样周期为所述载波的一个周期的四分之一。In the process of sampling the ultrasonic signal received by the second ultrasonic transducer, the sampling period is one quarter of a period of the carrier.
  31. 一种超声波雷达装置,其特征在于,包括:An ultrasonic radar device, characterized in that it comprises:
    如权利要求1至12中任意一项所述的超声波传感器芯片;The ultrasonic sensor chip according to any one of claims 1 to 12;
    第一超声换能器,所述第一超声换能器的输入端电连接于所述超声波传感器芯片的输出端,用于接收所述调制波并发射超声波信号;A first ultrasonic transducer, wherein an input end of the first ultrasonic transducer is electrically connected to an output end of the ultrasonic sensor chip, and is used to receive the modulated wave and transmit an ultrasonic signal;
    第二超声换能器,所述第二超声换能器的输出端电连接于所述超声波传感器芯片的输入端,所述超声波传感器芯片用于采样所述第二超声换能器接收的超声波信号。A second ultrasonic transducer, wherein an output end of the second ultrasonic transducer is electrically connected to an input end of the ultrasonic sensor chip, and the ultrasonic sensor chip is used to sample the ultrasonic signal received by the second ultrasonic transducer.
  32. 根据权利要求31所述的装置,其特征在于,还包括:The device according to claim 31, further comprising:
    微处理芯片,所述微处理芯片的输出端电连接于所述超声波传感器芯片的输入端,所述微处理芯片的输入端电连接于所述超声波传感器芯片的输出端;所述超声波传感器芯片接收所述微处理芯片的触发信号而产生所述调制波,所述超声波传感器芯片还用于向所述微处理芯片发送接收到指定回波的所述反馈信号。A microprocessor chip, wherein the output end of the microprocessor chip is electrically connected to the input end of the ultrasonic sensor chip, and the input end of the microprocessor chip is electrically connected to the output end of the ultrasonic sensor chip; the ultrasonic sensor chip receives the trigger signal of the microprocessor chip to generate the modulated wave, and the ultrasonic sensor chip is also used to send the feedback signal of receiving the specified echo to the microprocessor chip.
  33. 根据权利要求31所述的装置,其特征在于,The device according to claim 31, characterized in that
    所述微处理芯片包括第一计时器,所述微处理芯片获得所述第一计时器的计时时长和接收到的所述反馈信号获得障碍物距离。The microprocessor chip includes a first timer, and the microprocessor chip obtains the obstacle distance by obtaining the timing duration of the first timer and the received feedback signal.
  34. 根据权利要求31至33中任意一项所述的装置,其特征在于,包括多个所述超声波传感器芯片、多个所述第一超声波换能器和多个所述第二超声波换能器。The device according to any one of claims 31 to 33 is characterized by comprising a plurality of the ultrasonic sensor chips, a plurality of the first ultrasonic transducers and a plurality of the second ultrasonic transducers.
  35. 一种超声波雷达装置,其特征在于,包括:An ultrasonic radar device, characterized by comprising:
    如权利要求13至21中任意一项所述的超声波传感器芯片;The ultrasonic sensor chip according to any one of claims 13 to 21;
    第一超声换能器,电连接于所述超声波传感器芯片以接收所述调制波,并用于根据所述调制波发射超声波信号;a first ultrasonic transducer, electrically connected to the ultrasonic sensor chip to receive the modulated wave, and used to transmit an ultrasonic signal according to the modulated wave;
    第二超声换能器,电连接于所述超声波传感器芯片,以将接收到的超声波信号传输给所述超声波传感器芯片。The second ultrasonic transducer is electrically connected to the ultrasonic sensor chip to transmit the received ultrasonic signal to the ultrasonic sensor chip.
  36. 根据权利要求35所述的装置,其特征在于,还包括: The device according to claim 35, further comprising:
    微处理芯片,电连接于所述超声波传感器芯片;所述超声波传感器芯片接收所述微处理芯片的触发信号而产生所述调制波,所述超声波传感器芯片还用于向所述微处理芯片发送接收到指定回波的反馈信号。The microprocessor chip is electrically connected to the ultrasonic sensor chip; the ultrasonic sensor chip receives the trigger signal of the microprocessor chip to generate the modulated wave, and the ultrasonic sensor chip is also used to send a feedback signal of receiving a specified echo to the microprocessor chip.
  37. 根据权利要求36所述的装置,其特征在于,The device according to claim 36, characterized in that
    所述微处理芯片包括第一计时器,所述微处理芯片还用于,根据所述第一计时器的计时时长和所述指定回波的反馈信号计算障碍物距离。The microprocessor chip includes a first timer, and the microprocessor chip is further used to calculate the obstacle distance according to the timing duration of the first timer and the feedback signal of the designated echo.
  38. 根据权利要求35至37中任意一项所述的装置,其特征在于,包括多个所述超声波传感器芯片、多个所述第一超声波换能器和多个所述第二超声波换能器。 The device according to any one of claims 35 to 37, characterized in that it comprises a plurality of the ultrasonic sensor chips, a plurality of the first ultrasonic transducers and a plurality of the second ultrasonic transducers.
PCT/CN2023/137767 2022-12-23 2023-12-11 Ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device WO2024131580A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202223469969.2 2022-12-23
CN202211667704.5 2022-12-23

Publications (1)

Publication Number Publication Date
WO2024131580A1 true WO2024131580A1 (en) 2024-06-27

Family

ID=

Similar Documents

Publication Publication Date Title
US11231493B2 (en) Methods and apparatus for narrowband ranging systems using coarse and fine delay estimation
US8427905B2 (en) Optimum pseudo random sequence determining method, position detection system, position detection method, transmission device and reception device
CN107015230A (en) A kind of ultrasonic ranging method
US20170350739A1 (en) Measurement apparatus, measurement method, and program
CN108519601A (en) Distance measuring method, device and distance mearuring equipment
WO2024131580A1 (en) Ultrasonic sensor chip, ultrasonic signal processing method and ultrasonic radar device
US11525885B2 (en) Processing radar signals
US7054229B2 (en) Multi-line towed acoustic array shape measurement unit
CN218974595U (en) Ultrasonic sensor chip and ultrasonic radar device
US7254494B2 (en) Ultrasonic signal processing method and applications thereof
CN105919624B (en) A kind of high impulse repeats the coding and device of scanning frequency signal
US7239580B2 (en) Noise adaptive sonar signal processor
CN116338656A (en) Ultrasonic sensor chip and ultrasonic radar device
WO2017134828A1 (en) Measuring device, measuring method and measuring program
US11531086B2 (en) Device and method for processing radar signals
CN103969648A (en) Anti-noise ultrasonic distance measurement device and method
CN109639318A (en) Removing method, device, equipment and the storage medium of air communications disturbing pulse
JP2023140912A (en) Distance measuring device, distance measuring method and program
JP2021162351A (en) Object detection system
CN112230238B (en) Laser intensity modulation distance and speed measuring method and system, terminal device and storage medium
CN210835234U (en) Ultrasonic ranging module with RGB lamp
CN113067955B (en) Communication device and echo cancellation method
CN110221279A (en) A kind of ultrasonic transducer automatic checkout system and detection method
CN114167424A (en) Sound wave distance measuring method, device and system
CN115932810A (en) Echo signal detection method, chip and device of ultrasonic sensor