WO2021168866A1 - Anti-interference distance measuring device and method - Google Patents

Anti-interference distance measuring device and method Download PDF

Info

Publication number
WO2021168866A1
WO2021168866A1 PCT/CN2020/077360 CN2020077360W WO2021168866A1 WO 2021168866 A1 WO2021168866 A1 WO 2021168866A1 CN 2020077360 W CN2020077360 W CN 2020077360W WO 2021168866 A1 WO2021168866 A1 WO 2021168866A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
random number
phase
baseband signal
ranging
Prior art date
Application number
PCT/CN2020/077360
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 华为技术有限公司
Priority to PCT/CN2020/077360 priority Critical patent/WO2021168866A1/en
Priority to CN202080093633.5A priority patent/CN115004054A/en
Publication of WO2021168866A1 publication Critical patent/WO2021168866A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • G01S17/32Systems determining position data of a target for measuring distance only using transmission of continuous waves, whether amplitude-, frequency-, or phase-modulated, or unmodulated
    • G01S17/36Systems determining position data of a target for measuring distance only using transmission of continuous waves, whether amplitude-, frequency-, or phase-modulated, or unmodulated with phase comparison between the received signal and the contemporaneously transmitted signal
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/89Lidar systems specially adapted for specific applications for mapping or imaging
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/483Details of pulse systems
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/125Discriminating pulses
    • H03K5/1252Suppression or limitation of noise or interference

Definitions

  • This application relates to the technical field of distance measurement, and in particular to an anti-interference distance measurement device and method.
  • Time of flight imaging (TOF imaging) technology is an active imaging method, that is, the camera system emits laser light to the target object, and the distance to the target is calculated by measuring the time when the sensor receives the reflected light from the target.
  • TOF imaging Time of flight imaging
  • actively modulated light for illumination in order to obtain higher measurement accuracy and resolution, it is necessary to reduce the influence of noise and interference on the output result.
  • CDM Code Division Multiplexing
  • BPSK Binary Phase Shift Keying
  • Pixel modulation signals are sent in groups, and the waveform frequency between each group is fixed, but the phase is only 0 degrees and 180 degrees, and there is no gap time.
  • the phase of the random jump is controlled by any kind of pseudo-random number or a binary random number generated by a random number generator (for example, binary 0 corresponds to a phase of 0 degrees, and binary 1 corresponds to a phase of 180 degrees).
  • the random number sequence may be too long, and there will be a long continuous 0 or continuous 1 in the too long random number sequence, and the possibility of interference with such a long continuous signal will be Greatly increase, affecting the anti-jamming effect.
  • the embodiments of the present application provide an anti-interference ranging device and method, which can improve the anti-interference ability of the TOF camera in the case of multiple TOF cameras in the range measurement.
  • an anti-interference ranging device which may include:
  • a pulse position modulator, a phase shift keying modulator connected to the pulse position modulator (in the embodiment of this application, a binary phase shift keying BPSK modulator is taken as an example for illustration.
  • the types of phase shift keying modulators include but Not limited to binary phase shift keying modulator);
  • the pulse position modulator is used to generate a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each of the one or more random numbers corresponds to one random number.
  • the pulse position of the baseband signal when the random number signal has multiple consecutive identical random numbers, there are M pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal Time interval, M is an integer greater than 0; the phase of the random number signal and the baseband signal are synchronized;
  • the phase shift keying modulator is used to modulate a carrier signal and the baseband signal to generate a first signal; wherein, the first signal is used to drive a light emitter to generate a first pulsed light, and the first Pulsed light is used to illuminate the object to be measured.
  • the embodiment of the present application mainly adds a pulse position modulator (i.e. PPM modulator) to the anti-interference ranging device (such as a ranging chip) to reduce the continuous same random number, which causes the phase of the signal to be continuous and consistent, which affects the anti-interference ability of the signal.
  • PPM modulator receives a random number signal containing one or more random numbers, where each random number in the one or more random numbers corresponds to a pulse position of a baseband signal.
  • the PPM modulator makes the required pulse position appear in the corresponding position in the modulated output baseband signal, and makes a certain number of time intervals between the two pulse positions; in different cameras
  • the mapping relationship between the random number provided by the PPM modulator and the pulse position can be set to be different, so that the number of intervals between the two pulse positions in the baseband signal generated in each camera is different, thereby improving the resistance of the final output pulse light wave.
  • the interference performance enables the camera to effectively recognize the pulsed light waves emitted by itself and filter the pulsed light waves emitted by other cameras.
  • the embodiment of the present application does not limit the manner of determining the correspondence between the random number and the pulse position.
  • the random number is directly sent to the phase shift keying modulator; when continuous 0 or continuous 1 occurs, the first signal output by the phase shift keying modulator is between each group of signal waves
  • the phases may be the same continuously.
  • the operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, so that there will be no large errors in the ranging results.
  • the device further includes a phase-locked loop circuit connected to the phase-shift keying modulator; the phase-locked loop circuit is configured to generate the carrier signal according to a preset period, so The carrier signal is synchronized with the phase of the random number signal.
  • the phase-locked loop circuit is connected to the phase-shift keying modulator, and the carrier signal is generated through the phase-locked loop circuit, which is used to input phase-shift keying modulation for signal modulation, so as to output the first that meets the requirements. Signal.
  • the device further includes: a delay line circuit connected to the phase shift keying modulator; the delay line circuit is configured to determine the first phase delay value according to a preset phase delay value.
  • One signal undergoes multiple phase delay operations to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations corresponds to one pixel internal integration switch signal.
  • the first signal output by the phase shift keying modulation is delayed several times by the delay line circuit DLL, which is used to integrate the reflected light received subsequently, so as to calculate the difference between the object under test and the camera. The distance between.
  • the device further includes: a pixel array connected to the delay line circuit, and an optical lens connected to the pixel array; the optical lens is used to receive the second pulsed light, so The second pulsed light is the pulsed light reflected by the object to be measured; each pixel in the pixel array is used to determine the each pixel according to the internal integration switch signal of the plurality of pixels and the second pulsed light Multiple exposure signals corresponding to pixels.
  • a plurality of delayed switching signals and received second pulse light that is, the reflected first signal
  • the optical lens to receive the reflected second pulse light, used to further calculate the distance between the camera and the object.
  • the device further includes an analog-to-digital converter ADC connected to the pixel array; the ADC is used to convert multiple exposure signals corresponding to each pixel into multiple corresponding Digital signal.
  • the exposure signal ie, the analog signal
  • the relevant processing module can perform arithmetic processing on the digital signal to obtain the distance value.
  • the random number signal includes a plurality of random numbers lasting for a preset duration; the device further includes a random number generator connected to the pulse position modulator; the random number generator , Configured to generate the multiple random numbers lasting for a preset duration according to the random number generation period, where the preset duration is the same as the value of the random number generation period.
  • a random number generator is used to generate multiple random numbers, which are used to change the phase of each group of signal waves in the first signal, so that the anti-interference ability of the first signal is enhanced.
  • the random number signal includes a plurality of pseudo-random numbers lasting for a preset period of time; the device further includes a pseudo-random number generator connected to the pulse position modulator; the pseudo-random The number generator is used to generate a plurality of pseudorandom numbers for a preset duration according to the pseudorandom number generation period, the pseudorandom number period, and a preset initial pseudorandom number; the preset duration and the pseudorandom number generation The value of the period is the same.
  • multiple pseudo-random numbers are generated through a pseudo-random number generator and preset related generation parameters (such as pseudo-random number cycle period, etc.), which are used to change the phase of each group of signal waves in the first signal. The anti-interference ability of the first signal is enhanced.
  • the phases of the carrier signal and the baseband signal are synchronized.
  • the two by controlling the phase synchronization of the carrier signal and the baseband signal, it is convenient for the two to be integrated in the BPSK modulator to generate the first signal that meets the requirements.
  • the pulse position modulator is specifically configured to: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, transform the random number signal Modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is among a plurality of preset modulation orders
  • Each of the multiple mapping relationship tables includes the mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables and the multiple The preset modulation order corresponds to one by one.
  • the mapping relationship between the random number and the pulse position of the baseband signal is determined by the first modulation order (such as 2nd order, 4th order); in the case of continuous identical random numbers, it is beneficial to the same in the baseband signal.
  • a time interval is generated before the pulse position and does not repeat continuously.
  • the PPM modulator will receive the random number signal and determine the pulse position of the baseband signal corresponding to the random number in the first mapping relationship table (corresponding to the first modulation order), and then output the modulated baseband signal.
  • the first mapping relationship table may be determined in multiple mapping relationship tables by the first modulation order; wherein, the mapping relationship table and the modulation order may both be pre-stored data; or further based on the known first modulation order. Determine the required first mapping table. Different modulation orders correspond to different mapping tables, and each mapping table contains the form of random numbers and the pulse position corresponding to each random number.
  • an embodiment of the present application provides an anti-interference ranging method, including:
  • the random number signal includes one or more random numbers, and each random number in the one or more random numbers corresponds to a pulse position of the baseband signal;
  • M is an integer greater than 0 ;
  • the carrier signal and the baseband signal are modulated to generate a first signal; wherein, the first signal is used to drive the light emitter to generate first pulsed light, and the first pulsed light is used to illuminate the object to be measured.
  • the first signal may include multiple sets of pulse waves (such as multiple sets of square waves).
  • the method further includes: controlling a light emitter to emit the first pulsed light according to the first signal.
  • the method further includes: generating the carrier signal according to a preset period, and the carrier signal is synchronized with the phase of the random number signal.
  • the method further includes: performing multiple phase delay operations on the first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; the multiple phase delay operations Each operation in the delay operation corresponds to a pixel internal integration switch signal.
  • the method further includes: receiving second pulsed light, where the second pulsed light is pulsed light reflected by the object to be measured; The second pulsed light determines a plurality of exposure signals corresponding to each pixel.
  • the method further includes: converting multiple exposure signals corresponding to each pixel into multiple corresponding digital signals.
  • the method further includes: receiving the corresponding multiple digital signals; obtaining the phase delay of the second pulsed light according to a ranging algorithm, and obtaining the phase delay of the second pulsed light according to the frequency of the second pulsed light Calculate the distance between the object to be measured and the anti-interference distance measuring device.
  • the method further includes: generating a plurality of pseudo-random numbers for a preset duration according to a pseudo-random number generation period, a pseudo-random number period, and a preset initial pseudo-random number; It is assumed that the duration is the same as the value of the pseudo-random number generation period.
  • the phases of the carrier signal and the baseband signal are synchronized.
  • the generating the baseband signal according to the random number signal includes: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, converting the random number signal
  • the signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is a plurality of preset modulation orders
  • Each of the multiple mapping relationship tables includes a mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables and the multiple There is a one-to-one correspondence with each preset modulation order.
  • an embodiment of the present application provides an anti-interference ranging system, which is characterized in that it includes:
  • Pulse position modulator a phase shift keying modulator connected to the pulse position modulator, a phase locked loop circuit connected to the phase shift keying modulator, and a delay line connected to the phase shift keying modulator A circuit, a pixel array connected to the delay line circuit, an analog-to-digital converter ADC connected to the pixel array, and a pseudo-random number generator connected to the pulse position modulator;
  • the pulse position modulator is used to generate a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each of the one or more random numbers corresponds to one random number.
  • the pulse position of the baseband signal when the random number signal has multiple consecutive identical random numbers, there are M pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal Time interval, M is an integer greater than 0; the phase of the random number signal and the baseband signal are synchronized;
  • the phase shift keying modulator is used to modulate a carrier signal and the baseband signal to generate a first signal; wherein, the first signal is used to drive a light emitter to generate a first pulsed light, and the first Pulsed light is used to illuminate the object to be tested;
  • the phase-locked loop circuit is configured to generate a carrier signal according to a preset period, and the carrier signal is synchronized with the phase of the random number signal;
  • the pseudo-random number generator is configured to generate a plurality of random numbers that last for a preset duration according to a pseudo-random number generation cycle, a pseudo-random number cycle, and a preset initial pseudo-random number; the preset duration and the random number The value of the number generation period is the same;
  • the delay line circuit is configured to perform multiple phase delay operations on the first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations corresponds to Integral switch signal inside a pixel;
  • Each pixel in the pixel array is configured to determine a plurality of exposure signals corresponding to each pixel according to the internal integration switch signal of the plurality of pixels and the second pulse light;
  • the ADC is used to convert multiple exposure signals corresponding to each pixel into multiple corresponding digital signals.
  • the system further includes a light source driver and an illuminator connected to the phase shift keying modulator, the illuminator is connected to the light source driver; the light source driver is configured to The first signal controls the light emitter to emit the first pulsed light.
  • the light source driver and the light emitter are connected with the phase shift keying modulator, and the light emitter is driven by the first signal to make the light emitter emit pulsed light with corresponding bright and dark information, which is used to illuminate the target object and measure the difference between the camera and the target object. The distance between.
  • the system further includes a ranging circuit connected to the ADC; the ranging circuit is configured to: receive the corresponding multiple digital signals; obtain the ranging algorithm according to the ranging algorithm; The phase of the second pulsed light is delayed, and the distance between the object to be measured and the anti-interference distance measuring device is calculated according to the frequency of the second pulsed light.
  • the distance between the camera and the object to be measured is obtained by calculating the received digital signal through the ranging circuit connected to the ADC.
  • the light emitter is a light emitting diode LED or a vertical cavity surface emitting laser VCSEL.
  • an optical device such as an LED or a VCSEL emits pulsed light with different brightness and darkness, so as to measure the distance of the object.
  • the system further includes: an optical lens connected to the pixel array; the optical lens is used to receive the second pulsed light, and the second pulsed light is the to-be-measured Pulse light reflected by objects.
  • the generating the baseband signal according to the random number signal includes: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, converting the random number signal
  • the signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is a plurality of preset modulation orders
  • Each of the multiple mapping relationship tables includes a mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables and the multiple There is a one-to-one correspondence with each preset modulation order.
  • an embodiment of the present application provides an electronic device, which may include: the anti-interference ranging device as described in the first or second aspect above, and a discrete device coupled to the outside of the anti-interference ranging device .
  • an embodiment of the present application provides a terminal, the terminal includes a processor, and the processor is configured to support the terminal to perform a corresponding function in the anti-interference ranging method provided in the third aspect.
  • the terminal may also include a memory, which is used for coupling with the processor and stores necessary program instructions and data for the terminal.
  • the terminal may also include a communication interface for the terminal to communicate with other devices or communication networks.
  • an embodiment of the present application provides a radar.
  • the radar may include the device described in the first aspect or the system described in the third aspect, for implementing the anti-interference detection provided by the device or the system. Distance function.
  • the radar may also include a memory coupled to the device or the system for storing program instructions and data necessary for the radar; the radar may also include an external power supply coupled to the device or the system, and the The external power supply is used to supply power to the radar.
  • an embodiment of the present application provides a vehicle equipped with the device described in the first aspect or the system described in the third aspect, and is used to implement the anti-interference ranging provided by the device or the system Function.
  • the vehicle may also include an automatic driving system for controlling the driving of the vehicle according to road conditions.
  • the vehicle may also include an external discrete device coupled to the device or the system.
  • the embodiments of the present application provide a method for continuous wave exposure modulation four times; it may include phase 0° exposure, phase 180° exposure, phase 90° exposure, and phase 270° exposure respectively in the continuous wave. Specifically, continuous wave phase 0° and phase 180° exposure, phase 90° and phase 270° exposure, phase 180° and phase 0° exposure, and phase 270° and phase 90° exposure are sequentially performed.
  • an embodiment of the present application provides a method for continuous wave exposure and modulation twice; it may include phase 0° exposure, phase 180° exposure, exposure, and phase 270° exposure respectively in the continuous wave.
  • the continuous wave is sequentially exposed with a phase of 0° and a phase of 180°, and the phase is exposed with a phase of 90° and a phase of 270°.
  • an embodiment of the present application provides a method for pulse wave exposure and modulation twice; it can be included in the pulse wave, and the phase 180° and the phase 0° are respectively exposed and modulated.
  • the continuous wave is sequentially exposed at a phase of 0° and a phase of 180°, and exposed at a phase of 180° and a phase of 0°.
  • an embodiment of the present application provides a pulse wave exposure and modulation method once; it may be included in the pulse wave, and the phase 0° and the phase 180° are respectively exposed. Specifically, the phase 0° and the phase 180° are exposed in the order of exposure. Optionally, the phase 180° and the phase 0° are exposed according to another exposure sequence.
  • FIG. 1 is a schematic diagram of a TOF application scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of another TOF application scenario provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another TOF application scenario provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a multi-camera ranging scene based on FIG. 3 provided by an embodiment of the present application;
  • FIG. 5 is a schematic diagram of the architecture of a multi-camera ranging system provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an anti-interference ranging device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an anti-interference ranging device provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a transmitting end provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a binary random number signal provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a random number signal and a carrier signal provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a PPM modulation provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a waveform of a BPSK modulator provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another anti-interference ranging device provided by an embodiment of the present application.
  • FIG. 14 is a schematic flowchart of a receiving end provided by an embodiment of the present application.
  • 15 is a schematic diagram of signals of a first pulsed light and a second pulsed light provided by an embodiment of the present application;
  • FIG. 16 is a schematic diagram of a signal using a square wave signal as an example according to an embodiment of the present application.
  • FIG. 17 is a schematic diagram of a DLL structure provided by an embodiment of the present application.
  • FIG. 18 is a schematic diagram of another TOF ranging principle provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of four continuous wave exposure modulation provided by an embodiment of the present application.
  • 20 is a schematic diagram of two continuous wave exposure modulation provided by an embodiment of the present application.
  • FIG. 21 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application.
  • FIG. 22 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application.
  • FIG. 23 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application.
  • FIG. 24 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application.
  • FIG. 25 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • first”, “second”, “third” and “fourth” in the specification and claims of this application and the drawings are used to distinguish different objects, not to describe a specific order ; And the objects described by the terms “first”, “second”, “third” and “fourth” may also be the same objects, or contain each other or have other relationships.
  • the terms “including” and “having” and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
  • component used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution.
  • the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor.
  • the application running on the computing device and the computing device can be components.
  • One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed among two or more computers.
  • these components can be executed from various computer readable media having various data structures stored thereon.
  • the component can be based on, for example, a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • Binary Phase Shift Keying is one of the conversion methods for converting analog signals into data values. It uses a combination of complex waves that deviate from the phase to express the information keying phase shift method.
  • BPSK uses a standard sine wave and a phase-reversed wave, making one side 0 and the other side 1, so that two-value (1 bit) information can be transmitted and accepted at the same time.
  • Pulse Position Modulation by modulating the signal, only the generation time of each pulse in the carrier pulse series is changed, without changing its shape and amplitude, and the proportion of the change in the generation time of each pulse Regarding the amplitude of the modulating signal voltage, it has nothing to do with the frequency of the modulating signal.
  • VSEL Vertical-Cavity Surface-Emitting Laser
  • the random number is the result of a special random experiment.
  • the most important characteristic of random numbers is that the number behind it has nothing to do with the number in front.
  • Pseudo-random numbers are calculated from a uniformly distributed random number sequence from [0,1] using a deterministic algorithm. It is not truly random, but has statistical characteristics similar to random numbers, such as uniformity and independence.
  • the baseband signal is the original electrical signal sent by the information source without modulation (spectrum shifting and transformation). It is characterized by a low frequency. The signal spectrum starts near zero frequency and has a low-pass form.
  • Carrier refers to the waveform that is modulated to transmit the signal.
  • the frequency band of the baseband signal is very wide (infinitely wide in theory), but due to the bandpass, there is almost no transmission medium with infinite bandwidth, so the baseband signal cannot be transmitted over a long distance on the ordinary medium, otherwise the inter-symbol interference and attenuation cannot be used.
  • the signal is recovered, so the baseband signal is modulated with the carrier to reduce the bandwidth, so that the signal can be transmitted reliably, and the attenuation can be reduced.
  • the receiving end will demodulate and restore the original digital signal.
  • Delay-locked loop (DLL) technology is widely used in the field of timing, and it is a delay line with a controllable delay.
  • the delay line is an element or device used to delay an electrical signal for a period of time.
  • the delay line should have flat amplitude-frequency characteristics and certain phase shift characteristics (or delay frequency characteristics) in the passband, with appropriate matching impedance and small attenuation.
  • Analog-to-digital conversion that is, A/D converter, usually refers to an electronic component that converts an analog signal into a digital signal.
  • the usual analog-to-digital converter converts an input voltage signal into an output digital signal. Since the digital signal itself has no practical meaning, it only represents a relative magnitude. Therefore, any analog-to-digital converter needs a reference analog quantity as the conversion standard, and the most common reference standard is the largest convertible signal size.
  • the output digital quantity represents the magnitude of the input signal relative to the reference signal.
  • Pseudo-random number cycle refers to the number of pseudo-random numbers that do not repeat in a pseudo-random number sequence with periodic recurring cycles, or the number of numbers contained in a cycle in the iterative process of generating pseudo-random numbers.
  • Binary On-Off Keying also known as Binary Amplitude Keying, uses a unipolar non-return-to-zero code sequence to control the opening and closing of the sinusoidal carrier.
  • phase-shift keying Among multiple phase-shift keying (MPSK), the most commonly used is quadrature phase-shift keying, namely QPSK (Quadrature Phase Shift Keying), which is QPSK when transmitting digital TV signals in satellite channels. Modulation. It can be regarded as composed of two 2PSK modulators.
  • the input serial binary information sequence is converted into two-way rate halved sequence after serial-parallel conversion.
  • the level converter generates bipolar two-level signals I(t) and Q(t) respectively, and then the carrier Acos2 ⁇ fct It is modulated with Asin2 ⁇ fct, and the QPSK signal can be obtained after the addition.
  • Three-dimensional (3-dimension, 3D) refers to the three axes of the coordinate axis, namely x-axis, y-axis, and z-axis, where x represents left and right space, y represents upper and lower space, and z represents front and rear space.
  • the X axis is generally used to describe the left and right movement
  • the Z axis is used to describe the up and down movement
  • the Y axis is used to describe the front and back movement, forming a person's visual three-dimensional sense.
  • Phase is the position of a wave in its cycle at a specific moment, that is, a scale of whether it is at the peak, trough or some point between them. Phase describes the measurement of signal waveform change, usually in degrees (angle), also known as phase angle. When the signal waveform changes in a periodic manner, the waveform cycle is 360°.
  • Time of flight (ToF) ranging method is a two-way ranging technology, which mainly uses the flight time between two asynchronous transceivers (Transceiver) (or reflected surface) to measure inter-node distance.
  • Traditional ranging technology is divided into two-way ranging technology and one-way ranging technology.
  • RSSI Receiveived Signal Strength Indication
  • RSSI Received Signal Strength Indication
  • the ToF ranging method has two key constraints: one is that the sending device and the receiving device must always be synchronized; the other is the length of the signal transmission time provided by the receiving device.
  • the ToF ranging method uses a clock offset to solve the clock synchronization problem.
  • Scenario 1 Applied to vehicles and related systems.
  • TOF time-of-flight
  • the system mounted on the vehicle can accurately detect the driver's body and head position, and even capture the blinking motion of the driver when he wears glasses or sunglasses to determine whether the driver is paying attention Enough concentration and whether you are driving with fatigue, so as to initiate corresponding countermeasures. For example, by vibrating the seat or warning sound. The less the driver’s attention is, the more the car will pay attention.
  • the auxiliary system and the emergency braking system can be automatically activated before a potential emergency occurs.
  • the technology can also control the in-vehicle entertainment system or car air conditioner through hand movement or body posture, and even implement new auxiliary and safety functions outside the car, such as door opening assist devices, to prevent the car door from opening when in a parking lot or a home basement. After hitting another car, wall or ceiling.
  • new auxiliary and safety functions outside the car such as door opening assist devices
  • FIG. 1 is a schematic diagram of a TOF application scenario provided by an embodiment of the present application.
  • a vehicle equipped with a TOF system or TOF camera
  • the vehicle equipped with TOF can measure the previous vehicle through this technology The distance D.
  • the distance D is less than the preset safety distance, reduce the vehicle speed or stop.
  • the vehicle equipped with TOF can be an unmanned car.
  • Scenario 2 Applied in the field of human-computer interaction.
  • TOF provides a real-time remote image, so it can be used very simply to record human movements. This makes many consumer electronic products (such as TV) have a new way of interaction.
  • the TOF sensor By carrying the TOF sensor, the depth data of the target object can be obtained. Specifically, the infrared projector continuously sends out infrared pulses, and the phase delays of the infrared pulses reflected on objects at different distances are inconsistent. Then the infrared sensor is used to receive the feedback message, and the pulsed light with different phase delays will be received by the four-phase on the infrared sensor and output different phase values. In this way, the depth information of the object captured by each pixel is determined, and objects of different depths can be distinguished.
  • the application of this technology can realize human-computer interaction, and the application in games is more extensive.
  • FIG. 2 is a schematic diagram of another TOF application scenario provided by an embodiment of the present application; as shown in FIG. 2, a display equipped with a TOF system can recognize movement changes of a human object.
  • the TOF camera is used to recognize the movement of the human object, so as to realize the corresponding control of the character in the game.
  • Scenario 3 Applied in machine vision.
  • FIG. 3 is a schematic diagram of another TOF application scenario provided by an embodiment of the present application; in the 3D scenario shown in the figure, electromagnetic waves are emitted to the seat through the TOF system, and then the foregoing is received by the receiver. Electromagnetic wave feedback signal. In the TOF system, the time is calculated by a timer. Calculate the distance between the seat and the TOF camera based on the aforementioned information.
  • FIG. 4 is a schematic diagram of a multi-camera ranging scene based on FIG. 3 provided by an embodiment of the present application; as shown in FIG.
  • the distance signal 1 is used to measure the distance between the camera 1 and the target object according to the reflected signal 1'.
  • the camera 2 sends a signal 2 to the target object, and the distance between the camera 2 and the target object is measured according to the received signal 2'.
  • the camera 1 may receive the feedback signal 2'of the signal 2 sent by the camera 2, resulting in deviation of the distance measurement.
  • the active light emitted by TOF module 1 is likely to be received by another TOF module (such as module 2). If module 2 is exposed If the pulsed light wave emitted by the module 1 is received, the result will be wrong when the distance measurement calculation is performed.
  • FIGS. 1 to 4 are only an exemplary scenario in the embodiment of the present application, and the application scenarios in the embodiment of the present application include but are not limited to the above application scenarios.
  • FIG. 5 A schematic diagram of the camera ranging system architecture; as shown in FIG. 5, the system architecture includes a ranging module 1 (that is, a TOF module, applied to a depth camera, that is, a TOF camera) and a ranging module 2.
  • a ranging module 1 that is, a TOF module, applied to a depth camera, that is, a TOF camera
  • a ranging module 2 that is, a TOF camera
  • the embodiments of the present application are applied to a ranging system with multiple TOF cameras.
  • the embodiment of the present application allows the pixel reference waveforms emitted by each camera to be orthogonal to each other when performing distance measurement, so that the camera will not be affected by interference signals when performing TOF exposure (related reception) Influence.
  • the ranging module 1 and the ranging module 2 have the same structural composition, and the embodiment of the present application takes one of the ranging module (such as the ranging module 1) as an example for description.
  • the ranging module includes a light emitter, a light source driver, a ranging chip and a lens.
  • the ranging module 1 includes a light emitter 1, a light source driver 1, a ranging chip 1, and a lens 1.
  • the architecture of the multi-camera ranging system may also include multiple other ranging modules. In FIG. 5, two ranging modules are used as an example for illustration.
  • the ranging chip may also include a controller, a pixel array, and an analog-to-digital converter; where, taking the ranging chip 1 as an example, the controller 1 sends a driving signal to the laser driver (or light source driver) 1, and the laser driver 1 controls The laser 1 transmits pulsed light containing bright and dark information (that is, corresponding to the driving signal). After the pulsed light irradiates the target object and is reflected, the reflected pulsed light is received by the lens 1. At this time, the pixel array 1 calculates the signal result according to the delayed drive signal generated by the controller 1 and the received reflected pulse light, and outputs an analog signal. The analog signal is converted into a digital signal by the analog-to-digital converter 1 to perform the next calculation of the distance result.
  • the controller 1 sends a driving signal to the laser driver (or light source driver) 1, and the laser driver 1 controls The laser 1 transmits pulsed light containing bright and dark information (that is, corresponding to the driving signal). After the pulsed light irradiates the
  • system architecture in FIG. 5 is only an exemplary implementation in the embodiment of the present application, and the system architecture in the embodiment of the present application includes but is not limited to the above system architecture.
  • FIG. 6 is a schematic diagram of the architecture of an anti-interference ranging device provided by an embodiment of the present application; as shown in FIG. 6, the system architecture is illustrated by taking the ranging module 1 as an example, which includes ranging
  • the module 10 (corresponding to the distance measurement module 1 in FIG. 5) and the distance measurement circuit (or called the distance measurement module) 20; specifically, the distance measurement module 10 may include a distance measurement chip 101 (corresponding to the distance measurement module in FIG. 5). Chip 1), light source driver 102 (corresponding to light source driver 1 in FIG. 5), light emitter 103 (corresponding to light emitter 1 in FIG. 5), and the lens (corresponding to distance measuring module 1 in FIG. 5).
  • a general lens can include Filter) 104. in,
  • the ranging chip 1 (101) can include: random/pseudo-random number generator 1010, PPM modulator (ie pulse position modulator or pulse position modulator) 1011, BPSK modulator (ie binary phase shift keying modulator) ) 1012, a phase-locked loop circuit 1013, a delay line circuit DLL1014, a pixel (pixel) array 1015, and an analog-to-digital converter 1016.
  • PPM modulator ie pulse position modulator or pulse position modulator
  • BPSK modulator ie binary phase shift keying modulator
  • the reflected light is focused on the pixel array 1 (1015) through the lens 1 (104).
  • the pixel array 1 (1015) can use the same frequency (for example, 20MHz) but there is a phase delay (0 degree, 90 degree, 180 degree, 270 degree).
  • the switch circuit of the degree) integrates the received optical signal and outputs the corresponding value.
  • the phase delay caused by the flight time can be calculated through the phase calculation.
  • the random/pseudo-random number generator 1010 is used to generate a random number of the control signal phase; taking the random number generator as an example, the random number generator is used to generate a random number of 0 or 1 random number.
  • the pulse position modulator 1011 (hereinafter referred to as the PPM modulator) is used to generate a baseband signal with strong anti-interference ability according to the random number signal.
  • the PPM modulator When the same continuous random number (such as continuous "0" or continuous "01") appears in the random number signal, in the baseband signal, the phase in the signal band synchronized with the continuous same random number will not appear Continuous repetition (for example, the phases corresponding to 0, 0, and 0 are all 0 degrees, but due to the effect of the PPM modulator 1011, there will be a certain time interval between the 0 degree phase and the next 0 degree phase).
  • the pulse position corresponding to the random number can also be determined according to the pulse position mapping table of the random number.
  • a certain segment of the random number in the random number signal is "01011001", or It can be modulated by the PPM modulator 1011. It is understandable that "0", “00” and “001” can all be regarded as a kind of random number, which is not limited in the embodiment of the present application. ; And in the case of long continuous 0 or long continuous 1 in the random number signal, by adding the PPM modulator 1011, the phase difference between the pulsed light sent by each ranging camera becomes larger, even if the camera is illuminated by other cameras The pulsed light on the object can also be effectively filtered and shielded by the algorithm.
  • the random number signal is modulated into a baseband signal according to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, where the first mapping relationship table belongs to multiple One of the mapping relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each mapping relationship table in the plurality of mapping relationship tables includes each of the random The mapping relationship between the number and the pulse position of the baseband signal; the multiple mapping relationship tables correspond to the multiple preset modulation orders one-to-one.
  • the PPM modulator receives a random number signal and analyzes each random number in the random number signal.
  • the first mapping table in the PPM modulator determine the pulse position of the baseband signal corresponding to each random number in the random number signal; modulate the random number signal into a baseband signal.
  • the first mapping relationship table is related to the modulation order of the PPM modulator.
  • the 8th order modulation order corresponds to the 8th order mapping table
  • the 16th order modulation order corresponds to the 16th order mapping table.
  • the PPM modulator can store only one kind of modulation order and the mapping relationship table corresponding to this kind of modulation order; or store multiple modulation orders and one for each modulation order of the multiple modulation orders Mapping table.
  • the PPM modulator only stores several modulation orders; when the user selects a certain modulation order, a corresponding mapping relationship table is generated. The embodiment of the application does not limit this.
  • the phase shift keying modulator 1012 (ie, binary phase shift keying modulator) is used to modulate the carrier signal and the baseband signal to generate the first signal.
  • the phase shift keying modulator 1012 may include a binary phase shift keying modulator (the embodiment of this application is described as an example), a quaternary phase shift keying modulator, and an octal phase shift keying modulator. , Hexadecimal phase shift keying modulator or decimal binary phase shift keying modulator.
  • PSK modulation is to add the information of the modulation signal to the phase of the carrier.
  • the 0 phase of the carrier represents the "1" level of the modulation signal
  • the 180° phase represents the "0" level of the modulation signal.
  • each carrier with a specific phase represents N bits of information.
  • the phase-locked loop circuit 1013 is used to generate a carrier signal with a fixed period.
  • the pulse period of the square wave generated by the phase-locked loop circuit 1013 is Tp.
  • the delay line circuit DLL1014 is used to perform multiple phase delay operations on the aforementioned first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; each of the aforementioned multiple phase delay operations corresponds to a pixel internal Integral switch signal.
  • the pixel array 1 (1015) is used for integrating the delayed first signal and the first signal reflected by the target object, and outputting various simulation parameters for calculating the distance.
  • the analog-to-digital converter 1 (1016) is used to convert various analog parameters into digital parameters.
  • the ranging circuit 20 is used to obtain the distance between the ranging camera and the target object according to the digital parameters and the preset ranging algorithm or formula.
  • the distance measurement circuit is adopted in the hardware structure, the calculation of the input signal is completed through a certain circuit structure and the distance result is output.
  • the corresponding distance measurement function is completed through a software program, that is, the input signal is used as an operation parameter through a preset computer program or code, and then the corresponding distance result is output.
  • FIG. 6 is only an exemplary implementation in the embodiments of the present application, and the application scenarios in the embodiments of the present application include but are not limited to the above application scenarios.
  • the anti-interference ranging device can be applied to the transmitting end of the anti-interference ranging device.
  • the anti-interference ranging device includes a random/pseudo-random number generator 1010, a pulse position modulator 1011 (ie a PPM modulator), a binary phase shift keying modulator 1012 (ie a BPSK modulator), and a phase locked loop circuit 1013 , Laser driver 102 and light emitter 103.
  • the connection mode of each circuit or module can be as shown in Figure 7.
  • the device may include a random/pseudo-random number generator 1010, a phase-locked loop circuit 1013, a laser driver 102, and a light emitter 103.
  • FIG. 8 is a schematic flowchart of a transmitting end provided by an embodiment of the present application; as shown in FIG. 8, based on the structural relationship shown in FIG. 7, the following steps may be included:
  • Step 1 Set the random number generation period (Tr), pseudo-random number period (N), phase-locked loop pulse generation period (Tp), and PPM modulation order (M).
  • Step 2 The random number generator 1010 generates a random number R according to Tr, or the pseudo-random number generator 1010 generates a pseudo random number R according to Tr, a pseudo-random number period N and a preset initial state.
  • the parallel phase-locked loop circuit 1013 generates a square wave L with a pulse period of Tp according to Tp (for the BPSK modulator 1012, L is the carrier wave), and the L and R phases are synchronized.
  • Step 3 The PPM modulator 1011 outputs the modulated PPM signal P (for the BPSK modulator 1012, P is the baseband signal) according to the set modulation order M and the input signal R, and the P and L phases are synchronized.
  • Step 4 The BPSK modulator 1012 performs BPSK modulation on the carrier L and the baseband signal P, and outputs a modulated signal P1 (the P1 signal is a pulse sequence of digital 0 or 1).
  • Step 5 The P1 signal passes through the light source driver 102 to make the light emitter 103 (such as VCSEL or LED) emit pulsed light with corresponding bright and dark information.
  • the light emitter 103 such as VCSEL or LED
  • the aforementioned random/pseudo-random number generator 1010 is specifically used to generate a binary random number; the aforementioned binary random number controls the phase change of the baseband signal, and finally controls the phase of the waveform sent by the light emitter.
  • binary 0 corresponds to phase 0 degrees
  • binary 1 corresponds to phase 180 degrees.
  • a continuous binary random number can be regarded as a random number signal.
  • FIG. 9 is a schematic diagram of a binary random number signal provided by an embodiment of the present application; as shown in FIG. 9, high level 1 Represents the binary number 1, and the low level 0 represents the binary number 0.
  • Figure 9 lists three kinds of random number signals, including random number signal 1, random number signal 2 and random number signal 3; among them, each kind of random number signal is just a certain segment of the random number signal, which is used for example description Random numbers do not represent a certain rule; the appearance of 0 and 1 is random. The embodiment of the present application does not limit the random number in the random number signal.
  • the aforementioned device further includes a phase-locked loop circuit connected to the aforementioned BPSK modulator; the aforementioned phase-locked loop circuit is used to generate a carrier signal according to a preset period, and the aforementioned carrier signal is combined with the aforementioned random number signal.
  • the phase is the same.
  • the phases of the aforementioned carrier signal and the aforementioned baseband signal are synchronized.
  • the parallel phase-locked loop circuit 1013 is used to generate a square wave L with a pulse period of Tp according to Tp (for a BPSK modulator, L is the carrier), and L and R are phase synchronized (that is, a set of waveforms in L)
  • the duration is the same as the duration of a random number in the random number signal, and the generation time and end time are the same).
  • FIG. 10 which is a schematic diagram of a random number signal and a carrier signal provided by an embodiment of the present application; as shown in FIG. 10, each random number corresponds to a set of waveforms in the square wave L (generally a set of waveforms).
  • the waveform includes the entire high and low levels).
  • the square wave L is an unmodulated signal.
  • the random number signal in FIG. 10 is explained by taking a certain segment of random numbers in the random number signal 1 in FIG. 9 as an example.
  • the pulse position modulator 1011 is used to generate a baseband signal according to a random number signal.
  • the two consecutive sets of signals in the aforementioned baseband signal have different phases; optionally, the baseband signal is generated by combining the random number signal with the first mapping relationship table; wherein, The aforementioned random number signal includes one or more random numbers, and each random number corresponds to a phase of the aforementioned baseband signal.
  • the PPM modulator the same random number in the aforementioned random number signal corresponds to the discontinuous phase of the aforementioned baseband signal. Repeated multiple times; the phase of the aforementioned random number signal and the aforementioned baseband signal are synchronized.
  • the random number signal is modulated into the baseband signal according to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, wherein the first mapping relationship table includes each The mapping relationship between the random number and the pulse position of the baseband signal; the first mapping relationship table corresponds to the preset modulation order; the corresponding random number in the first mapping relationship table according to the random number signal
  • the pulse position modulates the random number signal into the baseband signal.
  • the first mapping relationship table is a fourth-order mapping relationship table; then, according to the modulation order 4, the fourth-order mapping relationship table among the multiple mapping relationship tables is determined to be the first mapping relationship table.
  • the modulation order may include multiple orders, for example, 2nd, 4th, 8th and so on.
  • the random number signal is modulated into the baseband signal according to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, wherein the first mapping relationship table Belongs to one of the multiple mapping relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each mapping relationship table in the multiple mapping relationship tables It includes a mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables correspond to the multiple preset modulation orders one-to-one.
  • the baseband signal is generated by combining the random number signal.
  • the device can pre-store multiple mapping relation tables and modulation orders corresponding to the multiple mapping relation tables one-to-one. After the modulation order is determined, the corresponding mapping relationship table can be obtained, which is used to further modulate the random number signal.
  • the PPM modulator stores multiple modulation orders and mapping relationship tables corresponding to the multiple modulation orders.
  • Table 1 is a mapping table of 2PPM modulation order provided in the embodiment of the present application; as shown in Table 1, for example, a random number 0 corresponds to 10 under a 2PPM mapping relationship; a random number 1 Corresponds to 01 under the 2PPM mapping relationship.
  • the random number generator When the random number generator generates multiple continuous random numbers 0, according to the mapping relationship provided in Table 1, the multiple continuous random numbers 0 are mapped into multiple continuous 10s. Then, for example, the modulated random number signal corresponding to continuous "000” is "101010", which can make 1 and 0 not appear continuously, so as to influence the phase of the final signal to be discontinuous. Please refer to FIG.
  • the random number signal 4 is "110001"; after PPM modulation, the baseband signal (that is, the pulse in the figure)
  • the position modulation signal, that is, the PPM signal, corresponds to the aforementioned signal P) is "010110101001", where "11” corresponds to "0101", making 1 discontinuous and repeating multiple times; "000” corresponds to "101010” making multiple zeros discontinuous Repetitions. To a certain extent, it reduces the occurrence of consecutive 1s or consecutive 0s. More specifically, a certain random number is "00"; according to the mapping rule of Table 1, the number sequence is "1010".
  • Table 2 is a mapping table of 4PPM modulation order provided by an embodiment of the present application.
  • the specific mapping relationship is shown in Table 2. Please refer to the corresponding description of Table 1, which will not be repeated here.
  • the embodiment of the present application does not limit the order of the modulation order, and the modulation order may also include 8PPM.
  • Table 1 and Table 2 are both a mapping relationship table corresponding to the modulation order; the embodiment of the present application does not limit how to determine the mapping relationship table.
  • a modulation order (such as 2nd order) and a corresponding mapping relationship table are preset in the PPM modulator; then, in the process of baseband signal modulation by the PPM modulator, according to the random number and the known two Order mapping table, generate baseband signal from the input random number signal.
  • a modulation order (such as fourth-order) is preset in the PPM modulator, but no corresponding mapping table is preset; then, during the operation of the PPM modulator, first according to the fourth-order modulation order Determine the fourth-order mapping relationship table.
  • the fourth-order mapping relationship table may be one of a plurality of mapping relationship tables stored in the memory of the ranging device (namely, the first mapping relationship table); or the ranging device obtains the fourth-order mapping relationship through the network or related algorithms.
  • the mapping relationship table corresponding to the modulation order. Then according to the random number signal and the fourth-order mapping relationship table, the random number signal is modulated into the required baseband signal.
  • BPSK modulator Binary phase shift keying modulator (hereinafter referred to as BPSK modulator), used to modulate the carrier signal (ie square wave L) and the aforementioned baseband signal (ie signal P) to generate a first signal (P1) containing multiple sets of pulse waves ); Among them, the phases of the two consecutive sets of pulse waves in the foregoing multiple sets of pulse waves are different.
  • FIG. 12 is a schematic diagram of the waveform of a BPSK modulator provided by an embodiment of the present application; as shown in FIG.
  • the square wave L, the pulse position modulation signal P, and the first signal P1 are all exemplary waveforms;
  • the random number signal shown in the figure is a segment of the random number signal, such as "00"; according to the aforementioned mapping rule, the pulse position modulation signal corresponding to "00" is "1010";
  • the square wave L shown in the figure is the carrier signal,
  • the pulse signal P1 is generated according to the carrier signal and the pulse position modulation signal.
  • 0 means not changing the phase corresponding to the square wave L
  • 1 means changing the phase corresponding to the square wave L pseudo 180°; therefore, the phase of the waveform relative to 1 in the pulse signal P1 becomes 180°.
  • there are many square wave pulses corresponding to one pulse signal P period in the embodiment of the present application, the multiple pulses in the figure are taken as an example for description.
  • FIG. 13 is a schematic structural diagram of another anti-interference ranging device provided by an embodiment of the present application; the anti-interference ranging device can be applied to the receiving end of the anti-interference ranging device.
  • the anti-interference ranging device may include a pulse position modulator (ie PPM modulator) 1011, a binary phase shift keying BPSK modulator 1012 connected to the pulse position modulator 1011, a delay line circuit DLL 1014, a pixel array 1015, and a ranging circuit 20.
  • the device may further include a pseudo-time-digital generator connected to the PPM modulator 1011, a phase-locked loop circuit 1013 connected to the BPSK modulator, a lens 104, and an analog-to-digital converter 1016.
  • FIG. 14 is a schematic flowchart of a receiving end provided by an embodiment of the present application; as shown in FIG. 14, the following steps may be included:
  • Step 1 Set the random number generation period (Tr), pseudo-random number period (N), phase-locked loop pulse generation period (Tp), and PPM modulation order (M).
  • Step 2 The random number generator 1010 generates a random number R according to Tr, or the pseudo-random number generator generates a pseudo random number R according to Tr, a pseudo-random number period N and a preset initial state.
  • a phase-locked loop circuit 1013 connected to the BPSK modulator 1012 is used to generate a carrier signal according to a preset period, and the phase of the carrier signal and the random number signal are the same.
  • the parallel phase-locked loop circuit 1013 generates a square wave L with a pulse period of Tp according to Tp (for the BPSK modulator 1012, L is the carrier wave), and the L and R phases are synchronized.
  • Step 3 The PPM modulator 1011 outputs the modulated PPM signal P (for the BPSK modulator 1012, P is the baseband signal) according to the set modulation order M and the input signal R, and the P and L phases are synchronized.
  • Step 4 The BPSK modulator 1012 performs BPSK modulation on the carrier L and the baseband signal P, and outputs a modulated signal P1 (the P1 signal is a pulse sequence of digital 0 or 1).
  • Step 5 The delay line circuit 1014 performs a time delay operation on the input P1, and outputs P2.
  • the DLL delay value of different TOF systems will be different. For example, the first exposure is not delayed, the second exposure is delayed by 1/4 cycle, the third exposure is delayed by 1/2 cycle, and the fourth exposure is delayed by 3/4. Period, the delay value can be preset or external input).
  • Step 6 The pixel array 1015 exposes the reflected light P1' collected through the lens according to the P2 (01 sequence) signal, and each pixel outputs an exposure value (P3 array).
  • Step 7 The analog-to-digital converter 1016 digitizes the P3 array signal once to obtain the P4 array, which is transmitted to the ranging circuit 20.
  • Step 8 After the ranging circuit receives the P4 arrays exposed under different DLL delays, the ranging algorithm is used to obtain the phase delay, and the distance of the object is calculated according to the operating frequency.
  • FIG. 15 is a schematic diagram of a first pulsed light and a second pulsed light signal provided by an embodiment of the present application; as shown in FIG. 15, it is assumed that the infrared continuous light signal emitted by the light emitter 103 (corresponding to the The transmitted signal, that is, the first pulsed light) is a cosine or square wave signal after passing the modulation, and the signal can be expressed by formula (1).
  • the signal reflected from the target object will produce an offset, partly due to the illumination of the background light; and a modulated cosine signal with phase delay, which is reflected back to the sensor after the transmitted signal illuminates the target scene It is caused by the middle distance; the reflected signal (corresponding to the received signal in the figure, that is, the second pulsed light) can be expressed by formula (2).
  • the sensor By modulating the transmitted signal, the sensor receives and demodulates the signal with phase delay information reflected from the target scene to indirectly obtain the distance information.
  • the distance calculation is shown in formula (3).
  • FIG. 16 is a square wave signal provided by an embodiment of the present application as an example.
  • the waveform of the laser emission source is consistent with the waveform and phase of the pixel modulation signal, and the echo signal will cause a certain delay.
  • the device further includes a pixel array 1015 connected to the delay line circuit 1014; each pixel in the pixel array 1015 is used to determine each pixel according to the internal integration switch signals of the multiple pixels and the aforementioned second pulse light. Multiple exposure signals corresponding to one pixel.
  • a pixel array 1015 connected to the delay line circuit 1014; each pixel in the pixel array 1015 is used to determine each pixel according to the internal integration switch signals of the multiple pixels and the aforementioned second pulse light. Multiple exposure signals corresponding to one pixel.
  • the DDL1014 is used to delay the output of the signal by changing the phase, where each ⁇ corresponds to a delay;
  • the delay value and times are not limited; after the pulse is input, the input pulse is delayed according to the preset delay value and times, and one or more delay signals are output.
  • the process of TOF ranging and demodulation uses the correlation function method, using the transmitted signal as a reference signal, by obtaining the correlation function between the frequency-modulated transmission signal and the phase-shifted reflected signal after illuminating the target. The calculation is shown in formula (4).
  • the emitted light is a square wave with a certain frequency, and the retroreflected light has the same waveform as the emitted light, but it is delayed by a flight time later.
  • the reference signals inside the Pixel are modulated waveforms C1 ⁇ C4. These 4 reference signals are cross-correlated and integrated with the retroreflected light.
  • the output results are respectively: Q1 ⁇ Q4 (Q1 corresponds to formula 5, Q2 corresponds to formula 7, Q3 corresponds to formula 6, Q4 corresponds to formula 8).
  • Q1 corresponds to formula 5
  • Q2 corresponds to formula 7
  • Q3 corresponds to formula 6
  • Q4 corresponds to formula 8
  • Phase delay represents the propagation delay of light during flight.
  • modulation frequency is set to a fixed value, it is proportional to the distance to the target.
  • Offset B can be used to provide a conventional 2D intensity image and to indicate the amount of charge in the image sensor pixels.
  • Amplitude A represents the achievable depth resolution of direct measurement. The formulas obtained after conversion are shown in equations (9) to (11).
  • the distance D between the camera and the target object can be calculated according to formula (3). Since each pixel of the two-dimensional array image sensor can measure the distance information corresponding to the surface of the target scene, what actually gets is the depth distance image of the surface of the target scene. In order to reconstruct the three-dimensional information in the real scene, further processing of the data is needed.
  • the method adopted in this paper is to first use the camera calibration method to obtain the parameters of the camera, and finally calculate the three-dimensional coordinates according to the principle of small hole imaging combined with the obtained two-dimensional distance map.
  • the obtained formula can be expressed by formulas (12) to (14).
  • the device further includes an analog-to-digital converter ADC1016 connected to the pixel array 1015; the aforementioned ADC is used to convert the aforementioned multiple exposure signals into corresponding multiple digital signals.
  • the foregoing device further includes a ranging circuit 20 connected to the foregoing ADC; the foregoing ranging circuit 20 is configured to receive the foregoing corresponding multiple digital signals; obtaining the phase delay of the foregoing second pulsed light according to the ranging algorithm, The distance between the object to be measured and the anti-interference distance measuring device is calculated according to the frequency of the second pulsed light.
  • the LED modulated light source of the TOF imaging system when measuring objects in a target scene, emits a high-frequency infrared modulation signal to illuminate the target scene, and then the modulation signal is reflected back to the sensor surface to produce a distance-related phase difference.
  • the sensor receives and demodulates the phase difference caused during the flight, and then calculates the distance between the TOF sensor and the target based on known quantities such as the light flight rate and modulation frequency.
  • each pixel in the TOF image sensor array is required to independently receive and demodulate and The distance information or phase difference of the corresponding points on the surface of the object.
  • the same amount of distance information as the pixel resolution of the sensor image can be obtained, that is, the depth distance image and grayscale image of the target scene.
  • the ranging range is related to the frequency value of the transmitted signal.
  • the aforementioned device further includes an optical lens (ie, lens 104) connected to the aforementioned pixel array 1015; the aforementioned optical lens 104 is used to receive the aforementioned second pulsed light.
  • an optical lens ie, lens 104
  • the aforementioned optical lens 104 is used to receive the aforementioned second pulsed light.
  • a pulse position modulator that is, a PPM modulator
  • the PPM modulator receives the random number signal and the modulation order, and outputs the modulated baseband signal.
  • the modulation order in the case of multiple consecutive identical random numbers that may appear in the random number signal, the phases of consecutive groups of baseband signals in the output baseband signal will not be continuously the same, thereby improving the anti-interference ability of the signal.
  • the operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, which will not cause errors in ranging.
  • FIG. 18 is a schematic diagram of another TOF ranging principle provided by an embodiment of the present application; in addition to the continuous wave measurement principle, there is also a measurement method based on pulse modulation.
  • an echo signal is generated after the pulsed light source is illuminated; the pulsed light source is illuminated for a short period of time ( ⁇ t), and two inverted windows PH1 and PH2 are used at each pixel, with the same time interval ( ⁇ t) ) Sample the reflected energy. Measure the accumulated charges Q1 and Q2 during the sampling process, and use the following formula to calculate the distance:
  • the exposure modulation can be divided into 1, 2, 3, 4 or more times (here, 1 time refers to a set of continuous waveforms). Instead of a periodic waveform).
  • 1 time refers to a set of continuous waveforms.
  • Pulse wave exposure modulation 2 times Several typical combinations will be listed below: 1. Continuous wave exposure modulation 4 times; 2. Continuous wave exposure modulation 2 times; 3. Pulse wave exposure modulation 2 times; 4. Pulse wave exposure modulation 1 time.
  • the embodiments of the present application do not limit the number of exposure modulations based on other similar principles. It can be understood that if the pixels are spatially separated, that is, adjacent pixels are exposed to different phases, as long as the principle is the same, it is also included in the protection scope of the embodiments of the present application.
  • FIG. 19 is a schematic diagram of four continuous wave exposure modulation provided by an embodiment of the present application; as shown in FIG. 19, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°.
  • a 90 represents an exposure with a phase of 90°, and
  • a 270 represents an exposure with a phase of 270°.
  • a 0 A 180 means that TapA and TapB are exposed to phases of 0° and 180°, respectively, and A 180 A 0 means that TapA and TapB are exposed to phases of 180° and 0°, respectively.
  • continuous wave A 0 A 180 , A 90 A 270 , A 180 A 0 , A 270 A 90 and low-frequency continuous wave A 0 A 180 , A 90 A 270 are exposed in sequence.
  • the order can be exchanged.
  • the reason why the order of A 0 A 180 and A 180 A 0 is reversed during the modulation is mainly because the charge collection capacitor may be different for each TAP, which will affect the accuracy of the system.
  • the chopping technology can Eliminate the mismatch caused by the capacitance (gain error), set voltage, and background light at the charge collection site during reception, and improve the accuracy of depth information.
  • FIG. 20 is a schematic diagram of two continuous wave exposure modulation provided by an embodiment of the present application; as shown in FIG. 20, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°.
  • a 90 represents an exposure with a phase of 90°, and
  • a 270 represents an exposure with a phase of 270°.
  • the order of exposure modulation can be exchanged.
  • a 0 A 180 means that TapA and TapB perform exposure modulation of phase 0° and 180°, respectively, and
  • a 180 A 0 means that TapA and TapB perform exposure modulation of phase 180° and 0°, respectively.
  • the continuous wave A 0 A 180 and A 90 A 270 exposures are sequentially performed.
  • the order can be exchanged.
  • the reason why A 0 A 180 and A 90 A 270 were exposed during the exposure was mainly to reduce power consumption and increase the frame rate, but because the number of exposures was 2 times less than the method shown in Figure 19, the received The signal strength has also been doubled, so this exposure method will have a higher ranging error.
  • this example does not use chopping technology to eliminate the misalignment caused by process, device and environmental factors. The accuracy of the depth information will also be mismatched. Relatively lower.
  • the pulse modulation phase of TapA and TapB can be exchanged.
  • FIG. 21 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application.
  • a 0 represents an exposure with a phase of 0°
  • a 180 represents an exposure with a phase of 180°
  • a 0 A 180 means that TapA and TapB perform phase 0° and 180° exposure modulation respectively
  • a 180 A 0 means that TapA and TapB perform phase 180° and 0° exposure modulation respectively.
  • the order can be exchanged.
  • the reason why the order of A 0 A 180 and A 180 A 0 is reversed during the modulation is mainly because the charge collection capacitor may be different for each TAP, which will affect the accuracy of the system.
  • the chopping technology can Eliminate the mismatch caused by the capacitance (gain error), set voltage, and background light at the charge collection site during reception, and improve the accuracy of depth information.
  • FIG. 22 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application; as shown in FIG. 22, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°.
  • the chopping technology is not used to eliminate the imbalance caused by process, device and environmental factors. The accuracy of the depth information will be relatively reduced, but the power consumption will be reduced accordingly.
  • the pulse modulation phase of TapA and TapB can be exchanged.
  • FIG. 23 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application; the anti-interference ranging method is applied to an anti-interference ranging device (including the aforementioned system architecture). The following will describe from a single side of the transmitting end with reference to FIG. 23.
  • the method may include the following steps S2301-step S2305.
  • Step S2301 Generate a carrier signal according to a preset period.
  • a carrier signal of a fixed frequency is generated according to a preset carrier generation period, and the carrier signal of the generated fixed frequency is sent to the phase shift keying modulator.
  • the phase of the carrier signal and the random number signal are synchronized, so that the carrier signal and the baseband signal generated by the random number signal modulation are processed and the final light source driving signal is output, which is used to finally drive the light emitter to emit pulsed light.
  • Step S2302 According to the pseudo-random number generation period, the pseudo-random number period and the preset initial pseudo-random number, a plurality of pseudo-random numbers lasting for a preset period of time are generated.
  • a plurality of random numbers (or pseudo-random numbers) lasting for a preset period of time are generated according to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number.
  • the foregoing preset duration is the same as the value of the foregoing pseudo-random number generation period.
  • the aforementioned random number signal includes a plurality of pseudo-random numbers lasting for a preset period of time; the aforementioned method further includes: using a pseudo-random number generator to generate a period, a pseudo-random number period, and a preset period according to the pseudo-random number generator. Set the initial pseudo-random number to generate a plurality of pseudo-random numbers lasting for a preset duration; the aforementioned preset duration is the same as the value of the aforementioned pseudo-random number generation period.
  • Step S2303 Generate a baseband signal according to the random number signal.
  • the first mapping relationship table corresponding to the first modulation order is determined according to the first modulation order of the multiple modulation orders; and then according to the mapping of each random number in the random number signal in the first mapping relationship table Relation, determine the pulse position of the baseband signal corresponding to each random number, so as to modulate the entire random number signal into a baseband signal.
  • the phases of the two consecutive sets of signals in the aforementioned baseband signal are different; wherein, the aforementioned random number signal includes one or more random numbers, and each random number in the aforementioned random number signal corresponds to a phase of the aforementioned baseband signal, and the aforementioned modulation order
  • the number is used to control the continuous same random number in the random number signal corresponding to the phase of the baseband signal to repeat multiple times; the phase of the random number signal and the baseband signal are synchronized. For example, according to a preset modulation order, determine the mapping relationship between each of the random numbers and the pulse position of the baseband signal; determine that each random number in the random number signal is in the mapping relationship The corresponding pulse position of the baseband signal is modulated into the baseband signal.
  • the random number in the random number signal is determined by the pseudo-random number.
  • the random numbers or pseudo-random numbers in the embodiments of the present application have the same functions, and can only be considered to be different from the names, which does not affect the application of the embodiments of the present application.
  • the first modulation order is one of a plurality of preset modulation orders.
  • Step S2304 The carrier signal and the baseband signal are modulated to generate a first signal.
  • the baseband signal sent by the PPM modulator and the carrier signal sent by the phase-locked loop circuit are received, and the two synchronized signals are processed to generate the first signal (that is, the pulse signal that meets the ranging requirements).
  • the phases of the two consecutive sets of pulse waves in the foregoing multiple sets of pulse waves are different; the foregoing first signal is used to generate the first pulse light, and the foregoing first pulse light is used to illuminate the object to be measured.
  • the light emitter is controlled to emit the first pulsed light according to the first signal.
  • Step S2305 Control the light emitter to emit the first pulsed light according to the first signal.
  • the light source driver receives the first signal; driven by the first signal, the light source driver causes the light emitter to emit the first pulsed light.
  • the embodiment of the present application mainly adds a pulse position modulator (i.e. PPM modulator) to the anti-interference ranging device (such as a ranging chip) to reduce the continuous same random number, which causes the phase of the signal to be continuous and consistent, which affects the anti-interference ability of the signal.
  • PPM modulator receives a random number signal containing one or more random numbers, where each random number in the one or more random numbers corresponds to a pulse position of a baseband signal.
  • the PPM modulator makes the required pulse position appear in the corresponding position in the modulated output baseband signal, and makes a certain number of time intervals between the two pulse positions; in different cameras
  • the mapping relationship between the random number provided by the PPM modulator and the pulse position can be set to be different, so that the number of intervals between the two pulse positions in the baseband signal generated in each camera is different, thereby improving the resistance of the final output pulse light wave.
  • the interference performance enables the camera to effectively recognize the pulsed light waves emitted by itself and filter the pulsed light waves emitted by other cameras.
  • the embodiment of the present application does not limit the manner of determining the correspondence between the random number and the pulse position.
  • the random number is directly sent to the phase shift keying modulator; when continuous 0 or continuous 1 occurs, the first signal output by the phase shift keying modulator is between each group of signal waves
  • the phases may be the same continuously.
  • the operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, so that there will be no large errors in the ranging results.
  • the anti-interference ranging method described in the embodiment of the present application can refer to the relevant description of the anti-interference ranging device (transmitting end) in the foregoing device embodiment, and will not be repeated here.
  • FIG. 24 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application; the anti-interference ranging method is applied to an anti-interference ranging device (including the aforementioned system architecture). The following will describe from a single side of the receiving end with reference to FIG. 24.
  • the method may include the following steps S2401-step S2408.
  • Step S2401 Generate a carrier signal according to a preset period.
  • a carrier signal of a fixed frequency is generated according to a preset carrier generation period, and the carrier signal of the generated fixed frequency is sent to the phase shift keying modulator.
  • the carrier signal is synchronized with the phase of the random number signal, so that the carrier signal and the baseband signal generated by the random number signal modulation are processed and the final light source driving signal is output, which is used to finally drive the light emitter to emit pulsed light; the aforementioned carrier The signal has the same phase as the aforementioned random number signal.
  • Step S2402 According to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number, a plurality of pseudo-random numbers lasting for a preset period of time are generated.
  • a plurality of random numbers or pseudo-random numbers lasting for a preset period of time are generated according to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number.
  • the foregoing preset duration is the same as the value of the foregoing pseudo-random number generation period.
  • the aforementioned random number signal includes a plurality of pseudo-random numbers lasting for a preset period of time; the aforementioned method further includes: using a pseudo-random number generator to generate a period, a pseudo-random number period, and a preset period according to the pseudo-random number generator. Set the initial pseudo-random number to generate a plurality of pseudo-random numbers lasting for a preset duration; the aforementioned preset duration is the same as the value of the aforementioned pseudo-random number generation period.
  • Step S2403 Generate a baseband signal according to the random number signal.
  • the first mapping relationship table corresponding to the first modulation order is determined according to the first modulation order of the multiple modulation orders; and then according to the mapping of each random number in the random number signal in the first mapping relationship table Relation, determine the pulse position of the baseband signal corresponding to each random number, so as to modulate the entire random number signal into a baseband signal.
  • the phases of the two consecutive sets of signals in the aforementioned baseband signal are different; wherein, the aforementioned random number signal includes one or more random numbers, and each random number in the aforementioned random number signal corresponds to a phase of the aforementioned baseband signal, and the aforementioned modulation order
  • the number is used to control the continuous same random number in the random number signal corresponding to the phase of the baseband signal to repeat multiple times; the phase of the random number signal and the baseband signal are synchronized. For example, according to a preset modulation order, determine the mapping relationship between each of the random numbers and the pulse position of the baseband signal; determine that each random number in the random number signal is in the mapping relationship
  • the corresponding pulse position of the baseband signal is modulated into the baseband signal.
  • step S2303 which will not be repeated here.
  • Step S2404 modulate the carrier signal and the baseband signal to generate a first signal.
  • the baseband signal sent by the PPM modulator and the carrier signal sent by the phase-locked loop circuit are received, and the two synchronized signals are processed to generate the first signal (that is, the pulse signal that meets the ranging requirements).
  • the phases of the two consecutive sets of pulse waves in the foregoing multiple sets of pulse waves are different; the foregoing first signal is used to generate the first pulse light, and the foregoing first pulse light is used to illuminate the object to be measured.
  • Step S2405 Perform multiple phase delay operations on the first signal according to the preset phase delay value to generate multiple internal integration switch signals of the pixels.
  • each of the foregoing multiple phase delay operations corresponds to a pixel internal integration switch signal.
  • phase delay operations are performed on the first signal to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations Corresponds to the internal integration switch signal of a pixel.
  • Step S2406 Determine multiple exposure signals corresponding to each pixel according to the internal integration switch signals of the multiple pixels and the second pulse light.
  • the second pulsed light is the pulsed light reflected by the object under test
  • Step S2407 Convert multiple exposure signals into multiple corresponding digital signals.
  • the multiple exposure signals of each pixel can be converted into corresponding multiple digital signals through the analog-to-digital converter ADC; and then according to the corresponding calculation method, each digital signal is processed Calculation and processing.
  • Step S2408 After receiving multiple digital signals corresponding to multiple exposure signals, obtain the phase delay of the second pulsed light according to the ranging algorithm, and calculate the difference between the object under test and the anti-interference ranging device according to the frequency of the second pulsed light. distance.
  • the phase of the second pulsed light received by the lens is delayed according to the preset ranging algorithm; and then the target object (that is to be The distance between the object) and the anti-interference distance measuring device.
  • the depth image information about the object to be measured is the depth image information about the object to be measured.
  • Combining images of other dimensions can restore the distance between the object in the three-dimensional space and the camera, or restore the three-dimensional image of the object.
  • the foregoing method further includes: receiving the foregoing second pulsed light through an optical lens.
  • the aforementioned light emitter is a light emitting diode LED or a vertical cavity surface emitting laser VCSEL.
  • the phases of the aforementioned carrier signal and the aforementioned baseband signal are synchronized.
  • the generating the baseband signal according to the random number signal and the first modulation order includes:
  • the random number signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to multiple mappings One of the relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each of the plurality of mapping relationship tables includes each A mapping relationship between a random number and the pulse position of the baseband signal; the multiple mapping relationship tables have a one-to-one correspondence with the multiple preset modulation orders.
  • the embodiment of the present application mainly adds a pulse position modulator (i.e. PPM modulator) to the anti-interference ranging device (such as a ranging chip) to reduce the continuous same random number, which causes the phase of the signal to be continuous and consistent, which affects the anti-interference ability of the signal.
  • PPM modulator receives a random number signal containing one or more random numbers, where each random number in the one or more random numbers corresponds to a pulse position of a baseband signal.
  • the PPM modulator makes the required pulse position appear in the corresponding position in the modulated output baseband signal, and makes a certain number of time intervals between the two pulse positions; in different cameras
  • the mapping relationship between the random number provided by the PPM modulator and the pulse position can be set to be different, so that the number of intervals between the two pulse positions in the baseband signal generated in each camera is different, thereby improving the resistance of the final output pulse light wave.
  • the interference performance enables the camera to effectively recognize the pulsed light waves emitted by itself and filter the pulsed light waves emitted by other cameras.
  • the embodiment of the present application does not limit the manner of determining the correspondence between the random number and the pulse position.
  • the random number is directly sent to the phase shift keying modulator; when continuous 0 or continuous 1 occurs, the first signal output by the phase shift keying modulator is between each group of signal waves
  • the phases may be the same continuously.
  • the operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, so that there will be no large errors in the ranging results.
  • the anti-interference ranging method described in the embodiment of the present application can refer to the related description of the anti-interference ranging device (receiving end) in the foregoing device embodiment, and will not be repeated here.
  • FIG. 25 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • the anti-interference ranging apparatus can be implemented with the structure in FIG. 25.
  • the device 25 includes at least one processor 2501 and at least one memory 2502.
  • the device may also include general components such as a power supply, which will not be described in detail here.
  • the processor 2501 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program programs.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the memory 2502 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types that can store information and instructions
  • the dynamic storage device can also be electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storage, optical disc storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
  • the memory can exist independently and is connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the aforementioned memory 2502 is used to store application program codes for executing the above solutions, and the processor 2501 controls the execution.
  • the aforementioned processor 2501 is configured to execute the application code stored in the aforementioned memory 2502.
  • the code stored in the memory 2502 can execute the anti-interference ranging method provided in FIG. 23 or FIG. 24 above.
  • An embodiment of the present application provides an electronic device, which may include the aforementioned anti-interference ranging device, and a discrete device coupled to the outside of the aforementioned anti-interference ranging device.
  • An embodiment of the present application provides a terminal, the terminal includes a processor, and the processor is configured to support the terminal to perform corresponding functions in the foregoing anti-interference ranging method.
  • the terminal may also include a memory, which is used for coupling with the processor and stores necessary program instructions and data for the terminal.
  • the terminal may also include a communication interface for the terminal to communicate with other devices or communication networks.
  • the embodiments of the present application also provide a radar, and the aforementioned radar may include the aforementioned anti-jamming ranging device or the aforementioned anti-jamming ranging system for realizing the anti-jamming ranging function provided by the aforementioned device or the aforementioned system.
  • the aforementioned radar may also include a memory coupled to the aforementioned device or the aforementioned system for storing necessary program instructions and data for the radar; the aforementioned radar may also include an external power source coupled to the aforementioned device or the aforementioned system, and the aforementioned external power source is used to supply the aforementioned radar powered by.
  • An embodiment of the present application provides a vehicle equipped with the aforementioned anti-interference ranging device or the aforementioned anti-interference ranging system for realizing the anti-interference ranging function provided by the aforementioned device or the aforementioned system.
  • the aforementioned vehicle may also include an automatic driving system for controlling the aforementioned vehicle to travel according to road conditions.
  • the aforementioned vehicle may further include an external discrete device coupled to the aforementioned device or the aforementioned system.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in a computer device) execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned storage media may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc.
  • U disk mobile hard disk
  • magnetic disk magnetic disk
  • optical disk read-only memory
  • Read-Only Memory abbreviation: ROM
  • Random Access Memory Random Access Memory

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Nonlinear Science (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

An anti-interference distance measuring device and method. The device comprises a pulse position modulator (1011) and a phase-shift keying modulator (1012) connected to the pulse position modulator (1011). The pulse position modulator (1011) is used for generating a baseband signal according to a random number signal. Each random number in the random number signal corresponds to the pulse position of a baseband signal. When there is a plurality of consecutive identical random numbers in the random number signal, M time intervals exist between pulse positions corresponding to the plurality of consecutive identical random numbers in the baseband signal. The phase of the random number signal and the phase of the baseband signal are synchronous. The phase-shift keying modulator (1012) is used for modulating a carrier signal and the baseband signal to generate a first signal. The first signal is used for driving a luminescent device (103) to generate a first pulsed light to irradiate an object to be measured. The anti-interference distance measuring device and method can improve the anti-interference capability of a distance measuring signal.

Description

一种抗干扰测距装置以及方法Anti-interference ranging device and method 技术领域Technical field
本申请涉及测距技术领域,尤其涉及一种抗干扰测距装置以及方法。This application relates to the technical field of distance measurement, and in particular to an anti-interference distance measurement device and method.
背景技术Background technique
Time of flight成像(即TOF成像)技术是一种主动成像方式,即相机系统向目标物体发射激光,通过测量传感器接受到目标反射光的时间计算到目标的距离。在采用主动调制光进行照射的情况下,为了获得更高的测量精度和分辨率,需要减小噪声、干扰对输出结果产生的影响。Time of flight imaging (TOF imaging) technology is an active imaging method, that is, the camera system emits laser light to the target object, and the distance to the target is calculated by measuring the time when the sensor receives the reflected light from the target. In the case of using actively modulated light for illumination, in order to obtain higher measurement accuracy and resolution, it is necessary to reduce the influence of noise and interference on the output result.
在TOF相机使用过程中难免会存在多相机共同对同一个物体拍摄或者多机互拍的场景。如果不进行任何处理,测算出的距离跟真实距离基本上都不会相等。由于在TOF应用中,存在多机共同工作的情况,传统的连续波调制或脉冲波调制很容易受到同频多机干扰,导致测距结果出错。In the process of using TOF cameras, it is inevitable that there will be scenes where multiple cameras take pictures of the same object together or multiple cameras take pictures of each other. If no processing is done, the calculated distance and the true distance will basically not be equal. In TOF applications, there is a situation where multiple machines work together, and traditional continuous wave modulation or pulse wave modulation is easily interfered by multiple machines at the same frequency, resulting in errors in the ranging results.
目前,采用码分复用(Code Division Multiplexing,CDM)和二进制相移键控(Binary Phase Shift Keying,BPSK)技术来产生随机相位跳变的方波信号。分组发送像素(pixel)调制信号,每组之间的波形频率固定,但相位只取0度和180度,并且没有空隙时间。其中,随机跳变的相位受任何一种伪随机数或者随机数产生器产生的二进制随机数控制(例如二进制0对应相位0度,二进制1对应相位180度)。但是当曝光时间一定且工作频率过高时,随机数序列可能会过长,并且过长的随机数序列中会存在很长的连续0或者连续1,这样的长连续信号发生干扰的可能性会大大增加,影响抗干扰的效果。Currently, Code Division Multiplexing (CDM) and Binary Phase Shift Keying (BPSK) technologies are used to generate random phase hopping square wave signals. Pixel modulation signals are sent in groups, and the waveform frequency between each group is fixed, but the phase is only 0 degrees and 180 degrees, and there is no gap time. Among them, the phase of the random jump is controlled by any kind of pseudo-random number or a binary random number generated by a random number generator (for example, binary 0 corresponds to a phase of 0 degrees, and binary 1 corresponds to a phase of 180 degrees). But when the exposure time is constant and the working frequency is too high, the random number sequence may be too long, and there will be a long continuous 0 or continuous 1 in the too long random number sequence, and the possibility of interference with such a long continuous signal will be Greatly increase, affecting the anti-jamming effect.
因此,在多个TOF相机测距的情况下如何提高成像的抗干扰能力,是亟待解决的问题。Therefore, how to improve the anti-interference ability of imaging in the case of multiple TOF cameras for distance measurement is a problem to be solved urgently.
发明内容Summary of the invention
本申请实施例提供了一种抗干扰测距装置以及方法,能够实现在多个TOF相机测距的情况下提高TOF相机的抗干扰能力。The embodiments of the present application provide an anti-interference ranging device and method, which can improve the anti-interference ability of the TOF camera in the case of multiple TOF cameras in the range measurement.
第一方面,本申请实施例提供了一种抗干扰测距装置,可以包括:In the first aspect, an embodiment of the present application provides an anti-interference ranging device, which may include:
脉冲位置调制器、与所述脉冲位置调制器连接的相移键控调制器(本申请实施例中以二进制相移键控BPSK调制器为例进行说明,相移键控调制器的类型包括但不限于二进制相移键控调制器);A pulse position modulator, a phase shift keying modulator connected to the pulse position modulator (in the embodiment of this application, a binary phase shift keying BPSK modulator is taken as an example for illustration. The types of phase shift keying modulators include but Not limited to binary phase shift keying modulator);
所述脉冲位置调制器,用于根据随机数信号生成基带信号;其中,所述随机数信号包括一种或多种随机数,所述一种或多种随机数中每一种随机数对应一种所述基带信号的脉冲位置;当所述随机数信号中有多个连续相同的随机数时,在所述基带信号中所述多个连续相同的随机数对应的脉冲位置之间存在M个时间间隔,M为大于0的整数;所述随机数信号和所述基带信号的相位同步;The pulse position modulator is used to generate a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each of the one or more random numbers corresponds to one random number. The pulse position of the baseband signal; when the random number signal has multiple consecutive identical random numbers, there are M pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal Time interval, M is an integer greater than 0; the phase of the random number signal and the baseband signal are synchronized;
所述相移键控调制器,用于将载波信号和所述基带信号进行调制,以生成第一信号;其中,所述第一信号用于驱动发光器产生第一脉冲光,所述第一脉冲光用于照射待测物。The phase shift keying modulator is used to modulate a carrier signal and the baseband signal to generate a first signal; wherein, the first signal is used to drive a light emitter to generate a first pulsed light, and the first Pulsed light is used to illuminate the object to be measured.
本申请实施例主要通过在抗干扰测距装置(例如测距芯片)中加入了脉冲位置调制器 (即PPM调制器)减少连续的相同随机数造成信号中相位连续一致而影响信号的抗干扰能力。具体地,PPM调制器接收包含一种或多种随机数的随机数信号,其中,一种或多种随机数中每一种随机数对应一种基带信号的脉冲位置。PPM调制器根据随机数对应的脉冲位置的相关参数,使得调制输出的基带信号中相应位置上出现符合要求的脉冲位置,并使得两个的脉冲位置之间有一定数量的时间间隔;不同相机中PPM调制器提供的随机数和脉冲位置的映射关系可以设置为不同,从而使得每个相机中产生的基带信号中两个脉冲位置之间的间隔数不同,进而提高了最后输出的脉冲光波的抗干扰性能,使得相机有效识别自身发射的脉冲光波而过滤其他相机发射的脉冲光波。本申请实施例对确定随机数与脉冲位置之间对应关系的方式不作限定。不同于现有技术中,直接将随机数向相移键控调制器发送;当出现连续0或者连续1的情况时,相移键控调制器输出的第一信号中每一组信号波之间的相位可能会连续相同。通过调制阶数使得在随机数信号中可能出现的多个连续相同随机数的情况下,输出基带信号中连续几组的基带信号相位不会连续相同,从而提高了信号的抗干扰能力。本申请实施例把波形随机化的操作,使用随机化的波形来发射和像素pixel互相关接收,因为随机数具有良好的自相关和互相关特性,所以pixel互相关接收时会仅将本机发射的信号放大输出,其他信号会被随机化处理,使得测距结果不会存在较大的误差。The embodiment of the present application mainly adds a pulse position modulator (i.e. PPM modulator) to the anti-interference ranging device (such as a ranging chip) to reduce the continuous same random number, which causes the phase of the signal to be continuous and consistent, which affects the anti-interference ability of the signal. . Specifically, the PPM modulator receives a random number signal containing one or more random numbers, where each random number in the one or more random numbers corresponds to a pulse position of a baseband signal. According to the relevant parameters of the pulse position corresponding to the random number, the PPM modulator makes the required pulse position appear in the corresponding position in the modulated output baseband signal, and makes a certain number of time intervals between the two pulse positions; in different cameras The mapping relationship between the random number provided by the PPM modulator and the pulse position can be set to be different, so that the number of intervals between the two pulse positions in the baseband signal generated in each camera is different, thereby improving the resistance of the final output pulse light wave. The interference performance enables the camera to effectively recognize the pulsed light waves emitted by itself and filter the pulsed light waves emitted by other cameras. The embodiment of the present application does not limit the manner of determining the correspondence between the random number and the pulse position. Different from the prior art, the random number is directly sent to the phase shift keying modulator; when continuous 0 or continuous 1 occurs, the first signal output by the phase shift keying modulator is between each group of signal waves The phases may be the same continuously. Through the modulation order, in the case of multiple consecutive identical random numbers that may appear in the random number signal, the phases of consecutive groups of baseband signals in the output baseband signal will not be continuously the same, thereby improving the anti-interference ability of the signal. The operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, so that there will be no large errors in the ranging results.
在一种可能的实现方式中,所述装置还包括与所述相移键控调制器连接的锁相环电路;所述锁相环电路,用于根据预设周期产生所述载波信号,所述载波信号与所述随机数信号的相位同步。本申请实施例中,通过锁相环电路与相移键控调制器连接,通过锁相环电路产生载波信号,用于输入相移键控调制进行信号的调制,以便于输出符合要求的第一信号。In a possible implementation manner, the device further includes a phase-locked loop circuit connected to the phase-shift keying modulator; the phase-locked loop circuit is configured to generate the carrier signal according to a preset period, so The carrier signal is synchronized with the phase of the random number signal. In the embodiment of the present application, the phase-locked loop circuit is connected to the phase-shift keying modulator, and the carrier signal is generated through the phase-locked loop circuit, which is used to input phase-shift keying modulation for signal modulation, so as to output the first that meets the requirements. Signal.
在一种可能的实现方式中,所述装置还包括:与所述相移键控调制器连接的延迟线电路;所述延迟线电路,用于根据预设的相位延迟值,对所述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;所述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。本申请实施例中,通过延迟线电路DLL将相移键控调制输出的第一信号进行若干次的信号相位延迟,用于与后续接受的反射光进行积分,从而进行计算待测物和相机之间的距离。In a possible implementation manner, the device further includes: a delay line circuit connected to the phase shift keying modulator; the delay line circuit is configured to determine the first phase delay value according to a preset phase delay value. One signal undergoes multiple phase delay operations to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations corresponds to one pixel internal integration switch signal. In the embodiment of the present application, the first signal output by the phase shift keying modulation is delayed several times by the delay line circuit DLL, which is used to integrate the reflected light received subsequently, so as to calculate the difference between the object under test and the camera. The distance between.
在一种可能的实现方式中,所述装置还包括:与所述延迟线电路连接的像素阵列,以及与所述像素阵列连接的光学透镜;所述光学透镜用于接收第二脉冲光,所述第二脉冲光为所述待测物反射的脉冲光;所述像素阵列中每一个像素,用于根据所述多个像素内部积分开关信号和所述第二脉冲光,确定所述每一个像素对应的多个曝光信号。本申请实施例中,通过与延迟线电路连接的像素阵列来对多个被延迟的开关信号和接受的第二脉冲光(即被反射的第一信号)进行曝光,得到多个曝光信号。并且通过光学透镜接受反射的第二脉冲光,用于进一步计算相机与物体之间的距离。In a possible implementation, the device further includes: a pixel array connected to the delay line circuit, and an optical lens connected to the pixel array; the optical lens is used to receive the second pulsed light, so The second pulsed light is the pulsed light reflected by the object to be measured; each pixel in the pixel array is used to determine the each pixel according to the internal integration switch signal of the plurality of pixels and the second pulsed light Multiple exposure signals corresponding to pixels. In the embodiment of the present application, a plurality of delayed switching signals and received second pulse light (that is, the reflected first signal) are exposed through a pixel array connected to a delay line circuit to obtain a plurality of exposure signals. And through the optical lens to receive the reflected second pulse light, used to further calculate the distance between the camera and the object.
在一种可能的实现方式中,所述装置还包括与所述像素阵列连接的模数转换器ADC;所述ADC用于将所述每一个像素对应的多个曝光信号转换成对应的多个数字信号。本申请实施例中,通过与像素阵列连接的模数转换器,使得曝光信号(即模拟信号)转换为多个数字信号,便于相关的处理模块对数字信号进行运算处理,以得出距离数值。In a possible implementation manner, the device further includes an analog-to-digital converter ADC connected to the pixel array; the ADC is used to convert multiple exposure signals corresponding to each pixel into multiple corresponding Digital signal. In the embodiment of the present application, the exposure signal (ie, the analog signal) is converted into multiple digital signals through the analog-to-digital converter connected to the pixel array, so that the relevant processing module can perform arithmetic processing on the digital signal to obtain the distance value.
在一种可能的实现方式中,所述随机数信号包括多个持续预设时长的随机数;所述装置还包括与所述脉冲位置调制器连接的随机数产生器;所述随机数产生器,用于根据随机 数产生周期,生成所述多个持续预设时长的随机数,所述预设时长与所述随机数产生周期数值相同。本申请实施例中,通过随机数产生器产生多个随机数,用于改变第一信号中每一组信号波的相位,使得第一信号的抗干扰能力增强。In a possible implementation manner, the random number signal includes a plurality of random numbers lasting for a preset duration; the device further includes a random number generator connected to the pulse position modulator; the random number generator , Configured to generate the multiple random numbers lasting for a preset duration according to the random number generation period, where the preset duration is the same as the value of the random number generation period. In the embodiment of the present application, a random number generator is used to generate multiple random numbers, which are used to change the phase of each group of signal waves in the first signal, so that the anti-interference ability of the first signal is enhanced.
在一种可能的实现方式中,所述随机数信号包括多个持续预设时长的伪随机数;所述装置还包括与所述脉冲位置调制器连接的伪随机数产生器;所述伪随机数产生器,用于根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数;所述预设时长与所述伪随机数产生周期的数值相同。本申请实施例中,通过伪随机数产生器以及预设的相关产生参数(例如伪随机数循环周期等)产生多个伪随机数,用于改变第一信号中每一组信号波的相位,使得第一信号的抗干扰能力增强。In a possible implementation manner, the random number signal includes a plurality of pseudo-random numbers lasting for a preset period of time; the device further includes a pseudo-random number generator connected to the pulse position modulator; the pseudo-random The number generator is used to generate a plurality of pseudorandom numbers for a preset duration according to the pseudorandom number generation period, the pseudorandom number period, and a preset initial pseudorandom number; the preset duration and the pseudorandom number generation The value of the period is the same. In the embodiment of the present application, multiple pseudo-random numbers are generated through a pseudo-random number generator and preset related generation parameters (such as pseudo-random number cycle period, etc.), which are used to change the phase of each group of signal waves in the first signal. The anti-interference ability of the first signal is enhanced.
在一种可能的实现方式中,所述载波信号和所述基带信号的相位同步。本申请实施例中,通过控制载波信号和基带信号的相位同步,便于两者在BPSK调制器中整合生成符合要求的第一信号。In a possible implementation manner, the phases of the carrier signal and the baseband signal are synchronized. In the embodiment of the present application, by controlling the phase synchronization of the carrier signal and the baseband signal, it is convenient for the two to be integrated in the BPSK modulator to generate the first signal that meets the requirements.
在一种可能的实现方式中,所述脉冲位置调制器,具体用于:根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。本申请实施例中通过第一调制阶数(比如2阶、4阶)确定随机数与基带信号脉冲位置之间的映射关系;在出现连续相同随机数的情况下,有利于基带信号中的相同脉冲位置之前产生时间间隔,而不连续重复出现。例如,PPM调制器将接收随机数信号以及第一映射关系表(与第一调制阶数对应)中确定随机数对应的基带信号的脉冲位置,然后输出经过调制的基带信号。其中,第一映射关系表可以通过第一调制阶数在多个映射关系表中确定;其中,映射关系表和调制阶数可以都是预存的数据;或者根据已知的第一调制阶数进一步确定所需的第一映射关系表。不同的调制阶数对应不同的映射关系表,且每个映射关系表中包含了随机数的形式以及每一种随机数对应的脉冲位置。In a possible implementation manner, the pulse position modulator is specifically configured to: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, transform the random number signal Modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is among a plurality of preset modulation orders Each of the multiple mapping relationship tables includes the mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables and the multiple The preset modulation order corresponds to one by one. In the embodiment of the present application, the mapping relationship between the random number and the pulse position of the baseband signal is determined by the first modulation order (such as 2nd order, 4th order); in the case of continuous identical random numbers, it is beneficial to the same in the baseband signal. A time interval is generated before the pulse position and does not repeat continuously. For example, the PPM modulator will receive the random number signal and determine the pulse position of the baseband signal corresponding to the random number in the first mapping relationship table (corresponding to the first modulation order), and then output the modulated baseband signal. Wherein, the first mapping relationship table may be determined in multiple mapping relationship tables by the first modulation order; wherein, the mapping relationship table and the modulation order may both be pre-stored data; or further based on the known first modulation order. Determine the required first mapping table. Different modulation orders correspond to different mapping tables, and each mapping table contains the form of random numbers and the pulse position corresponding to each random number.
第二方面,本申请实施例提供了一种抗干扰测距方法,包括:In the second aspect, an embodiment of the present application provides an anti-interference ranging method, including:
根据随机数信号生成基带信号;其中,所述随机数信号包括一种或多种随机数,所述一种或多种随机数中每一种随机数对应一种所述基带信号的脉冲位置;当所述随机数信号中有多个连续相同的随机数时,在所述基带信号中所述多个连续相同的随机数对应的脉冲位置之间存在M个时间间隔,M为大于0的整数;所述随机数信号和所述基带信号的相位同步;Generating a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each random number in the one or more random numbers corresponds to a pulse position of the baseband signal; When there are multiple consecutive identical random numbers in the random number signal, there are M time intervals between pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal, and M is an integer greater than 0 ; The random number signal and the phase of the baseband signal are synchronized;
将载波信号和所述基带信号进行调制,以生成第一信号;其中,所述第一信号用于驱动发光器产生第一脉冲光,所述第一脉冲光用于照射待测物。可选地,第一信号中可以包含多组脉冲波(如多组方波)。The carrier signal and the baseband signal are modulated to generate a first signal; wherein, the first signal is used to drive the light emitter to generate first pulsed light, and the first pulsed light is used to illuminate the object to be measured. Optionally, the first signal may include multiple sets of pulse waves (such as multiple sets of square waves).
在一种可能的实现方式中,所述方法还包括:根据所述第一信号控制发光器发射所述第一脉冲光。In a possible implementation manner, the method further includes: controlling a light emitter to emit the first pulsed light according to the first signal.
在一种可能的实现方式中,所述方法还包括:根据预设周期产生所述载波信号,所述载波信号与所述随机数信号的相位同步。In a possible implementation manner, the method further includes: generating the carrier signal according to a preset period, and the carrier signal is synchronized with the phase of the random number signal.
在一种可能的实现方式中,所述方法还包括:根据预设的相位延迟值,对所述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;所述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。In a possible implementation, the method further includes: performing multiple phase delay operations on the first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; the multiple phase delay operations Each operation in the delay operation corresponds to a pixel internal integration switch signal.
在一种可能的实现方式中,所述方法还包括:接收第二脉冲光,所述第二脉冲光为所述待测物反射的脉冲光;根据所述多个像素内部积分开关信号和所述第二脉冲光,确定所述每一个像素对应的多个曝光信号。In a possible implementation, the method further includes: receiving second pulsed light, where the second pulsed light is pulsed light reflected by the object to be measured; The second pulsed light determines a plurality of exposure signals corresponding to each pixel.
在一种可能的实现方式中,所述方法还包括:将所述每一个像素对应的多个曝光信号转换成对应的多个数字信号。In a possible implementation manner, the method further includes: converting multiple exposure signals corresponding to each pixel into multiple corresponding digital signals.
在一种可能的实现方式中,所述方法还包括:接收所述对应的多个数字信号;根据测距算法获得所述第二脉冲光的相位延迟,并根据所述第二脉冲光的频率计算所述待测物与所述抗干扰测距装置的距离。In a possible implementation, the method further includes: receiving the corresponding multiple digital signals; obtaining the phase delay of the second pulsed light according to a ranging algorithm, and obtaining the phase delay of the second pulsed light according to the frequency of the second pulsed light Calculate the distance between the object to be measured and the anti-interference distance measuring device.
在一种可能的实现方式中,所述方法还包括:根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数;所述预设时长与所述伪随机数产生周期的数值相同。In a possible implementation, the method further includes: generating a plurality of pseudo-random numbers for a preset duration according to a pseudo-random number generation period, a pseudo-random number period, and a preset initial pseudo-random number; It is assumed that the duration is the same as the value of the pseudo-random number generation period.
在一种可能的实现方式中,所述载波信号和所述基带信号的相位同步。In a possible implementation manner, the phases of the carrier signal and the baseband signal are synchronized.
在一种可能的实现方式中,所述根据随机数信号生成基带信号,包括:根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。In a possible implementation manner, the generating the baseband signal according to the random number signal includes: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, converting the random number signal The signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is a plurality of preset modulation orders Each of the multiple mapping relationship tables includes a mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables and the multiple There is a one-to-one correspondence with each preset modulation order.
第三方面,本申请实施例提供了一种抗干扰测距系统,其特征在于,包括:In a third aspect, an embodiment of the present application provides an anti-interference ranging system, which is characterized in that it includes:
脉冲位置调制器、与所述脉冲位置调制器连接的相移键控调制器、与所述相移键控调制器连接的锁相环电路、与所述相移键控调制器连接的延迟线电路、与所述延迟线电路连接的像素阵列、与所述像素阵列连接的模数转换器ADC、与所述脉冲位置调制器连接的伪随机数产生器;Pulse position modulator, a phase shift keying modulator connected to the pulse position modulator, a phase locked loop circuit connected to the phase shift keying modulator, and a delay line connected to the phase shift keying modulator A circuit, a pixel array connected to the delay line circuit, an analog-to-digital converter ADC connected to the pixel array, and a pseudo-random number generator connected to the pulse position modulator;
所述脉冲位置调制器,用于根据随机数信号生成基带信号;其中,所述随机数信号包括一种或多种随机数,所述一种或多种随机数中每一种随机数对应一种所述基带信号的脉冲位置;当所述随机数信号中有多个连续相同的随机数时,在所述基带信号中所述多个连续相同的随机数对应的脉冲位置之间存在M个时间间隔,M为大于0的整数;所述随机数信号和所述基带信号的相位同步;The pulse position modulator is used to generate a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each of the one or more random numbers corresponds to one random number. The pulse position of the baseband signal; when the random number signal has multiple consecutive identical random numbers, there are M pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal Time interval, M is an integer greater than 0; the phase of the random number signal and the baseband signal are synchronized;
所述相移键控调制器,用于将载波信号和所述基带信号进行调制,以生成第一信号;其中,所述第一信号用于驱动发光器产生第一脉冲光,所述第一脉冲光用于照射待测物;The phase shift keying modulator is used to modulate a carrier signal and the baseband signal to generate a first signal; wherein, the first signal is used to drive a light emitter to generate a first pulsed light, and the first Pulsed light is used to illuminate the object to be tested;
所述锁相环电路,用于根据预设周期产生载波信号,所述载波信号与所述随机数信号的相位同步;The phase-locked loop circuit is configured to generate a carrier signal according to a preset period, and the carrier signal is synchronized with the phase of the random number signal;
所述伪随机数产生器,用于根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的随机数;所述预设时长与所述随机数产生周期的数值相同;The pseudo-random number generator is configured to generate a plurality of random numbers that last for a preset duration according to a pseudo-random number generation cycle, a pseudo-random number cycle, and a preset initial pseudo-random number; the preset duration and the random number The value of the number generation period is the same;
所述延迟线电路,用于根据预设的相位延迟值,对所述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;所述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号;The delay line circuit is configured to perform multiple phase delay operations on the first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations corresponds to Integral switch signal inside a pixel;
所述像素阵列中每一个像素,用于根据所述多个像素内部积分开关信号和所述第二脉冲光,确定所述每一个像素对应的多个曝光信号;Each pixel in the pixel array is configured to determine a plurality of exposure signals corresponding to each pixel according to the internal integration switch signal of the plurality of pixels and the second pulse light;
所述ADC用于将所述每一个像素对应的多个曝光信号转换成对应的多个数字信号。The ADC is used to convert multiple exposure signals corresponding to each pixel into multiple corresponding digital signals.
在一种可能的实现方式中,所述系统还包括与所述相移键控调制器连接的光源驱动器以及发光器,所述发光器与所述光源驱动器连接;所述光源驱动器,用于根据所述第一信号控制所述发光器发射所述第一脉冲光。本申请实施例,通过将光源驱动器以及发光器与相移键控调制器连接,通过第一信号驱动使得发光器发出相应亮暗信息的脉冲光,用于照射目标物体以及测量相机与目标物体之间的距离。In a possible implementation manner, the system further includes a light source driver and an illuminator connected to the phase shift keying modulator, the illuminator is connected to the light source driver; the light source driver is configured to The first signal controls the light emitter to emit the first pulsed light. In the embodiment of the application, the light source driver and the light emitter are connected with the phase shift keying modulator, and the light emitter is driven by the first signal to make the light emitter emit pulsed light with corresponding bright and dark information, which is used to illuminate the target object and measure the difference between the camera and the target object. The distance between.
在一种可能的实现方式中,所述系统还包括与所述ADC连接的测距电路;所述测距电路,用于:接收所述对应的多个数字信号;根据测距算法获得所述第二脉冲光的相位延迟,并根据所述第二脉冲光的频率计算所述待测物与所述抗干扰测距装置的距离。本申请实施例中,通过与ADC连接的测距电路,将接受的数字信号进行运算而获取相机与待测物体之间的距离。In a possible implementation manner, the system further includes a ranging circuit connected to the ADC; the ranging circuit is configured to: receive the corresponding multiple digital signals; obtain the ranging algorithm according to the ranging algorithm; The phase of the second pulsed light is delayed, and the distance between the object to be measured and the anti-interference distance measuring device is calculated according to the frequency of the second pulsed light. In the embodiment of the present application, the distance between the camera and the object to be measured is obtained by calculating the received digital signal through the ranging circuit connected to the ADC.
在一种可能的实现方式中,所述发光器为发光二极管LED或者垂直腔面发射激光器VCSEL。本申请实施例中,在第一信号的控制下,通过LED或者VCSEL等光学器件发射亮暗不同的脉冲光,以便于测量物体的距离。In a possible implementation manner, the light emitter is a light emitting diode LED or a vertical cavity surface emitting laser VCSEL. In the embodiment of the present application, under the control of the first signal, an optical device such as an LED or a VCSEL emits pulsed light with different brightness and darkness, so as to measure the distance of the object.
在一种可能的实现方式中,所述系统还包括:与所述像素阵列连接的光学透镜;所述光学透镜用于接收所述第二脉冲光,所述第二脉冲光为所述待测物反射的脉冲光。In a possible implementation, the system further includes: an optical lens connected to the pixel array; the optical lens is used to receive the second pulsed light, and the second pulsed light is the to-be-measured Pulse light reflected by objects.
在一种可能的实现方式中,所述根据随机数信号生成基带信号,包括:根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。In a possible implementation manner, the generating the baseband signal according to the random number signal includes: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, converting the random number signal The signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is a plurality of preset modulation orders Each of the multiple mapping relationship tables includes a mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables and the multiple There is a one-to-one correspondence with each preset modulation order.
第四方面,本申请实施例提供了一种电子设备,可包括:如上述第一方面或第二方面所述的抗干扰测距装置,以及耦合于所述抗干扰测距装置外部的分立器件。In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: the anti-interference ranging device as described in the first or second aspect above, and a discrete device coupled to the outside of the anti-interference ranging device .
第五方面,本申请实施例提供一种终端,该终端包括处理器,处理器被配置为支持该终端执行第三方面提供的一种抗干扰测距的方法中相应的功能。该终端还可以包括存储器,存储器用于与处理器耦合,其保存终端必要的程序指令和数据。该终端还可以包括通信接口,用于该终端与其它设备或通信网络通信。In a fifth aspect, an embodiment of the present application provides a terminal, the terminal includes a processor, and the processor is configured to support the terminal to perform a corresponding function in the anti-interference ranging method provided in the third aspect. The terminal may also include a memory, which is used for coupling with the processor and stores necessary program instructions and data for the terminal. The terminal may also include a communication interface for the terminal to communicate with other devices or communication networks.
第六方面,本申请实施例提供一种雷达,所述雷达可以包括如第一方面所述的装置或者第三方面所述的系统,用于实现所述装置或者所述系统提供的抗干扰测距功能。所述雷达还可以包括耦合于所述装置或者所述系统的存储器,用于保存雷达必要的程序指令和数据;所述雷达还可以包括耦合于所述装置或者所述系统的外部电源,所述外部电源用于向所述雷达供电。In a sixth aspect, an embodiment of the present application provides a radar. The radar may include the device described in the first aspect or the system described in the third aspect, for implementing the anti-interference detection provided by the device or the system. Distance function. The radar may also include a memory coupled to the device or the system for storing program instructions and data necessary for the radar; the radar may also include an external power supply coupled to the device or the system, and the The external power supply is used to supply power to the radar.
第七方面,本申请实施例提供一种车辆,所述车辆搭载如第一方面所述的装置或者第三方面所述的系统,用于实现所述装置或者所述系统提供的抗干扰测距功能。所述车辆还可以包括自动驾驶系统,用于根据道路情况控制所述车辆行驶。所述车辆还可以包括耦合于所述装置或者所述系统的外部分立器件。In a seventh aspect, an embodiment of the present application provides a vehicle equipped with the device described in the first aspect or the system described in the third aspect, and is used to implement the anti-interference ranging provided by the device or the system Function. The vehicle may also include an automatic driving system for controlling the driving of the vehicle according to road conditions. The vehicle may also include an external discrete device coupled to the device or the system.
第八方面,本申请实施例提供了一种连续波曝光调制四次的方法;可以包括在连续波中分别对相位0°曝光、相位180°曝光、相位90°曝光、相位270°曝光。具体地,依次进行连续波相位0°和相位180°的曝光,相位90°和相位270°的曝光,相位180°和相位0°的曝光,相位270°和相位90°的曝光。In an eighth aspect, the embodiments of the present application provide a method for continuous wave exposure modulation four times; it may include phase 0° exposure, phase 180° exposure, phase 90° exposure, and phase 270° exposure respectively in the continuous wave. Specifically, continuous wave phase 0° and phase 180° exposure, phase 90° and phase 270° exposure, phase 180° and phase 0° exposure, and phase 270° and phase 90° exposure are sequentially performed.
第九方面,本申请实施例提供了一种连续波曝光调制两次的方法;可以包括在连续波中分别对相位0°曝光、相位180°曝光、曝光、相位270°曝光。具体地,依次对连续波进行相位0°和相位180°进行曝光,相位90°和相位270°进行曝光。In a ninth aspect, an embodiment of the present application provides a method for continuous wave exposure and modulation twice; it may include phase 0° exposure, phase 180° exposure, exposure, and phase 270° exposure respectively in the continuous wave. Specifically, the continuous wave is sequentially exposed with a phase of 0° and a phase of 180°, and the phase is exposed with a phase of 90° and a phase of 270°.
第十方面,本申请实施例提供了一种脉冲波曝光调制两次的方法;可以包括在脉冲波中,分别对相位180°和相位0°进行曝光调制。具体地,依次对连续波进行相位0°和相位180°进行曝光,相位180°和相位0°进行曝光。In a tenth aspect, an embodiment of the present application provides a method for pulse wave exposure and modulation twice; it can be included in the pulse wave, and the phase 180° and the phase 0° are respectively exposed and modulated. Specifically, the continuous wave is sequentially exposed at a phase of 0° and a phase of 180°, and exposed at a phase of 180° and a phase of 0°.
第十一方面,本申请实施例提供了一种脉冲波曝光调制一次的方法;可以包括在脉冲波中,分别对相位0°和相位180°进行曝光。具体地,按照曝光顺序对相位0°和相位180°进行曝光。可选地,按照另一种曝光顺序对相位180°和相位0°进行曝光。In the eleventh aspect, an embodiment of the present application provides a pulse wave exposure and modulation method once; it may be included in the pulse wave, and the phase 0° and the phase 180° are respectively exposed. Specifically, the phase 0° and the phase 180° are exposed in the order of exposure. Optionally, the phase 180° and the phase 0° are exposed according to another exposure sequence.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments.
图1是本申请实施例提供的一种TOF应用场景示意图;FIG. 1 is a schematic diagram of a TOF application scenario provided by an embodiment of the present application;
图2是本申请实施例提供的另一种TOF应用场景示意图;Figure 2 is a schematic diagram of another TOF application scenario provided by an embodiment of the present application;
图3是本申请实施例提供的又一种TOF应用场景示意图;FIG. 3 is a schematic diagram of another TOF application scenario provided by an embodiment of the present application;
图4是本申请实施例提供的一种基于图3的多相机测距场景示意图;FIG. 4 is a schematic diagram of a multi-camera ranging scene based on FIG. 3 provided by an embodiment of the present application;
图5是本申请实施例提供的一种多相机测距系统架构示意图;FIG. 5 is a schematic diagram of the architecture of a multi-camera ranging system provided by an embodiment of the present application;
图6是本申请实施例提供的一种抗干扰测距装置的架构示意图;FIG. 6 is a schematic structural diagram of an anti-interference ranging device provided by an embodiment of the present application;
图7是本申请实施例提供的一种抗干扰测距装置的结构示意图;FIG. 7 is a schematic structural diagram of an anti-interference ranging device provided by an embodiment of the present application;
图8是本申请实施例提供的一种发射端的流程示意图;FIG. 8 is a schematic flowchart of a transmitting end provided by an embodiment of the present application;
图9是本申请实施例提供的一种二进制随机数的信号示意图;FIG. 9 is a schematic diagram of a binary random number signal provided by an embodiment of the present application;
图10是本申请实施例提供的一种随机数信号和载波信号的示意图;FIG. 10 is a schematic diagram of a random number signal and a carrier signal provided by an embodiment of the present application;
图11是本申请实施例提供的一种PPM调制示意图;FIG. 11 is a schematic diagram of a PPM modulation provided by an embodiment of the present application;
图12是本申请实施例提供的一种BPSK调制器的波形示意图;FIG. 12 is a schematic diagram of a waveform of a BPSK modulator provided by an embodiment of the present application;
图13是本申请实施例提供的另一种抗干扰测距装置的结构示意图;FIG. 13 is a schematic structural diagram of another anti-interference ranging device provided by an embodiment of the present application;
图14是本申请实施例提供的一种接收端的流程示意图;FIG. 14 is a schematic flowchart of a receiving end provided by an embodiment of the present application;
图15是本申请实施例提供的一种第一脉冲光和第二脉冲光的信号示意图;15 is a schematic diagram of signals of a first pulsed light and a second pulsed light provided by an embodiment of the present application;
图16是本申请实施例提供的一种以方波信号为例的信号示意图;FIG. 16 is a schematic diagram of a signal using a square wave signal as an example according to an embodiment of the present application;
图17是本申请实施例提供的一种DLL结构示意图;FIG. 17 is a schematic diagram of a DLL structure provided by an embodiment of the present application;
图18是是本申请实施例提供的另一种TOF测距原理示意图;FIG. 18 is a schematic diagram of another TOF ranging principle provided by an embodiment of the present application;
图19是本申请实施例提供的一种连续波曝光调制四次的示意图;FIG. 19 is a schematic diagram of four continuous wave exposure modulation provided by an embodiment of the present application;
图20是本申请实施例提供的一种连续波曝光调制两次的示意图;20 is a schematic diagram of two continuous wave exposure modulation provided by an embodiment of the present application;
图21是本申请实施例提供的一种脉冲波曝光调制两次的示意图;FIG. 21 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application;
图22是本申请实施例提供的一种脉冲波曝光调制一次的示意图;FIG. 22 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application;
图23是本申请实施例提供的一种抗干扰测距方法的示意图;FIG. 23 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application;
图24是本申请实施例提供的一种抗干扰测距方法的示意图;FIG. 24 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application;
图25是本申请实施例提供的一种设备的结构示意图。FIG. 25 is a schematic structural diagram of a device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例进行描述。The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序;并且术语“第一”、“第二”、“第三”和“第四”等描述的对象也可以是相同的对象,或者彼此存在包含或者其他关系。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of this application and the drawings are used to distinguish different objects, not to describe a specific order ; And the objects described by the terms "first", "second", "third" and "fourth" may also be the same objects, or contain each other or have other relationships. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。The reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具 有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor. Through the illustration, both the application running on the computing device and the computing device can be components. One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed among two or more computers. In addition, these components can be executed from various computer readable media having various data structures stored thereon. The component can be based on, for example, a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
首先,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。First of all, some terms in this application are explained to facilitate the understanding of those skilled in the art.
(1)二进制相移键控(Binary Phase Shift Keying,BPSK),是把模拟信号转换成数据值的转换方式之一,利用偏离相位的复数波浪组合来表现信息键控移相方式。BPSK使用了基准的正弦波和相位反转的波浪,使一方为0,另一方为1,从而可以同时传送接受2值(1比特)的信息。(1) Binary Phase Shift Keying (BPSK) is one of the conversion methods for converting analog signals into data values. It uses a combination of complex waves that deviate from the phase to express the information keying phase shift method. BPSK uses a standard sine wave and a phase-reversed wave, making one side 0 and the other side 1, so that two-value (1 bit) information can be transmitted and accepted at the same time.
(2)脉冲位置调制(Pulse Position Modulation,PPM),通过调制信号只使载波脉冲系列中每一个脉冲产生的时间发生改变,而不改变其形状和幅度,且每一个脉冲产生时间的变化量比例于调制信号电压的幅度,与调制信号的频率无关。(2) Pulse position modulation (Pulse Position Modulation, PPM), by modulating the signal, only the generation time of each pulse in the carrier pulse series is changed, without changing its shape and amplitude, and the proportion of the change in the generation time of each pulse Regarding the amplitude of the modulating signal voltage, it has nothing to do with the frequency of the modulating signal.
(3)垂直腔面发射激光器(Vertical-Cavity Surface-Emitting Laser,VCSEL),是一种半导体,其激光垂直于顶面射出,与一般用切开的独立芯片制程,激光由边缘射出的边射型激光有所不同。(3) Vertical-Cavity Surface-Emitting Laser (VCSEL) is a type of semiconductor. The laser is emitted perpendicular to the top surface. It is the same as the independent chip manufacturing process that is generally used for cutting. The laser is emitted from the edge. The type of laser is different.
(4)随机数是专门的随机试验的结果。随机数最重要的特性是:它所产生的后面的那个数与前面的那个数毫无关系。(4) The random number is the result of a special random experiment. The most important characteristic of random numbers is that the number behind it has nothing to do with the number in front.
(5)伪随机数是用确定性的算法计算出来自[0,1]均匀分布的随机数序列。并不真正的随机,但具有类似于随机数的统计特征,如均匀性、独立性等。(5) Pseudo-random numbers are calculated from a uniformly distributed random number sequence from [0,1] using a deterministic algorithm. It is not truly random, but has statistical characteristics similar to random numbers, such as uniformity and independence.
(6)基带信号,是信息源发出的没有经过调制(进行频谱搬移和变换)的原始电信号,其特点是频率较低,信号频谱从零频附近开始,具有低通形式。(6) The baseband signal is the original electrical signal sent by the information source without modulation (spectrum shifting and transformation). It is characterized by a low frequency. The signal spectrum starts near zero frequency and has a low-pass form.
(7)载波,或称载波信号,是指被调制以传输信号的波形。基带信号的频带很宽(理论上是无限宽),但由于带通原因,几乎不存在无限带宽的传输媒体,所以基带信号无法在普通介质上进行远距离传输,否则码间干扰和衰减无法使信号得到恢复,所以用载波对基带信号进行调制,减小带宽,可以使信号可靠传输,减小衰减,接受端再进行解调还原原来的数字信号。(7) Carrier, or carrier signal, refers to the waveform that is modulated to transmit the signal. The frequency band of the baseband signal is very wide (infinitely wide in theory), but due to the bandpass, there is almost no transmission medium with infinite bandwidth, so the baseband signal cannot be transmitted over a long distance on the ordinary medium, otherwise the inter-symbol interference and attenuation cannot be used. The signal is recovered, so the baseband signal is modulated with the carrier to reduce the bandwidth, so that the signal can be transmitted reliably, and the attenuation can be reduced. The receiving end will demodulate and restore the original digital signal.
(8)延迟锁相环(Delay-locked Loop,DLL)技术广泛应用于时序领域中,是一根延迟量可控制的延迟线。其中,延迟线是用于将电信号延迟一段时间的元件或器件。延迟线应在通带内有平坦的幅频特性和一定的相移特性(或延时频率特性),要有适当的匹配阻抗,衰减要小。(8) Delay-locked loop (DLL) technology is widely used in the field of timing, and it is a delay line with a controllable delay. Among them, the delay line is an element or device used to delay an electrical signal for a period of time. The delay line should have flat amplitude-frequency characteristics and certain phase shift characteristics (or delay frequency characteristics) in the passband, with appropriate matching impedance and small attenuation.
(9)模数转换器(analogue-to-digital conversion,ADC),即A/D转换器,通常是指一个将模拟信号转变为数字信号的电子元件。通常的模数转换器是将一个输入电压信号转换为一个输出的数字信号。由于数字信号本身不具有实际意义,仅仅表示一个相对大小。故任何一个模数转换器都需要一个参考模拟量作为转换的标准,比较常见的参考标准为最大的可转换信号大小。而输出的数字量则表示输入信号相对于参考信号的大小。(9) Analog-to-digital conversion (ADC), that is, A/D converter, usually refers to an electronic component that converts an analog signal into a digital signal. The usual analog-to-digital converter converts an input voltage signal into an output digital signal. Since the digital signal itself has no practical meaning, it only represents a relative magnitude. Therefore, any analog-to-digital converter needs a reference analog quantity as the conversion standard, and the most common reference standard is the largest convertible signal size. The output digital quantity represents the magnitude of the input signal relative to the reference signal.
(10)伪随机数周期是指具有周期性循环往复的伪随机数列中不重复伪随机数的个数,或产生伪随机数迭代过程中一个循环所含数字个数。用某递推公式按一定程序产生伪随机数,一般从某—初始值起步产生伪随机数列x1,x2,…;若存在m,使对任意n,有 xn+m=xn(n=1,2…),则满足上述关系的最小m称做伪随机数的周期。(10) Pseudo-random number cycle refers to the number of pseudo-random numbers that do not repeat in a pseudo-random number sequence with periodic recurring cycles, or the number of numbers contained in a cycle in the iterative process of generating pseudo-random numbers. Use a certain recurrence formula to generate pseudo-random numbers according to a certain procedure. Generally, a pseudo-random number sequence x1, x2, ... is generated starting from a certain initial value; if there is m, for any n, xn+m=xn(n=1, 2...), then the minimum m that satisfies the above relationship is called the period of pseudo-random number.
(11)二进制启闭键控(On-Off Keying,OOK),又名二进制振幅键控,它是以单极性不归零码序列来控制正弦载波的开启与关闭。(11) Binary On-Off Keying (OOK), also known as Binary Amplitude Keying, uses a unipolar non-return-to-zero code sequence to control the opening and closing of the sinusoidal carrier.
(12)多进制相移键控(multiple phase-shiftkeying,MPSK)中,最常用的是四相相移键控,即QPSK(QuadraturePhaseShiftKeying),在卫星信道中传送数字电视信号时采用的就是QPSK调制方式。可以看成是由两个2PSK调制器构成的。输入的串行二进制信息序列经串—并变换后分成两路速率减半的序列,由电平转换器分别产生双极性二电平信号I(t)和Q(t),然后对载波Acos2πfct和Asin2πfct进行调制,相加后即可得到QPSK信号。(12) Among multiple phase-shift keying (MPSK), the most commonly used is quadrature phase-shift keying, namely QPSK (Quadrature Phase Shift Keying), which is QPSK when transmitting digital TV signals in satellite channels. Modulation. It can be regarded as composed of two 2PSK modulators. The input serial binary information sequence is converted into two-way rate halved sequence after serial-parallel conversion. The level converter generates bipolar two-level signals I(t) and Q(t) respectively, and then the carrier Acos2πfct It is modulated with Asin2πfct, and the QPSK signal can be obtained after the addition.
(13)三维(3-dimension,3D)既是坐标轴的三个轴,即x轴、y轴、z轴,其中x表示左右空间,y表示上下空间,z表示前后空间。但在实际应用方面,一般把用X轴形容左右运动,而Z轴用来形容上下运动,Y轴用来形容前后运动,形成了人的视觉立体感。(13) Three-dimensional (3-dimension, 3D) refers to the three axes of the coordinate axis, namely x-axis, y-axis, and z-axis, where x represents left and right space, y represents upper and lower space, and z represents front and rear space. However, in practical applications, the X axis is generally used to describe the left and right movement, the Z axis is used to describe the up and down movement, and the Y axis is used to describe the front and back movement, forming a person's visual three-dimensional sense.
(14)相位(phase)是对于一个波,特定的时刻在它循环中的位置,即一种它是否在波峰、波谷或它们之间的某点的标度。相位描述信号波形变化的度量,通常以度(角度)作为单位,也称作相角。当信号波形以周期的方式变化,波形循环一周即为360°。(14) Phase is the position of a wave in its cycle at a specific moment, that is, a scale of whether it is at the peak, trough or some point between them. Phase describes the measurement of signal waveform change, usually in degrees (angle), also known as phase angle. When the signal waveform changes in a periodic manner, the waveform cycle is 360°.
(15)飞行时间(Time of flight,ToF)测距方法属于双向测距技术,主要利用信号在两个异步收发机(Transceiver)(或被反射面)之间往返的飞行时间来测量节点间的距离。传统的测距技术分为双向测距技术和单向测距技术。在信号电平比较好调制或在非视距视线环境下,基于RSSI(Received Signal Strength Indication,接收的信号强度指示)测距方法估算的结果比较理想;在视距视线环境下,基于ToF距离估算方法能够弥补基于RSSI距离估算方法的不足。但是ToF测距方法有两个关键的约束:一是发送设备和接收设备必须始终同步;二是接收设备提供信号的传输时间的长短。为了实现时钟同步,ToF测距方法采用了时钟偏移量来解决时钟同步问题。(15) Time of flight (ToF) ranging method is a two-way ranging technology, which mainly uses the flight time between two asynchronous transceivers (Transceiver) (or reflected surface) to measure inter-node distance. Traditional ranging technology is divided into two-way ranging technology and one-way ranging technology. In a better signal level modulation or in a non-line-of-sight environment, the estimated result based on RSSI (Received Signal Strength Indication) ranging method is ideal; in a line-of-sight environment, it is estimated based on ToF distance The method can make up for the shortcomings of the distance estimation method based on RSSI. However, the ToF ranging method has two key constraints: one is that the sending device and the receiving device must always be synchronized; the other is the length of the signal transmission time provided by the receiving device. In order to achieve clock synchronization, the ToF ranging method uses a clock offset to solve the clock synchronization problem.
为了便于对TOF相机成像的理解,下面列举了一些常见的应用场景,可以包括如下三种场景。In order to facilitate the understanding of TOF camera imaging, some common application scenarios are listed below, which can include the following three scenarios.
场景一:应用于车辆以及相关系统。Scenario 1: Applied to vehicles and related systems.
在汽车应用中,TOF可以被用于自动驾驶、防撞自动刹车等等。在飞行时间(TOF)原理的支持下,搭载在车辆上的系统可精确检测驾驶员身体和头部位置,甚至在其戴眼镜或太阳镜的情况下捕获其眨眼动作,以判断驾驶员是否注意力足够集中、是否正疲劳驾驶,从而启动相应对策。譬如,通过振动座椅或警告音。驾驶员注意力越不集中,汽车就越会提起注意。为了快速和准确地做出响应,辅助系统和紧急制动系统可在潜在紧急情况发生之前自动激活。此外,该技术还可以通过手部运动或身体姿势控制车载娱乐系统或车用空调,甚至在车外实现全新的辅助和安全功能,比如开门辅助设备,在停车场或家用地库时防止车门打开后撞上其它车、墙壁或天花板。In automotive applications, TOF can be used for automatic driving, collision avoidance automatic braking, and so on. Supported by the time-of-flight (TOF) principle, the system mounted on the vehicle can accurately detect the driver's body and head position, and even capture the blinking motion of the driver when he wears glasses or sunglasses to determine whether the driver is paying attention Enough concentration and whether you are driving with fatigue, so as to initiate corresponding countermeasures. For example, by vibrating the seat or warning sound. The less the driver’s attention is, the more the car will pay attention. In order to respond quickly and accurately, the auxiliary system and the emergency braking system can be automatically activated before a potential emergency occurs. In addition, the technology can also control the in-vehicle entertainment system or car air conditioner through hand movement or body posture, and even implement new auxiliary and safety functions outside the car, such as door opening assist devices, to prevent the car door from opening when in a parking lot or a home basement. After hitting another car, wall or ceiling.
具体地,请参见图1,图1是本申请实施例提供的一种TOF应用场景示意图;如图1所示,搭载TOF系统(或TOF相机)的车辆,可以通过该技术测量前一辆车辆的距离D。当距离D小于预设的安全距离时,降低车速或者停车。其中,搭载TOF的车辆可以为无人 驾驶汽车。Specifically, please refer to FIG. 1, which is a schematic diagram of a TOF application scenario provided by an embodiment of the present application; as shown in FIG. 1, a vehicle equipped with a TOF system (or TOF camera) can measure the previous vehicle through this technology The distance D. When the distance D is less than the preset safety distance, reduce the vehicle speed or stop. Among them, the vehicle equipped with TOF can be an unmanned car.
场景二:应用于人机交互领域。Scenario 2: Applied in the field of human-computer interaction.
TOF提供了一种实时的远方影像,所以可以非常简单地用来记录人体动作。这使得许多消费电子类产品(比如电视)有了全新的交互方式。通过搭载TOF传感器,可以取得目标物体的深度数据。具体地,红外投射器不断向外发出红外脉冲,而红外脉冲光照到不同距离的物体反射回来的相位延迟不一致。之后红外感应器用来接收反馈的消息,不同相位延迟的脉冲光会在红外感应器上由四相位接收输出不同的相位值。从而确定每个像素拍摄到物体的深度信息,将不同深度的物体区别开来。应用该技术可以实现人机互动,在游戏方面的应用更加广泛。TOF provides a real-time remote image, so it can be used very simply to record human movements. This makes many consumer electronic products (such as TV) have a new way of interaction. By carrying the TOF sensor, the depth data of the target object can be obtained. Specifically, the infrared projector continuously sends out infrared pulses, and the phase delays of the infrared pulses reflected on objects at different distances are inconsistent. Then the infrared sensor is used to receive the feedback message, and the pulsed light with different phase delays will be received by the four-phase on the infrared sensor and output different phase values. In this way, the depth information of the object captured by each pixel is determined, and objects of different depths can be distinguished. The application of this technology can realize human-computer interaction, and the application in games is more extensive.
具体地,请参见图2,图2是本申请实施例提供的另一种TOF应用场景示意图;如图2所示,搭载TOF系统的显示器可以识别人体对象的动作变化。当显示器运行某一款需要根据人体动作操控角色的游戏时,通过TOF相机识别人体对象的动作变化,以实现对游戏中角色的相应控制。Specifically, please refer to FIG. 2, which is a schematic diagram of another TOF application scenario provided by an embodiment of the present application; as shown in FIG. 2, a display equipped with a TOF system can recognize movement changes of a human object. When the display is running a game that needs to control the character according to the human movement, the TOF camera is used to recognize the movement of the human object, so as to realize the corresponding control of the character in the game.
场景三:应用于机器视觉。Scenario 3: Applied in machine vision.
在工业机器视觉的应用中,机器人通过TOF相机来进行物体分类和精准定位安置,除此之外,在机器人技术、人脸识别和地球地貌测绘方面,TOF都有着不可取代的地位。具体地,请参见图3,图3是本申请实施例提供的又一种TOF应用场景示意图;在图示的3D场景中,通过TOF系统中发生向座椅发射电磁波,然后通过接收器接收前述电磁波反馈的信号。在TOF系统通过计时器计算时间。根据前述的信息计算座椅与TOF相机的距离。In the application of industrial machine vision, robots use TOF cameras for object classification and precise positioning and placement. In addition, TOF has an irreplaceable position in robotics, face recognition, and geomorphological mapping. Specifically, please refer to FIG. 3, which is a schematic diagram of another TOF application scenario provided by an embodiment of the present application; in the 3D scenario shown in the figure, electromagnetic waves are emitted to the seat through the TOF system, and then the foregoing is received by the receiver. Electromagnetic wave feedback signal. In the TOF system, the time is calculated by a timer. Calculate the distance between the seat and the TOF camera based on the aforementioned information.
在多个TOF相机对目标物体进行测距时,需要考虑提高TOF相机之间的信号的抗干扰能力。请参见图4,图4是本申请实施例提供的一种基于图3的多相机测距场景示意图;如图4所示,相机1向目标物体(图中以自行车为例)照射用于测距的信号1,根据反射的信号1’测量相机1与目标物体之间的距离。同时,相机2向目标物体发送信号2,根据接收额信号2’测量相机2与目标物体之间的距离。但是,由于存在2个相机同时测距,相机1可能会接收到相机2发送的信号2的反馈信号2’,而造成距离测量的偏差。例如,当场景中存在多台TOF相机(即TOF模组)时,TOF模组1发出的主动光很可能被另外一个TOF模组(例如模组2)接收到,如果模组2曝光的时候恰好接收到了模组1发射的脉冲光波,则进行测距计算时结果会出错。When multiple TOF cameras measure the distance of the target object, it is necessary to consider improving the anti-interference ability of the signal between the TOF cameras. Please refer to FIG. 4, which is a schematic diagram of a multi-camera ranging scene based on FIG. 3 provided by an embodiment of the present application; as shown in FIG. The distance signal 1 is used to measure the distance between the camera 1 and the target object according to the reflected signal 1'. At the same time, the camera 2 sends a signal 2 to the target object, and the distance between the camera 2 and the target object is measured according to the received signal 2'. However, due to the presence of two cameras for distance measurement at the same time, the camera 1 may receive the feedback signal 2'of the signal 2 sent by the camera 2, resulting in deviation of the distance measurement. For example, when there are multiple TOF cameras (ie TOF modules) in the scene, the active light emitted by TOF module 1 is likely to be received by another TOF module (such as module 2). If module 2 is exposed If the pulsed light wave emitted by the module 1 is received, the result will be wrong when the distance measurement calculation is performed.
可以理解的是,图1-图4所示应用场景只是本申请实施例中的一种示例性场景,本申请实施例中的应用场景包括但不仅限于以上应用场景。It is understandable that the application scenarios shown in FIGS. 1 to 4 are only an exemplary scenario in the embodiment of the present application, and the application scenarios in the embodiment of the present application include but are not limited to the above application scenarios.
上面介绍了几种TOF测距的应用场景,下面结合图4的应用场景,对本申请实施例基于的一种系统架构进行描述,请参见图5,图5是本申请实施例提供的一种多相机测距系统架构示意图;如图5所示,该系统架构包括了测距模组1(即TOF模组,应用于深度相机即TOF相机)和测距模组2。本申请实施例应用于多TOF相机存在的测距系统中。为了解决多相机工作时的互相干扰的问题,本申请实施例让每台相机进行测距时发射的像素pixel参考波形互相正交,从而让相机进行TOF曝光(相关接收)时不会受干扰信号影响。The above introduces several application scenarios of TOF ranging. The following describes a system architecture based on the embodiment of this application in conjunction with the application scenario of FIG. 4. Please refer to FIG. 5. FIG. A schematic diagram of the camera ranging system architecture; as shown in FIG. 5, the system architecture includes a ranging module 1 (that is, a TOF module, applied to a depth camera, that is, a TOF camera) and a ranging module 2. The embodiments of the present application are applied to a ranging system with multiple TOF cameras. In order to solve the problem of mutual interference when multiple cameras work, the embodiment of the present application allows the pixel reference waveforms emitted by each camera to be orthogonal to each other when performing distance measurement, so that the camera will not be affected by interference signals when performing TOF exposure (related reception) Influence.
其中,测距模组1和测距模组2的结构组成相同,本申请实施例以其中一个测距模组 (如测距模组1)为例进行说明。测距模组包括了发光器、光源驱动器、测距芯片和镜头。具体地,测距模组1包括发光器1、光源驱动器1、测距芯片1和镜头1组成。可选地,多相机测距系统架构中还可以包括多个其他测距模组,图5中以2个测距模组为例进行说明。Wherein, the ranging module 1 and the ranging module 2 have the same structural composition, and the embodiment of the present application takes one of the ranging module (such as the ranging module 1) as an example for description. The ranging module includes a light emitter, a light source driver, a ranging chip and a lens. Specifically, the ranging module 1 includes a light emitter 1, a light source driver 1, a ranging chip 1, and a lens 1. Optionally, the architecture of the multi-camera ranging system may also include multiple other ranging modules. In FIG. 5, two ranging modules are used as an example for illustration.
具体地,测距芯片还可以包括控制器、像素阵列和模数转换器;其中,以测距芯片1为例,控制器1向激光驱动器(或光源驱动器)1发送驱动信号,激光驱动器1控制激光器1发送包含亮暗信息(即与驱动信号对应的)脉冲光。在脉冲光照射目标物体而发生反射后,反射的脉冲光被镜头1接收。这时,像素阵列1根据控制器1产生的有延迟的驱动信号和接收的反射脉冲光,进行信号结果的计算,并输出模拟信号。将该模拟信号通过模数转换器1转换为数字信号,以进行下一步的距离结果的计算。Specifically, the ranging chip may also include a controller, a pixel array, and an analog-to-digital converter; where, taking the ranging chip 1 as an example, the controller 1 sends a driving signal to the laser driver (or light source driver) 1, and the laser driver 1 controls The laser 1 transmits pulsed light containing bright and dark information (that is, corresponding to the driving signal). After the pulsed light irradiates the target object and is reflected, the reflected pulsed light is received by the lens 1. At this time, the pixel array 1 calculates the signal result according to the delayed drive signal generated by the controller 1 and the received reflected pulse light, and outputs an analog signal. The analog signal is converted into a digital signal by the analog-to-digital converter 1 to perform the next calculation of the distance result.
可以理解的是,图5中的系统架构只是本申请实施例中的一种示例性的实施方式,本申请实施例中的系统架构包括但不仅限于以上系统架构。It is understandable that the system architecture in FIG. 5 is only an exemplary implementation in the embodiment of the present application, and the system architecture in the embodiment of the present application includes but is not limited to the above system architecture.
下面对本申请实施例所涉及的测距模组内的一种具体架构进行描述。请参见图6,图6是本申请实施例提供的一种抗干扰测距装置的架构示意图;如图6所示,该系统架构以测距模组1为例进行说明,其中包括了测距模组10(对应图5中的测距模组1)和测距电路(或称测距模块)20;具体的,测距模组10可以包括测距芯片101(对应图5中的测距芯片1)、光源驱动器102(对应图5中的光源驱动器1)、发光器103(对应图5中的发光器1)以及即镜头(对应图5中的测距模组1,一般镜头可以包含滤光片)104。其中,The following describes a specific architecture in the ranging module involved in the embodiment of the present application. Please refer to FIG. 6, which is a schematic diagram of the architecture of an anti-interference ranging device provided by an embodiment of the present application; as shown in FIG. 6, the system architecture is illustrated by taking the ranging module 1 as an example, which includes ranging The module 10 (corresponding to the distance measurement module 1 in FIG. 5) and the distance measurement circuit (or called the distance measurement module) 20; specifically, the distance measurement module 10 may include a distance measurement chip 101 (corresponding to the distance measurement module in FIG. 5). Chip 1), light source driver 102 (corresponding to light source driver 1 in FIG. 5), light emitter 103 (corresponding to light emitter 1 in FIG. 5), and the lens (corresponding to distance measuring module 1 in FIG. 5). A general lens can include Filter) 104. in,
测距芯片1(101)内部可以包含:随机/伪随机数产生器1010、PPM调制器(即脉冲位置调制器或称脉位调制器)1011、BPSK调制器(即二进制相移键控调制器)1012、锁相环电路1013、延迟线电路DLL1014、像素(pixel)阵列1015、模数转换器1016。具体地,首先对TOF测距原理进行描述,TOF系统内部的锁相环电路1013产生一个确定频率(例如20MHz)的方波,该波形通过光源驱动器1(102)驱使发光器1(103,如VCSEL/LED)发光。反射回来的光则通过镜头1(104)被聚焦到像素阵列1(1015),像素阵列1(1015)可以采用同频(例如20MHz)但存在相位延迟(0度、90度、180度、270度)的开关电路对接收到的光信号进行积分操作并输出相应的数值,通过相位计算则可计算出飞行时间导致的相位延迟。其中,随机/伪随机数产生器1010用于产生控制信号相位的随机数;以随机数产生器为例,随机数产生器用于产生0或1的随机数字随机数。The ranging chip 1 (101) can include: random/pseudo-random number generator 1010, PPM modulator (ie pulse position modulator or pulse position modulator) 1011, BPSK modulator (ie binary phase shift keying modulator) ) 1012, a phase-locked loop circuit 1013, a delay line circuit DLL1014, a pixel (pixel) array 1015, and an analog-to-digital converter 1016. Specifically, firstly, the principle of TOF ranging is described. The phase-locked loop circuit 1013 inside the TOF system generates a square wave with a certain frequency (for example, 20MHz), and this waveform drives the light emitter 1 (103, such as VCSEL/LED) light up. The reflected light is focused on the pixel array 1 (1015) through the lens 1 (104). The pixel array 1 (1015) can use the same frequency (for example, 20MHz) but there is a phase delay (0 degree, 90 degree, 180 degree, 270 degree). The switch circuit of the degree) integrates the received optical signal and outputs the corresponding value. The phase delay caused by the flight time can be calculated through the phase calculation. Among them, the random/pseudo-random number generator 1010 is used to generate a random number of the control signal phase; taking the random number generator as an example, the random number generator is used to generate a random number of 0 or 1 random number.
脉冲位置调制器1011(以下简称PPM调制器),用于根据随机数信号生成抗干扰能力强的基带信号。当随机数信号中出现连续相同的随机数(如连续的“0”,或者连续的“01”)时,在基带信号中,与连续相同的随机数相位同步的信号波段内的相位不会出现连续重复(例如,0,0,0对应的相位都是0度,但是由于PPM调制器1011的作用,0度相位与下一个0度相位之间会有一定的时间间隔)。当随机数信号中没有出现多个连续相同的随机数时,同样可以根据随机数的脉冲位置映射表确定随机数对应的脉冲位置情况,例如随机数信号中某一段随机数为“01011001”,还是可以通过PPM调制器1011进行调制。可以理解的是,“0”,“00”以及“001”这些都可以认为是一种随机数,本申请实施例对此不作限定。;并且在随机数信号中出现长连0或者长连1的情况下,通过加入PPM调制器1011使得各个测距相机发送的脉冲光之间的相位差异变大,即使本相机接受了其他相机照射在物体上 的脉冲光,也可以有效地经过算法过滤和屏蔽。The pulse position modulator 1011 (hereinafter referred to as the PPM modulator) is used to generate a baseband signal with strong anti-interference ability according to the random number signal. When the same continuous random number (such as continuous "0" or continuous "01") appears in the random number signal, in the baseband signal, the phase in the signal band synchronized with the continuous same random number will not appear Continuous repetition (for example, the phases corresponding to 0, 0, and 0 are all 0 degrees, but due to the effect of the PPM modulator 1011, there will be a certain time interval between the 0 degree phase and the next 0 degree phase). When there are no multiple consecutive identical random numbers in the random number signal, the pulse position corresponding to the random number can also be determined according to the pulse position mapping table of the random number. For example, a certain segment of the random number in the random number signal is "01011001", or It can be modulated by the PPM modulator 1011. It is understandable that "0", "00" and "001" can all be regarded as a kind of random number, which is not limited in the embodiment of the present application. ; And in the case of long continuous 0 or long continuous 1 in the random number signal, by adding the PPM modulator 1011, the phase difference between the pulsed light sent by each ranging camera becomes larger, even if the camera is illuminated by other cameras The pulsed light on the object can also be effectively filtered and shielded by the algorithm.
在一种可能的实现方式中,根据随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将随机数信号调制成基带信号,其中,第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;第一调制阶数为多个预设的调制阶数中的一个;多个映射关系表中每一个映射关系表包括所述每一种随机数与基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。例如,PPM调制器接收随机数信号,分析出该随机数信号中的每一个随机数。根据PPM调制器中的第一映射关系表,确定随机数信号中每一个随机数对应的基带信号的脉冲位置;将该随机数信号调制成基带信号。其中,第一映射关系表与PPM调制器的调制阶数相关。例如,8阶调制阶数对应8阶的映射关系表,16阶调制阶数对应16阶的映射关系表。可选地,PPM调制器可以只存储一种调制阶数以及该种调制阶数对应的映射关系表;或者存储多种调制阶数以及多种调制阶数中每一种调制阶数对应一张映射关系表。进一步可选地,PPM调制器只存储若干项调制阶数;当用户选了某一个调制阶数后,生成对应的映射关系表。本申请实施例对此不作限定。In a possible implementation manner, the random number signal is modulated into a baseband signal according to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, where the first mapping relationship table belongs to multiple One of the mapping relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each mapping relationship table in the plurality of mapping relationship tables includes each of the random The mapping relationship between the number and the pulse position of the baseband signal; the multiple mapping relationship tables correspond to the multiple preset modulation orders one-to-one. For example, the PPM modulator receives a random number signal and analyzes each random number in the random number signal. According to the first mapping table in the PPM modulator, determine the pulse position of the baseband signal corresponding to each random number in the random number signal; modulate the random number signal into a baseband signal. Wherein, the first mapping relationship table is related to the modulation order of the PPM modulator. For example, the 8th order modulation order corresponds to the 8th order mapping table, and the 16th order modulation order corresponds to the 16th order mapping table. Optionally, the PPM modulator can store only one kind of modulation order and the mapping relationship table corresponding to this kind of modulation order; or store multiple modulation orders and one for each modulation order of the multiple modulation orders Mapping table. Further optionally, the PPM modulator only stores several modulation orders; when the user selects a certain modulation order, a corresponding mapping relationship table is generated. The embodiment of the application does not limit this.
相移键控调制器1012(即二进制相移键控调制器),用于调制载波信号和基带信号以生成第一信号。可选地,相移键控调制器1012可以包括二进制相移键控调制器(本申请实施例以此为例进行说明)、四进制相移键控调制器、八进制相移键控调制器、十六进制相移键控调制器或十二进制相移键控调制器。The phase shift keying modulator 1012 (ie, binary phase shift keying modulator) is used to modulate the carrier signal and the baseband signal to generate the first signal. Optionally, the phase shift keying modulator 1012 may include a binary phase shift keying modulator (the embodiment of this application is described as an example), a quaternary phase shift keying modulator, and an octal phase shift keying modulator. , Hexadecimal phase shift keying modulator or decimal binary phase shift keying modulator.
可以理解的是,PSK调制是将调制信号的信息附加在载波的相位上,例如载波的0相位表示调制信号的“1”电平,180°相位表示调制信号的“0”电平。如果将载波的相位进一步细分,分成m个不同的相位,一般m=2N,N是正整数。常见的有m=4,8,16,32,分别称为4PSK、8PSK等。这样,每个具有特定相位的载波就代表N比特的信息量。It can be understood that PSK modulation is to add the information of the modulation signal to the phase of the carrier. For example, the 0 phase of the carrier represents the "1" level of the modulation signal, and the 180° phase represents the "0" level of the modulation signal. If the phase of the carrier is further subdivided into m different phases, generally m=2N, and N is a positive integer. The common ones are m=4, 8, 16, 32, which are called 4PSK, 8PSK, etc. respectively. In this way, each carrier with a specific phase represents N bits of information.
锁相环电路1013,用于产生一定固定周期的的载波信号,例如,锁相环电路1013产生的方波的脉冲周期为Tp。The phase-locked loop circuit 1013 is used to generate a carrier signal with a fixed period. For example, the pulse period of the square wave generated by the phase-locked loop circuit 1013 is Tp.
延迟线电路DLL1014,用于根据预设的相位延迟值,对前述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;前述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。The delay line circuit DLL1014 is used to perform multiple phase delay operations on the aforementioned first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; each of the aforementioned multiple phase delay operations corresponds to a pixel internal Integral switch signal.
像素阵列1(1015),用于将延迟后的第一信号和目标物体反射的第一信号进行积分操作,输出用于计算距离的各项模拟参数。The pixel array 1 (1015) is used for integrating the delayed first signal and the first signal reflected by the target object, and outputting various simulation parameters for calculating the distance.
模数转换器1(1016)用于将各项模拟参数转化为数字参数。The analog-to-digital converter 1 (1016) is used to convert various analog parameters into digital parameters.
测距电路20,用于根据数字参数和预设的测距算法或公式,得出测距相机与目标物体之间的距离。可选地,当在硬件结构上采用测距电路时,是通过一定的电路结构完成对输入信号的计算并输出距离结果。可选地,当通过软件程序完成对应测距功能时,也就是通过预设的计算机程序或者代码对输入的信号作为运算参数,然后输出相应的距离结果。The ranging circuit 20 is used to obtain the distance between the ranging camera and the target object according to the digital parameters and the preset ranging algorithm or formula. Optionally, when the distance measurement circuit is adopted in the hardware structure, the calculation of the input signal is completed through a certain circuit structure and the distance result is output. Optionally, when the corresponding distance measurement function is completed through a software program, that is, the input signal is used as an operation parameter through a preset computer program or code, and then the corresponding distance result is output.
可以理解的是,图6中的系统架构的只是本申请实施例中的一种示例性的实施方式,本申请实施例中的应用场景包括但不仅限于以上应用场景。It can be understood that the system architecture in FIG. 6 is only an exemplary implementation in the embodiments of the present application, and the application scenarios in the embodiments of the present application include but are not limited to the above application scenarios.
下面结合上述图6所示的系统架构,对本申请中提出的技术问题进行具体分析和解决。In the following, in conjunction with the system architecture shown in FIG. 6 above, the technical problems proposed in this application will be specifically analyzed and resolved.
请参见图7,图7是本申请实施例提供的一种抗干扰测距装置的结构示意图;该抗干扰测距装置可以应用于抗干扰测距装置的发射端。其中,该抗干扰测距装置包括随机/伪随机数产生器1010、脉冲位置调制器1011(即PPM调制器)、二进制相移键控调制器1012(即BPSK调制器)、锁相环电路1013、激光驱动器102和发光器103。各个电路或者模块的连接方式可以如图7所示。可选地,该装置可以包括随机/伪随机数产生器1010、锁相环电路1013、激光驱动器102和发光器103。Please refer to FIG. 7, which is a schematic structural diagram of an anti-interference ranging device provided by an embodiment of the present application; the anti-interference ranging device can be applied to the transmitting end of the anti-interference ranging device. Among them, the anti-interference ranging device includes a random/pseudo-random number generator 1010, a pulse position modulator 1011 (ie a PPM modulator), a binary phase shift keying modulator 1012 (ie a BPSK modulator), and a phase locked loop circuit 1013 , Laser driver 102 and light emitter 103. The connection mode of each circuit or module can be as shown in Figure 7. Optionally, the device may include a random/pseudo-random number generator 1010, a phase-locked loop circuit 1013, a laser driver 102, and a light emitter 103.
请参见图8,图8是本申请实施例提供的一种发射端的流程示意图;如图8所示,在参考图7所示的结构关系基础上,可以包括以下步骤:Please refer to FIG. 8. FIG. 8 is a schematic flowchart of a transmitting end provided by an embodiment of the present application; as shown in FIG. 8, based on the structural relationship shown in FIG. 7, the following steps may be included:
步骤1:设置随机数产生周期(Tr)、伪随机数周期(N)、锁相环脉冲产生周期(Tp)、PPM调制阶数(M)。Step 1: Set the random number generation period (Tr), pseudo-random number period (N), phase-locked loop pulse generation period (Tp), and PPM modulation order (M).
步骤2:随机数产生器1010按照Tr来产生随机数R或伪随机数产生器1010按照Tr、伪随机数周期N及预设的初始状态来产生伪随机数R。同时,并行的锁相环电路1013按照Tp来产生脉冲周期为Tp的方波L(对于BPSK调制器1012而言,L为载波),L与R相位同步。Step 2: The random number generator 1010 generates a random number R according to Tr, or the pseudo-random number generator 1010 generates a pseudo random number R according to Tr, a pseudo-random number period N and a preset initial state. At the same time, the parallel phase-locked loop circuit 1013 generates a square wave L with a pulse period of Tp according to Tp (for the BPSK modulator 1012, L is the carrier wave), and the L and R phases are synchronized.
步骤3:PPM调制器1011根据设置的调制阶数M和输入信号R,输出调制好的PPM信号P(对于BPSK调制器1012,P为基带信号),P与L相位同步。Step 3: The PPM modulator 1011 outputs the modulated PPM signal P (for the BPSK modulator 1012, P is the baseband signal) according to the set modulation order M and the input signal R, and the P and L phases are synchronized.
步骤4:BPSK调制器1012将载波L与基带信号P进行BPSK调制,输出调制后信号P1(P1信号为数字0或1的脉冲序列)。Step 4: The BPSK modulator 1012 performs BPSK modulation on the carrier L and the baseband signal P, and outputs a modulated signal P1 (the P1 signal is a pulse sequence of digital 0 or 1).
步骤5:P1信号经过光源驱动器102让发光器103(如VCSEL或LED)发出相应亮暗信息的脉冲光。Step 5: The P1 signal passes through the light source driver 102 to make the light emitter 103 (such as VCSEL or LED) emit pulsed light with corresponding bright and dark information.
其中,前述随机/伪随机数产生器1010,具体用于产生二进制随机数;前述二进制随机数控制基带信号的相位变化,最终控制发光器发送的波形相位。例如,二进制0对应相位0度,二进制1对应相位180度。可以理解的是,连续的二进制随机数可以看做随机数信号,请参见图9,图9是本申请实施例提供的一种二进制随机数的信号示意图;如图9所示,高电平1代表二进制数1,低电平0代表二进制数0。图9中列举了三种随机数信号,包括随机数信号1、随机数信号2和随机数信号3;其中,每种随机数信号都只是随机数信号中的某一段,用于实例性地描述随机数,并不代表一定的规律;0和1的出现是随机的。本申请实施例对随机数信号中的随机数情况不做限定。Among them, the aforementioned random/pseudo-random number generator 1010 is specifically used to generate a binary random number; the aforementioned binary random number controls the phase change of the baseband signal, and finally controls the phase of the waveform sent by the light emitter. For example, binary 0 corresponds to phase 0 degrees, and binary 1 corresponds to phase 180 degrees. It is understandable that a continuous binary random number can be regarded as a random number signal. Please refer to FIG. 9. FIG. 9 is a schematic diagram of a binary random number signal provided by an embodiment of the present application; as shown in FIG. 9, high level 1 Represents the binary number 1, and the low level 0 represents the binary number 0. Figure 9 lists three kinds of random number signals, including random number signal 1, random number signal 2 and random number signal 3; among them, each kind of random number signal is just a certain segment of the random number signal, which is used for example description Random numbers do not represent a certain rule; the appearance of 0 and 1 is random. The embodiment of the present application does not limit the random number in the random number signal.
在一种可能的实现方式中,前述装置还包括与前述BPSK调制器连接的锁相环电路;前述锁相环电路,用于根据预设周期产生载波信号,前述载波信号与前述随机数信号的相位相同。在一种可能的实现方式中,前述载波信号和前述基带信号的相位同步。例如,并行的锁相环电路1013用于按照Tp来产生脉冲周期为Tp的方波L(对于BPSK调制器而言,L为载波),L与R相位同步(即L中的一组波形的持续时间与随机数信号中一个随机数的持续时间相同,并且产生时间以及结束时间相同)。例如,请参见图10,图10是本申请实施例提供的一种随机数信号和载波信号的示意图;如图10所示,每一个随机数对应方波L中的一组波形(一般一组波形中包括整个高低电平)。方波L为是未经调制的信号。图10中的随机数信号以图9中的随机数信号1中的某一段随机数为例进行说明。In a possible implementation manner, the aforementioned device further includes a phase-locked loop circuit connected to the aforementioned BPSK modulator; the aforementioned phase-locked loop circuit is used to generate a carrier signal according to a preset period, and the aforementioned carrier signal is combined with the aforementioned random number signal. The phase is the same. In a possible implementation manner, the phases of the aforementioned carrier signal and the aforementioned baseband signal are synchronized. For example, the parallel phase-locked loop circuit 1013 is used to generate a square wave L with a pulse period of Tp according to Tp (for a BPSK modulator, L is the carrier), and L and R are phase synchronized (that is, a set of waveforms in L) The duration is the same as the duration of a random number in the random number signal, and the generation time and end time are the same). For example, please refer to FIG. 10, which is a schematic diagram of a random number signal and a carrier signal provided by an embodiment of the present application; as shown in FIG. 10, each random number corresponds to a set of waveforms in the square wave L (generally a set of waveforms). The waveform includes the entire high and low levels). The square wave L is an unmodulated signal. The random number signal in FIG. 10 is explained by taking a certain segment of random numbers in the random number signal 1 in FIG. 9 as an example.
脉冲位置调制器1011,用于根据随机数信号生成基带信号,前述基带信号中连续两组 信号之间相位不同;可选地,通过将随机数信号和第一映射关系表生成基带信号;其中,前述随机数信号包括一种或多种随机数,每一种随机数对应一种前述基带信号的相位,通过PPM调制器使得前述随机数信号中连续相同的随机数对应前述基带信号的相位不连续多次重复;前述随机数信号和前述基带信号的相位同步。具体地,根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,第一映射关系表包括每一种随机数与基带信号的脉冲位置之间的映射关系;第一映射关系表与预设的调制阶数对应;根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号。例如,第一映射关系表为四阶映射关系表;那么根据调制阶数4确定多个映射关系表中的四阶映射关系表为第一映射关系表。可选地,调制阶数可以包括多个阶数,例如,2阶、4阶以及8阶等等。The pulse position modulator 1011 is used to generate a baseband signal according to a random number signal. The two consecutive sets of signals in the aforementioned baseband signal have different phases; optionally, the baseband signal is generated by combining the random number signal with the first mapping relationship table; wherein, The aforementioned random number signal includes one or more random numbers, and each random number corresponds to a phase of the aforementioned baseband signal. Through the PPM modulator, the same random number in the aforementioned random number signal corresponds to the discontinuous phase of the aforementioned baseband signal. Repeated multiple times; the phase of the aforementioned random number signal and the aforementioned baseband signal are synchronized. Specifically, the random number signal is modulated into the baseband signal according to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, wherein the first mapping relationship table includes each The mapping relationship between the random number and the pulse position of the baseband signal; the first mapping relationship table corresponds to the preset modulation order; the corresponding random number in the first mapping relationship table according to the random number signal The pulse position modulates the random number signal into the baseband signal. For example, the first mapping relationship table is a fourth-order mapping relationship table; then, according to the modulation order 4, the fourth-order mapping relationship table among the multiple mapping relationship tables is determined to be the first mapping relationship table. Optionally, the modulation order may include multiple orders, for example, 2nd, 4th, 8th and so on.
可选地,根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。例如,根据已知的调制阶数和映射关系表,再结合随机数信号生成基带信号。该装置中可以预存多个映射关系表以及与多个映射关系表一一对应的调制阶数。在确定了调制阶数之后,就可以获得对应的映射关系表,用于进一步对随机数信号进行调制。可选地,PPM调制器中存储了多个调制阶数以及与多个调制阶数对应的映射关系表。Optionally, the random number signal is modulated into the baseband signal according to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, wherein the first mapping relationship table Belongs to one of the multiple mapping relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each mapping relationship table in the multiple mapping relationship tables It includes a mapping relationship between each of the random numbers and the pulse position of the baseband signal; the multiple mapping relationship tables correspond to the multiple preset modulation orders one-to-one. For example, according to the known modulation order and mapping relationship table, the baseband signal is generated by combining the random number signal. The device can pre-store multiple mapping relation tables and modulation orders corresponding to the multiple mapping relation tables one-to-one. After the modulation order is determined, the corresponding mapping relationship table can be obtained, which is used to further modulate the random number signal. Optionally, the PPM modulator stores multiple modulation orders and mapping relationship tables corresponding to the multiple modulation orders.
例如,请参见表1,表1是本申请实施例提供的一种2PPM调制阶数的映射表;如表1所示,例如随机数0,在2PPM的映射关系下,对应10;随机数1在2PPM的映射关系下对应01。当随机数产生器产生多个连续的随机数0时,根据表1提供的映射关系,将多个连续的随机数0映射为多个连续的10。那么,例如连续的“000”对应的调制后的随机数信号为“101010”,可以使得1和0没有连续的出现,以影响最终信号的相位不连续相同。请参见图11,图11是本申请实施例提供的一种PPM调制示意图;如图11所示,其中,随机数信号4为“110001”;经过PPM调制后,基带信号(即图中的脉冲位置调制信号,即PPM信号,对应前述的信号P)为“010110101001”,其中“11”对应“0101”,使得1不连续多次重复;“000”对应“101010”使得多个0不连续多次重复。在一定程度上,降低了连续1或者连续0的出现。再具体地,某一段随机数为“00”;根据表1的映射规则,得到数列为“1010”。For example, please refer to Table 1. Table 1 is a mapping table of 2PPM modulation order provided in the embodiment of the present application; as shown in Table 1, for example, a random number 0 corresponds to 10 under a 2PPM mapping relationship; a random number 1 Corresponds to 01 under the 2PPM mapping relationship. When the random number generator generates multiple continuous random numbers 0, according to the mapping relationship provided in Table 1, the multiple continuous random numbers 0 are mapped into multiple continuous 10s. Then, for example, the modulated random number signal corresponding to continuous "000" is "101010", which can make 1 and 0 not appear continuously, so as to influence the phase of the final signal to be discontinuous. Please refer to FIG. 11, which is a schematic diagram of PPM modulation provided by an embodiment of the present application; as shown in FIG. 11, the random number signal 4 is "110001"; after PPM modulation, the baseband signal (that is, the pulse in the figure) The position modulation signal, that is, the PPM signal, corresponds to the aforementioned signal P) is "010110101001", where "11" corresponds to "0101", making 1 discontinuous and repeating multiple times; "000" corresponds to "101010" making multiple zeros discontinuous Repetitions. To a certain extent, it reduces the occurrence of consecutive 1s or consecutive 0s. More specifically, a certain random number is "00"; according to the mapping rule of Table 1, the number sequence is "1010".
表1Table 1
OOK OOK 2PPM2PPM
00 1010
11 0101
表2是本申请实施例提供的一种4PPM调制阶数的映射表,具体映射关系如表2所示,请参考表1的对应描述,在此不再赘述。本申请实施例对调制阶数的阶数不做限定,调制阶数还可以包括8PPM。Table 2 is a mapping table of 4PPM modulation order provided by an embodiment of the present application. The specific mapping relationship is shown in Table 2. Please refer to the corresponding description of Table 1, which will not be repeated here. The embodiment of the present application does not limit the order of the modulation order, and the modulation order may also include 8PPM.
表2Table 2
OOKOOK 4PPM4PPM
0000 10001000
0101 01000100
1010 00100010
1111 00010001
可以理解的是,上述表1和表2都是一种与调制阶数对应的映射关系表;本申请实施例对如何确定映射关系表不作限定。可选地,在PPM调制器中预设了调制阶数(比如2阶)以及与之对应的映射关系表;那么在PPM调制器进行基带信号调制的过程中,根据随机数和已知的二阶映射关系表,将输入的随机数信号生成基带信号。可选地,在PPM调制器中预设了调制阶数(比如四阶),但没有预设与之对应的映射关系表;那么在PPM调制器工作的过程中,首先根据四阶调制阶数确定四阶映射关系表。其中,四阶映射关系表可以是存储在测距装置的存储器中多个映射关系表中的一张(即第一映射关系表);或者该测距装置通过网络或者相关算法,获取与四阶调制阶数对应的映射关系表。然后根据随机数信号和四阶映射关系表,将随机数信号调制成所需的基带信号。It is understandable that the foregoing Table 1 and Table 2 are both a mapping relationship table corresponding to the modulation order; the embodiment of the present application does not limit how to determine the mapping relationship table. Optionally, a modulation order (such as 2nd order) and a corresponding mapping relationship table are preset in the PPM modulator; then, in the process of baseband signal modulation by the PPM modulator, according to the random number and the known two Order mapping table, generate baseband signal from the input random number signal. Optionally, a modulation order (such as fourth-order) is preset in the PPM modulator, but no corresponding mapping table is preset; then, during the operation of the PPM modulator, first according to the fourth-order modulation order Determine the fourth-order mapping relationship table. Wherein, the fourth-order mapping relationship table may be one of a plurality of mapping relationship tables stored in the memory of the ranging device (namely, the first mapping relationship table); or the ranging device obtains the fourth-order mapping relationship through the network or related algorithms. The mapping relationship table corresponding to the modulation order. Then according to the random number signal and the fourth-order mapping relationship table, the random number signal is modulated into the required baseband signal.
二进制相移键控调制器(以下简称BPSK调制器),用于将载波信号(即方波L)和前述基带信号(即信号P)进行调制,生成包含多组脉冲波的第一信号(P1);其中,前述多组脉冲波中连续两组脉冲波的相位不同。请参见图12,图12是本申请实施例提供的一种BPSK调制器的波形示意图;如图12所示,方波L、脉位调制信号P以及第一信号P1都是示例性的波形;其中,图示随机数信号为随机数信号中的一段,如“00”;根据前述的映射规则,“00”对应的脉冲位置调制信号为“1010”;图示的方波L为载波信号,根据载波信号和脉冲位置调制信号产生脉冲信号P1。在图12中,0代表不改变方波L对应的相位,1代表改变方波L对应的相位伪180°;所以在脉冲信号P1中与1相对的波形相位变为180°。可以理解的是,一个脉冲信号P周期内会对应很多个方波脉冲;本申请实施例中以图中的多个脉冲为例进行说明。Binary phase shift keying modulator (hereinafter referred to as BPSK modulator), used to modulate the carrier signal (ie square wave L) and the aforementioned baseband signal (ie signal P) to generate a first signal (P1) containing multiple sets of pulse waves ); Among them, the phases of the two consecutive sets of pulse waves in the foregoing multiple sets of pulse waves are different. Please refer to FIG. 12, which is a schematic diagram of the waveform of a BPSK modulator provided by an embodiment of the present application; as shown in FIG. 12, the square wave L, the pulse position modulation signal P, and the first signal P1 are all exemplary waveforms; Among them, the random number signal shown in the figure is a segment of the random number signal, such as "00"; according to the aforementioned mapping rule, the pulse position modulation signal corresponding to "00" is "1010"; the square wave L shown in the figure is the carrier signal, The pulse signal P1 is generated according to the carrier signal and the pulse position modulation signal. In Fig. 12, 0 means not changing the phase corresponding to the square wave L, and 1 means changing the phase corresponding to the square wave L pseudo 180°; therefore, the phase of the waveform relative to 1 in the pulse signal P1 becomes 180°. It is understandable that there are many square wave pulses corresponding to one pulse signal P period; in the embodiment of the present application, the multiple pulses in the figure are taken as an example for description.
请参见图13,图13是本申请实施例提供的另一种抗干扰测距装置的结构示意图;该抗干扰测距装置可以应用于抗干扰测距装置的接收端。该抗干扰测距装置可以包括脉冲位置调制器(即PPM调制器)1011、与脉冲位置调制器1011连接的二进制相移键控BPSK调制器1012、延迟线电路DLL1014、像素阵列1015和测距电路20。可选地,该装置还可以包括与PPM调制器1011连接的伪随时数产生器、与BPSK调制器连接的锁相环电路1013、镜头104和模数转换器1016。Please refer to FIG. 13, which is a schematic structural diagram of another anti-interference ranging device provided by an embodiment of the present application; the anti-interference ranging device can be applied to the receiving end of the anti-interference ranging device. The anti-interference ranging device may include a pulse position modulator (ie PPM modulator) 1011, a binary phase shift keying BPSK modulator 1012 connected to the pulse position modulator 1011, a delay line circuit DLL 1014, a pixel array 1015, and a ranging circuit 20. Optionally, the device may further include a pseudo-time-digital generator connected to the PPM modulator 1011, a phase-locked loop circuit 1013 connected to the BPSK modulator, a lens 104, and an analog-to-digital converter 1016.
结合图12的结构,下面对本申请实施例接收端涉及的测距流程进行分析。请参见图14,图14是本申请实施例提供的一种接收端的流程示意图;如图14所示,可以包括以下步骤:With reference to the structure of FIG. 12, the ranging process involved in the receiving end of the embodiment of the present application will be analyzed below. Please refer to FIG. 14, which is a schematic flowchart of a receiving end provided by an embodiment of the present application; as shown in FIG. 14, the following steps may be included:
步骤1:设置随机数产生周期(Tr)、伪随机数周期(N)、锁相环脉冲产生周期(Tp)、PPM调制阶数(M)。Step 1: Set the random number generation period (Tr), pseudo-random number period (N), phase-locked loop pulse generation period (Tp), and PPM modulation order (M).
步骤2:随机数产生器1010按照Tr来产生随机数R或伪随机数产生器按照Tr、伪随机数周期N及预设的初始状态来产生伪随机数R。同时,与BPSK调制器1012连接的锁相环电路1013,用于根据预设周期产生载波信号,载波信号与随机数信号的相位相同。例如, 并行的锁相环电路1013按照Tp来产生脉冲周期为Tp的方波L(对于BPSK调制器1012,L为载波),L与R相位同步。Step 2: The random number generator 1010 generates a random number R according to Tr, or the pseudo-random number generator generates a pseudo random number R according to Tr, a pseudo-random number period N and a preset initial state. At the same time, a phase-locked loop circuit 1013 connected to the BPSK modulator 1012 is used to generate a carrier signal according to a preset period, and the phase of the carrier signal and the random number signal are the same. For example, the parallel phase-locked loop circuit 1013 generates a square wave L with a pulse period of Tp according to Tp (for the BPSK modulator 1012, L is the carrier wave), and the L and R phases are synchronized.
步骤3:PPM调制器1011根据设置的调制阶数M和输入信号R,输出调制好的PPM信号P(对于BPSK调制器1012,P为基带信号),P与L相位同步。Step 3: The PPM modulator 1011 outputs the modulated PPM signal P (for the BPSK modulator 1012, P is the baseband signal) according to the set modulation order M and the input signal R, and the P and L phases are synchronized.
步骤4:BPSK调制器1012将载波L与基带信号P进行BPSK调制,输出调制后信号P1(P1信号为数字0或1的脉冲序列)。Step 4: The BPSK modulator 1012 performs BPSK modulation on the carrier L and the baseband signal P, and outputs a modulated signal P1 (the P1 signal is a pulse sequence of digital 0 or 1).
步骤5:延迟线电路1014对输入的P1进行时间延迟操作,输出P2。(不同TOF系统DLL延迟值会不一样,例如第一次曝光不延迟,第二次曝光延迟1/4个周期,第三次曝光延迟1/2个周期,第四次曝光延迟3/4个周期,延迟值可以是预设的也可以是外部输入的)。Step 5: The delay line circuit 1014 performs a time delay operation on the input P1, and outputs P2. (The DLL delay value of different TOF systems will be different. For example, the first exposure is not delayed, the second exposure is delayed by 1/4 cycle, the third exposure is delayed by 1/2 cycle, and the fourth exposure is delayed by 3/4. Period, the delay value can be preset or external input).
步骤6:像素阵列1015按照P2(01序列)信号对经过镜头收集到的反射光P1‘进行曝光,每个像素都输出曝光值(P3阵列)。Step 6: The pixel array 1015 exposes the reflected light P1' collected through the lens according to the P2 (01 sequence) signal, and each pixel outputs an exposure value (P3 array).
步骤7:模数转换器1016对P3阵列信号一次进行数字化操作,得到P4阵列,传输给测距电路20。Step 7: The analog-to-digital converter 1016 digitizes the P3 array signal once to obtain the P4 array, which is transmitted to the ranging circuit 20.
步骤8:测距电路在分别接收到不同DLL延迟下曝光得到的P4阵列后,使用测距算法获得相位延迟,并根据工作频率计算得到物体的距离。Step 8: After the ranging circuit receives the P4 arrays exposed under different DLL delays, the ranging algorithm is used to obtain the phase delay, and the distance of the object is calculated according to the operating frequency.
请参见图15,图15是本申请实施例提供的一种第一脉冲光和第二脉冲光的信号示意图;如图15所示,假设发光器103发射的红外连续光信号(对应图中的发射信号,即第一脉冲光)为通过调制后的余弦或方波信号,该信号可用公式(1)表示。从目标物体反射回来后的信号会产生一个偏移量,其部分原因是由于背景光的照明;以及一个包含有相位延时的已调余弦信号,其由发射信号照射目标场景后反射回传感器的中距离所致;反射信号(对应图中的接收信号,即第二脉冲光)可由公式(2)表示。Please refer to FIG. 15. FIG. 15 is a schematic diagram of a first pulsed light and a second pulsed light signal provided by an embodiment of the present application; as shown in FIG. 15, it is assumed that the infrared continuous light signal emitted by the light emitter 103 (corresponding to the The transmitted signal, that is, the first pulsed light) is a cosine or square wave signal after passing the modulation, and the signal can be expressed by formula (1). The signal reflected from the target object will produce an offset, partly due to the illumination of the background light; and a modulated cosine signal with phase delay, which is reflected back to the sensor after the transmitted signal illuminates the target scene It is caused by the middle distance; the reflected signal (corresponding to the received signal in the figure, that is, the second pulsed light) can be expressed by formula (2).
s(t)=cos(wt)     ⑴s(t)=cos(wt) ⑴
g(t)=1+a*cos(wt-φ)        ⑵g(t)=1+a*cos(wt-φ) ⑵
通过调制发射信号,传感器接收并解调目标场景反射回的带有相位延时信息的信号,来间接的求出距离信息,距离的计算如公式(3)所示。By modulating the transmitted signal, the sensor receives and demodulates the signal with phase delay information reflected from the target scene to indirectly obtain the distance information. The distance calculation is shown in formula (3).
Figure PCTCN2020077360-appb-000001
Figure PCTCN2020077360-appb-000001
在一种可能的实现方式中,激光发射源、回波信号(即反射信号)以及像素调制信号的示意图可以参见图16,图16是本申请实施例提供的一种以方波信号为例的信号示意图;如图16所示,列举三种信号的波形,分别是激光发射源(即第一脉冲光)、回波信号(即第二脉冲光)以及像素调制信号(用于经过处理向像素阵列输入的信号)。激光发射源的波形与像素调制信号的波形以及相位一致,而回波信号会产生一定的延迟。In a possible implementation manner, a schematic diagram of the laser emission source, the echo signal (that is, the reflected signal), and the pixel modulation signal can be seen in FIG. 16, which is a square wave signal provided by an embodiment of the present application as an example. Schematic diagram of the signal; as shown in Figure 16, the waveforms of three signals are listed, namely the laser emission source (ie the first pulsed light), the echo signal (ie the second pulsed light) and the pixel modulation signal (used to be processed to the pixel Array input signal). The waveform of the laser emission source is consistent with the waveform and phase of the pixel modulation signal, and the echo signal will cause a certain delay.
在一种可能的实现方式中,装置还包括与延迟线电路1014连接的像素阵列1015;像素阵列1015中每一个像素,用于根据多个像素内部积分开关信号和前述第二脉冲光,确定每一个像素对应的多个曝光信号。其中,延迟线电路DLL1014的结构请参见图17,图17是本申请实施例提供的一种DLL结构示意图;该DDL1014用于通过相位的改变来延迟信号的输出,其中每一个τ对应一个延迟;本申请实施例中对延迟的数值以及次数不作限定; 输入脉冲之后,根据预设的延迟数值和次数对输入的脉冲进行延迟,输出一个或多个延迟信号。例如,TOF测距解调的过程采用相关函数法,以发射信号作为参考信号,通过求取经过频率调制后的发射信号与照射目标后产生相移的反射信号两者之间的相关函数,求解计算如式(4)所示。In a possible implementation, the device further includes a pixel array 1015 connected to the delay line circuit 1014; each pixel in the pixel array 1015 is used to determine each pixel according to the internal integration switch signals of the multiple pixels and the aforementioned second pulse light. Multiple exposure signals corresponding to one pixel. For the structure of the delay line circuit DLL1014, please refer to FIG. 17. FIG. 17 is a schematic diagram of a DLL structure provided by an embodiment of the present application; the DDL1014 is used to delay the output of the signal by changing the phase, where each τ corresponds to a delay; In the embodiments of the present application, the delay value and times are not limited; after the pulse is input, the input pulse is delayed according to the preset delay value and times, and one or more delay signals are output. For example, the process of TOF ranging and demodulation uses the correlation function method, using the transmitted signal as a reference signal, by obtaining the correlation function between the frequency-modulated transmission signal and the phase-shifted reflected signal after illuminating the target. The calculation is shown in formula (4).
Figure PCTCN2020077360-appb-000002
Figure PCTCN2020077360-appb-000002
在一种可能的实现方式中,装置还包括与BPSK调制器1012连接的延迟线电路1014;延迟线电路1014用于根据预设的相位延迟值,对前述第一信号进行相位延迟操作,生成多个像素内部积分开关信号。例如,对公式4进行推导,可以得到相关函数c(τ)的表达式。选取4个不同的τ值延时:τ 0=0°、τ 1=90°、τ 2=180°和τ 3=270°分别进行代入s(t)计算。发射光为一确定频率的方波,回射光与发射光波形一样,但往后延迟了一个飞行时间。Pixel内部的参考信号为调制波形C1~C4,这4个参考信号分别与回射光进行互相关积分,输出结果分别为:Q1~Q4(Q1对应公式5,Q2对应公式7,Q3对应公式6,Q4对应公式8)。考虑到反射后回来的信号可能会包含有背景光,需要对其加入一个偏移量K。通过叠加处理后,最终的表达式可由下列公式(5)到(8)所示。 In a possible implementation, the device further includes a delay line circuit 1014 connected to the BPSK modulator 1012; the delay line circuit 1014 is used to perform a phase delay operation on the foregoing first signal according to a preset phase delay value to generate multiple signals. Integrate the switch signal within each pixel. For example, by deriving formula 4, the expression of the correlation function c(τ) can be obtained. Choose 4 different τ value delays: τ 0 =0°, τ 1 =90°, τ 2 =180° and τ 3 =270° to be substituted into s(t) calculation respectively. The emitted light is a square wave with a certain frequency, and the retroreflected light has the same waveform as the emitted light, but it is delayed by a flight time later. The reference signals inside the Pixel are modulated waveforms C1~C4. These 4 reference signals are cross-correlated and integrated with the retroreflected light. The output results are respectively: Q1~Q4 (Q1 corresponds to formula 5, Q2 corresponds to formula 7, Q3 corresponds to formula 6, Q4 corresponds to formula 8). Considering that the signal returned after reflection may contain background light, an offset K needs to be added to it. After the superposition process, the final expression can be shown in the following formulas (5) to (8).
Figure PCTCN2020077360-appb-000003
Figure PCTCN2020077360-appb-000003
Figure PCTCN2020077360-appb-000004
Figure PCTCN2020077360-appb-000004
Figure PCTCN2020077360-appb-000005
Figure PCTCN2020077360-appb-000005
Figure PCTCN2020077360-appb-000006
Figure PCTCN2020077360-appb-000006
利用公式(5)到(8)换算可以分别求出相位
Figure PCTCN2020077360-appb-000007
偏移量B和幅值A。相位延迟
Figure PCTCN2020077360-appb-000008
代表光在飞行过程中的传播延迟,当调制频率设定为一个固定的值时,其与目标的距离成正比。偏移B可以用来提供一个常规的2D强度图像,以及指示图像传感器像素中电荷量。振幅A代表可达到的直接测量的深度分辨率。通过换算后获得的公式见式(9)到(11)。
Using formulas (5) to (8), the phases can be calculated separately
Figure PCTCN2020077360-appb-000007
Offset B and amplitude A. Phase delay
Figure PCTCN2020077360-appb-000008
Represents the propagation delay of light during flight. When the modulation frequency is set to a fixed value, it is proportional to the distance to the target. Offset B can be used to provide a conventional 2D intensity image and to indicate the amount of charge in the image sensor pixels. Amplitude A represents the achievable depth resolution of direct measurement. The formulas obtained after conversion are shown in equations (9) to (11).
Figure PCTCN2020077360-appb-000009
Figure PCTCN2020077360-appb-000009
Figure PCTCN2020077360-appb-000010
Figure PCTCN2020077360-appb-000010
Figure PCTCN2020077360-appb-000011
Figure PCTCN2020077360-appb-000011
通过上述计算得到的相位,再根据公式(3)就可以计算出摄像机到目标物体之间的距离D。由于二维阵列图像传感器的每个像素都可以测量出与目标场景表面所对应的距离信息,因此实际上得到的是目标场景表面的深度距离图像。为了重建出真实场景中的三维信息,还需要进一步对数据进行处理。本文采取的方法是,首先使用相机标定法求取相机的参数, 再根据小孔成像原理结合已得到的二维距离图最终计算出三维坐标。求取的公式可用式(12)到(14)表示。Based on the phase calculated above, the distance D between the camera and the target object can be calculated according to formula (3). Since each pixel of the two-dimensional array image sensor can measure the distance information corresponding to the surface of the target scene, what actually gets is the depth distance image of the surface of the target scene. In order to reconstruct the three-dimensional information in the real scene, further processing of the data is needed. The method adopted in this paper is to first use the camera calibration method to obtain the parameters of the camera, and finally calculate the three-dimensional coordinates according to the principle of small hole imaging combined with the obtained two-dimensional distance map. The obtained formula can be expressed by formulas (12) to (14).
Figure PCTCN2020077360-appb-000012
Figure PCTCN2020077360-appb-000012
Figure PCTCN2020077360-appb-000013
Figure PCTCN2020077360-appb-000013
Z w=D     (14) Z w =D (14)
在一种可能的实现方式中,装置还包括与像素阵列1015连接的模数转换器ADC1016;前述ADC用于将前述多个曝光信号转换成对应的多个数字信号。进一步可选地,前述装置还包括与前述ADC连接的测距电路20;前述测距电路20,用于接收前述对应的多个数字信号;根据测距算法获得前述第二脉冲光的相位延迟,并根据前述第二脉冲光的频率计算前述待测物与前述抗干扰测距装置的距离。例如,在对目标场景中的物体进行测量时,通过TOF成像系统的LED调制光源发射高频红外调制信号照射目标场景,此后调制信号反射回到传感器表面时产生与距离相关的相位差。传感器接收并解调飞行过程中引起的相位差,再依据光飞行速率和调制频率等已知量来求出TOF传感器与目标物之间的距离。可选地,为了得到目标场景完整的三维信息,并通过二维的TOF图像传感器阵列来重建目标场景中物体表面的形状,要求TOF图像传感器阵列中的各个像素能够独立的接收并解调出与物体表面各对应点的距离信息或相位差。最终,每对TOF成像系统进行一次曝光时,则可得到与传感器图像像素分辨率相同数量的距离信息,即目标场景的深度距离图像和灰度图像。可以理解的是是,测距范围跟发送信号的频率值相关,最远可测距通常又叫模糊距离D,D=c/(f*2),其中c为光速,f为频率,例如10MHz的系统,模糊距离为15米。In a possible implementation, the device further includes an analog-to-digital converter ADC1016 connected to the pixel array 1015; the aforementioned ADC is used to convert the aforementioned multiple exposure signals into corresponding multiple digital signals. Further optionally, the foregoing device further includes a ranging circuit 20 connected to the foregoing ADC; the foregoing ranging circuit 20 is configured to receive the foregoing corresponding multiple digital signals; obtaining the phase delay of the foregoing second pulsed light according to the ranging algorithm, The distance between the object to be measured and the anti-interference distance measuring device is calculated according to the frequency of the second pulsed light. For example, when measuring objects in a target scene, the LED modulated light source of the TOF imaging system emits a high-frequency infrared modulation signal to illuminate the target scene, and then the modulation signal is reflected back to the sensor surface to produce a distance-related phase difference. The sensor receives and demodulates the phase difference caused during the flight, and then calculates the distance between the TOF sensor and the target based on known quantities such as the light flight rate and modulation frequency. Optionally, in order to obtain complete three-dimensional information of the target scene and reconstruct the shape of the surface of the object in the target scene through a two-dimensional TOF image sensor array, each pixel in the TOF image sensor array is required to independently receive and demodulate and The distance information or phase difference of the corresponding points on the surface of the object. Finally, every time a TOF imaging system is exposed, the same amount of distance information as the pixel resolution of the sensor image can be obtained, that is, the depth distance image and grayscale image of the target scene. It is understandable that the ranging range is related to the frequency value of the transmitted signal. The farthest distance that can be measured is usually called the fuzzy distance D, D=c/(f*2), where c is the speed of light and f is the frequency, such as 10MHz In the system, the blur distance is 15 meters.
在一种可能的实现方式中,前述装置还包括与前述像素阵列1015连接的光学透镜(即镜头104);前述光学透镜104用于接收前述第二脉冲光。In a possible implementation, the aforementioned device further includes an optical lens (ie, lens 104) connected to the aforementioned pixel array 1015; the aforementioned optical lens 104 is used to receive the aforementioned second pulsed light.
本申请实施例主要通过在测距芯片中加入了脉冲位置调制器(即PPM调制器)减少连续的相同随机数造成信号中相位连续一致而影响信号的抗干扰能力。具体地,PPM调制器接收随机数信号和调制阶数,输出经过调制的基带信号。通过调制阶数使得在随机数信号中可能出现的多个连续相同随机数的情况下,输出基带信号中连续几组的基带信号相位不会连续相同,从而提高了信号的抗干扰能力。本申请实施例把波形随机化的操作,使用随机化的波形来发射和像素pixel互相关接收,因为随机数具有良好的自相关和互相关特性,所以pixel互相关接收时会仅将本机发射的信号放大输出,其他信号会被随机化处理,不会使得测距有误差。In the embodiment of the present application, a pulse position modulator (that is, a PPM modulator) is added to the ranging chip to reduce the continuous phase of the signal caused by the continuous same random number, which affects the anti-interference ability of the signal. Specifically, the PPM modulator receives the random number signal and the modulation order, and outputs the modulated baseband signal. Through the modulation order, in the case of multiple consecutive identical random numbers that may appear in the random number signal, the phases of consecutive groups of baseband signals in the output baseband signal will not be continuously the same, thereby improving the anti-interference ability of the signal. The operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, which will not cause errors in ranging.
请参见图18,图18是本申请实施例提供的另一种TOF测距原理示意图;除了连续波测量原理外,还有一种基于脉冲调制的测量方法。如图18所示,脉冲光源照射后产生回波信号;在脉冲光源照射一段短暂的时间(Δt),并在每个像素处使用两个反相窗口PH1和PH2,以相同的时间间隔(Δt)对反射的能量进行采样。测量采样过程中累积的电荷Q1和Q2,并使用以下公式计算距离:Please refer to FIG. 18, which is a schematic diagram of another TOF ranging principle provided by an embodiment of the present application; in addition to the continuous wave measurement principle, there is also a measurement method based on pulse modulation. As shown in Figure 18, an echo signal is generated after the pulsed light source is illuminated; the pulsed light source is illuminated for a short period of time (Δt), and two inverted windows PH1 and PH2 are used at each pixel, with the same time interval (Δt) ) Sample the reflected energy. Measure the accumulated charges Q1 and Q2 during the sampling process, and use the following formula to calculate the distance:
Figure PCTCN2020077360-appb-000014
Figure PCTCN2020077360-appb-000014
在曝光调制过程中,根据实际像素、系统和应用需求,为了获得景深信息,可将曝光调制分为1次,2次,3次,4次或以上(此处的1次指一组连续波形,而不是一个周期波形)。下面将会列出几种典型组合:一,连续波曝光调制4次;二,连续波曝光调制2次;三,脉冲波曝光调制2次;四,脉冲波曝光调制1次。本申请实施例对其它相似原理的曝光调制次数不做限定。可以理解的是,将像素在空间上分开,即相邻像素进行不同相位的曝光,只要原理相同也包括在本申请实施例保护范围内。In the exposure modulation process, according to the actual pixel, system and application requirements, in order to obtain depth of field information, the exposure modulation can be divided into 1, 2, 3, 4 or more times (here, 1 time refers to a set of continuous waveforms). Instead of a periodic waveform). Several typical combinations will be listed below: 1. Continuous wave exposure modulation 4 times; 2. Continuous wave exposure modulation 2 times; 3. Pulse wave exposure modulation 2 times; 4. Pulse wave exposure modulation 1 time. The embodiments of the present application do not limit the number of exposure modulations based on other similar principles. It can be understood that if the pixels are spatially separated, that is, adjacent pixels are exposed to different phases, as long as the principle is the same, it is also included in the protection scope of the embodiments of the present application.
请参见图19,图19是本申请实施例提供的一种连续波曝光调制四次的示意图;如图19所示,A 0表示相位0°的曝光,A 180表示相位180°的曝光,同理A 90表示相位90°的曝光,A 270表示相位270°的曝光。A 0A 180表示TapA和TapB分别进行相位0°和180°的曝光,A 180A 0表示TapA和TapB分别进行相位180°和0°的曝光。示意图中依次进行连续波A 0A 180,A 90A 270,A 180A 0,A 270A 90和低频连续波A 0A 180,A 90A 270的曝光,实际操作中,顺序可交换。本申请实施例中,之所以在调制时进行A 0A 180和A 180A 0这种顺序颠倒曝光,主要是因为电荷收集电容可能每个TAP不一样,因此会影响系统精度,斩波技术可消除接收时收集电荷处电容(增益误差)、置位电压和背景光等因素带来的失配,提升深度信息的精度。 Please refer to FIG. 19, which is a schematic diagram of four continuous wave exposure modulation provided by an embodiment of the present application; as shown in FIG. 19, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°. A 90 represents an exposure with a phase of 90°, and A 270 represents an exposure with a phase of 270°. A 0 A 180 means that TapA and TapB are exposed to phases of 0° and 180°, respectively, and A 180 A 0 means that TapA and TapB are exposed to phases of 180° and 0°, respectively. In the schematic diagram, continuous wave A 0 A 180 , A 90 A 270 , A 180 A 0 , A 270 A 90 and low-frequency continuous wave A 0 A 180 , A 90 A 270 are exposed in sequence. In actual operation, the order can be exchanged. In the embodiment of this application, the reason why the order of A 0 A 180 and A 180 A 0 is reversed during the modulation is mainly because the charge collection capacitor may be different for each TAP, which will affect the accuracy of the system. The chopping technology can Eliminate the mismatch caused by the capacitance (gain error), set voltage, and background light at the charge collection site during reception, and improve the accuracy of depth information.
请参见图20,图20是本申请实施例提供的一种连续波曝光调制两次的示意图;如图20所示,A 0表示相位0°的曝光,A 180表示相位180°的曝光,同理A 90表示相位90°的曝光,A 270表示相位270°的曝光。实际操作中,曝光调制顺序可交换。A 0A 180表示TapA和TapB分别进行相位0°和180°的曝光调制,A 180A 0表示TapA和TapB分别进行相位180°和0°的曝光调制。示意图中依次进行连续波A 0A 180,A 90A 270的曝光,实际操作中,顺序可交换。本在曝光时之所以进行A 0A 180和A 90A 270曝光,主要是为了降低功耗以及提升帧率,但因为曝光次数相比较图19中所示的方法少了2次,接收到的信号强度也降低了一倍,所以这种曝光方式测距误差会高一些,另外本例没有采用斩波技术来消除由工艺、器件和环境因素造成的失调,深度信息的精度也会因为失配相对降低。实际操作中,可交换TapA和TapB的脉冲调制相位。 Please refer to FIG. 20, which is a schematic diagram of two continuous wave exposure modulation provided by an embodiment of the present application; as shown in FIG. 20, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°. A 90 represents an exposure with a phase of 90°, and A 270 represents an exposure with a phase of 270°. In actual operation, the order of exposure modulation can be exchanged. A 0 A 180 means that TapA and TapB perform exposure modulation of phase 0° and 180°, respectively, and A 180 A 0 means that TapA and TapB perform exposure modulation of phase 180° and 0°, respectively. In the schematic diagram, the continuous wave A 0 A 180 and A 90 A 270 exposures are sequentially performed. In actual operation, the order can be exchanged. The reason why A 0 A 180 and A 90 A 270 were exposed during the exposure was mainly to reduce power consumption and increase the frame rate, but because the number of exposures was 2 times less than the method shown in Figure 19, the received The signal strength has also been doubled, so this exposure method will have a higher ranging error. In addition, this example does not use chopping technology to eliminate the misalignment caused by process, device and environmental factors. The accuracy of the depth information will also be mismatched. Relatively lower. In actual operation, the pulse modulation phase of TapA and TapB can be exchanged.
请参见图21,图21是本申请实施例提供的一种脉冲波曝光调制两次的示意图;如图21所示,A 0表示相位0°的曝光,A 180表示相位180°的曝光。A 0A 180表示TapA和TapB分别进行相位0°和180°的曝光调制,A 180A 0表示TapA和TapB分别进行相位180°和0°的曝光调制。实际操作中,顺序可交换。本申请实施例中,之所以在调制时进行A 0A 180和A 180A 0这种顺序颠倒曝光,主要是因为电荷收集电容可能每个TAP不一样,因此会影响系统精度,斩波技术可消除接收时收集电荷处电容(增益误差)、置位电压和背景光等因素带来的失配,提升深度信息的精度。 Please refer to FIG. 21. FIG. 21 is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application. As shown in FIG. 21, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°. A 0 A 180 means that TapA and TapB perform phase 0° and 180° exposure modulation respectively, and A 180 A 0 means that TapA and TapB perform phase 180° and 0° exposure modulation respectively. In actual operation, the order can be exchanged. In the embodiment of this application, the reason why the order of A 0 A 180 and A 180 A 0 is reversed during the modulation is mainly because the charge collection capacitor may be different for each TAP, which will affect the accuracy of the system. The chopping technology can Eliminate the mismatch caused by the capacitance (gain error), set voltage, and background light at the charge collection site during reception, and improve the accuracy of depth information.
请参见图22,图22是本申请实施例提供的一种脉冲波曝光调制一次的示意图;如图22所示,A 0表示相位0°的曝光,A 180表示相位180°的曝光。本申请实施例中,没有采用斩波技术来消除由工艺、器件和环境因素造成的失调,深度信息的精度会相对降低,但功耗也会相应降低。实际操作中,可交换TapA和TapB的脉冲调制相位。 Please refer to FIG. 22, which is a schematic diagram of a pulse wave exposure modulation provided by an embodiment of the present application; as shown in FIG. 22, A 0 represents an exposure with a phase of 0°, and A 180 represents an exposure with a phase of 180°. In the embodiments of the present application, the chopping technology is not used to eliminate the imbalance caused by process, device and environmental factors. The accuracy of the depth information will be relatively reduced, but the power consumption will be reduced accordingly. In actual operation, the pulse modulation phase of TapA and TapB can be exchanged.
上面描述了具体的抗干扰测距装置和应用场景,下面对本申请涉及的方法实施例进行描述。The specific anti-interference ranging device and application scenarios are described above, and the method embodiments involved in the present application are described below.
请参见图23,图23是本申请实施例提供的一种抗干扰测距方法的示意图;该抗干扰测距方法应用于抗干扰测距装置(包括上述的系统架构)。下面将结合附图23从发射端的单侧进行描述,该方法可以包括以下步骤S2301-步骤S2305。Please refer to FIG. 23. FIG. 23 is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application; the anti-interference ranging method is applied to an anti-interference ranging device (including the aforementioned system architecture). The following will describe from a single side of the transmitting end with reference to FIG. 23. The method may include the following steps S2301-step S2305.
步骤S2301:根据预设周期产生载波信号。Step S2301: Generate a carrier signal according to a preset period.
具体地,根据预设的载波生成周期产生固定频率的载波信号,将生成固定频率的载波信号发送给相移键控调制器。其中,载波信号与随机数信号的相位同步,以使得将载波信号和通过随机数信号调制生成的基带信号进行处理并输出最后的光源驱动信号,用于最终驱动发光器进行发射脉冲光。Specifically, a carrier signal of a fixed frequency is generated according to a preset carrier generation period, and the carrier signal of the generated fixed frequency is sent to the phase shift keying modulator. Wherein, the phase of the carrier signal and the random number signal are synchronized, so that the carrier signal and the baseband signal generated by the random number signal modulation are processed and the final light source driving signal is output, which is used to finally drive the light emitter to emit pulsed light.
步骤S2302:根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数。Step S2302: According to the pseudo-random number generation period, the pseudo-random number period and the preset initial pseudo-random number, a plurality of pseudo-random numbers lasting for a preset period of time are generated.
具体地,与前述步骤同步进行的是,根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的随机数(或者伪随机数)。前述预设时长与前述伪随机数产生周期的数值相同。在一种可能的实现方式中,前述随机数信号包括多个持续预设时长的伪随机数;前述方法还包括:通过伪随机数产生器,根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数;前述预设时长与前述伪随机数产生周期的数值相同。Specifically, in synchronization with the foregoing steps, a plurality of random numbers (or pseudo-random numbers) lasting for a preset period of time are generated according to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number. The foregoing preset duration is the same as the value of the foregoing pseudo-random number generation period. In a possible implementation manner, the aforementioned random number signal includes a plurality of pseudo-random numbers lasting for a preset period of time; the aforementioned method further includes: using a pseudo-random number generator to generate a period, a pseudo-random number period, and a preset period according to the pseudo-random number generator. Set the initial pseudo-random number to generate a plurality of pseudo-random numbers lasting for a preset duration; the aforementioned preset duration is the same as the value of the aforementioned pseudo-random number generation period.
步骤S2303:根据随机数信号生成基带信号。Step S2303: Generate a baseband signal according to the random number signal.
具体地,根据多个调制阶数中的第一调制阶数确定与第一调制阶数对应的第一映射关系表;然后根据随机数信号中每一个随机数在第一映射关系表中的映射关系,确定每一个随机数对应的基带信号的脉冲位置,以将整个随机数信号调制成基带信号。前述基带信号中连续两组信号之间相位不同;其中,前述随机数信号包括一种或多种随机数,前述随机数信号中每一种随机数对应一种前述基带信号的相位,前述调制阶数用于控制前述随机数信号中连续相同的随机数对应前述基带信号的相位不连续多次重复;前述随机数信号和前述基带信号的相位同步。例如,根据预设的调制阶数,确定所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;确定所述随机数信号中的每一个随机数在所述映射关系中对应的所述基带信号的脉冲位置,以调制成所述基带信号。可续地,随机数信号中的随机数由伪随机数确定。本申请实施例中随机数或者伪随机数的作用一致,可以只认为是从名称有区别,并不影响本申请实施例的应用。Specifically, the first mapping relationship table corresponding to the first modulation order is determined according to the first modulation order of the multiple modulation orders; and then according to the mapping of each random number in the random number signal in the first mapping relationship table Relation, determine the pulse position of the baseband signal corresponding to each random number, so as to modulate the entire random number signal into a baseband signal. The phases of the two consecutive sets of signals in the aforementioned baseband signal are different; wherein, the aforementioned random number signal includes one or more random numbers, and each random number in the aforementioned random number signal corresponds to a phase of the aforementioned baseband signal, and the aforementioned modulation order The number is used to control the continuous same random number in the random number signal corresponding to the phase of the baseband signal to repeat multiple times; the phase of the random number signal and the baseband signal are synchronized. For example, according to a preset modulation order, determine the mapping relationship between each of the random numbers and the pulse position of the baseband signal; determine that each random number in the random number signal is in the mapping relationship The corresponding pulse position of the baseband signal is modulated into the baseband signal. Continuously, the random number in the random number signal is determined by the pseudo-random number. The random numbers or pseudo-random numbers in the embodiments of the present application have the same functions, and can only be considered to be different from the names, which does not affect the application of the embodiments of the present application.
可选地,第一调制阶数为多个预设的调制阶数中的一个。Optionally, the first modulation order is one of a plurality of preset modulation orders.
步骤S2304:将载波信号和基带信号进行调制,以生成第一信号。Step S2304: The carrier signal and the baseband signal are modulated to generate a first signal.
具体地,接收PPM调制器发送的基带信号以及锁相环电路发送的载波信号,将同步的两种信号进行处理,生成第一信号(即符合测距要求的脉冲信号)。前述多组脉冲波中连续两组脉冲波的相位不同;前述第一信号用于产生第一脉冲光,前述第一脉冲光用于照射待测物。Specifically, the baseband signal sent by the PPM modulator and the carrier signal sent by the phase-locked loop circuit are received, and the two synchronized signals are processed to generate the first signal (that is, the pulse signal that meets the ranging requirements). The phases of the two consecutive sets of pulse waves in the foregoing multiple sets of pulse waves are different; the foregoing first signal is used to generate the first pulse light, and the foregoing first pulse light is used to illuminate the object to be measured.
在一种可能的实现方式中,根据所述第一信号控制发光器发射所述第一脉冲光。In a possible implementation manner, the light emitter is controlled to emit the first pulsed light according to the first signal.
步骤S2305:根据第一信号控制发光器发射第一脉冲光。Step S2305: Control the light emitter to emit the first pulsed light according to the first signal.
具体地,通过光源驱动器接受第一信号;在第一信号的驱动下,该光源驱动器使得发光器发射第一脉冲光。Specifically, the light source driver receives the first signal; driven by the first signal, the light source driver causes the light emitter to emit the first pulsed light.
本申请实施例主要通过在抗干扰测距装置(例如测距芯片)中加入了脉冲位置调制器(即PPM调制器)减少连续的相同随机数造成信号中相位连续一致而影响信号的抗干扰能力。具体地,PPM调制器接收包含一种或多种随机数的随机数信号,其中,一种或多种随机数中每一种随机数对应一种基带信号的脉冲位置。PPM调制器根据随机数对应的脉冲位置的相关参数,使得调制输出的基带信号中相应位置上出现符合要求的脉冲位置,并使得两个的脉冲位置之间有一定数量的时间间隔;不同相机中PPM调制器提供的随机数和脉冲位置的映射关系可以设置为不同,从而使得每个相机中产生的基带信号中两个脉冲位置之间的间隔数不同,进而提高了最后输出的脉冲光波的抗干扰性能,使得相机有效识别自身发射的脉冲光波而过滤其他相机发射的脉冲光波。本申请实施例对确定随机数与脉冲位置之间对应关系的方式不作限定。不同于现有技术中,直接将随机数向相移键控调制器发送;当出现连续0或者连续1的情况时,相移键控调制器输出的第一信号中每一组信号波之间的相位可能会连续相同。通过调制阶数使得在随机数信号中可能出现的多个连续相同随机数的情况下,输出基带信号中连续几组的基带信号相位不会连续相同,从而提高了信号的抗干扰能力。本申请实施例把波形随机化的操作,使用随机化的波形来发射和像素pixel互相关接收,因为随机数具有良好的自相关和互相关特性,所以pixel互相关接收时会仅将本机发射的信号放大输出,其他信号会被随机化处理,使得测距结果不会存在较大的误差。The embodiment of the present application mainly adds a pulse position modulator (i.e. PPM modulator) to the anti-interference ranging device (such as a ranging chip) to reduce the continuous same random number, which causes the phase of the signal to be continuous and consistent, which affects the anti-interference ability of the signal. . Specifically, the PPM modulator receives a random number signal containing one or more random numbers, where each random number in the one or more random numbers corresponds to a pulse position of a baseband signal. According to the relevant parameters of the pulse position corresponding to the random number, the PPM modulator makes the required pulse position appear in the corresponding position in the modulated output baseband signal, and makes a certain number of time intervals between the two pulse positions; in different cameras The mapping relationship between the random number provided by the PPM modulator and the pulse position can be set to be different, so that the number of intervals between the two pulse positions in the baseband signal generated in each camera is different, thereby improving the resistance of the final output pulse light wave. The interference performance enables the camera to effectively recognize the pulsed light waves emitted by itself and filter the pulsed light waves emitted by other cameras. The embodiment of the present application does not limit the manner of determining the correspondence between the random number and the pulse position. Different from the prior art, the random number is directly sent to the phase shift keying modulator; when continuous 0 or continuous 1 occurs, the first signal output by the phase shift keying modulator is between each group of signal waves The phases may be the same continuously. Through the modulation order, in the case of multiple consecutive identical random numbers that may appear in the random number signal, the phases of consecutive groups of baseband signals in the output baseband signal will not be continuously the same, thereby improving the anti-interference ability of the signal. The operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, so that there will be no large errors in the ranging results.
需要说明的是,本申请实施例中所描述的抗干扰测距方法可参见上述前述装置实施例中的抗干扰测距装置(发射端)的相关描述,此处不再赘述。It should be noted that the anti-interference ranging method described in the embodiment of the present application can refer to the relevant description of the anti-interference ranging device (transmitting end) in the foregoing device embodiment, and will not be repeated here.
请参见图24,图24是本申请实施例提供的一种抗干扰测距方法的示意图;该抗干扰测距方法应用于抗干扰测距装置(包括上述的系统架构)。下面将结合附图24从接收端的单侧进行描述,该方法可以包括以下步骤S2401-步骤S2408。Please refer to FIG. 24, which is a schematic diagram of an anti-interference ranging method provided by an embodiment of the present application; the anti-interference ranging method is applied to an anti-interference ranging device (including the aforementioned system architecture). The following will describe from a single side of the receiving end with reference to FIG. 24. The method may include the following steps S2401-step S2408.
步骤S2401:根据预设周期产生载波信号。Step S2401: Generate a carrier signal according to a preset period.
具体地,根据预设的载波生成周期产生固定频率的载波信号,将生成固定频率的载波信号发送给相移键控调制器。其中,载波信号与随机数信号的相位同步,以使得将载波信号和通过随机数信号调制生成的基带信号进行处理并输出最后的光源驱动信号,用于最终驱动发光器进行发射脉冲光;前述载波信号与前述随机数信号的相位相同。Specifically, a carrier signal of a fixed frequency is generated according to a preset carrier generation period, and the carrier signal of the generated fixed frequency is sent to the phase shift keying modulator. Among them, the carrier signal is synchronized with the phase of the random number signal, so that the carrier signal and the baseband signal generated by the random number signal modulation are processed and the final light source driving signal is output, which is used to finally drive the light emitter to emit pulsed light; the aforementioned carrier The signal has the same phase as the aforementioned random number signal.
步骤S2402:根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数。Step S2402: According to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number, a plurality of pseudo-random numbers lasting for a preset period of time are generated.
具体地,与前述步骤同步进行的是,根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的随机数或者伪随机数。前述预设时长与前述伪随机数产生周期的数值相同。在一种可能的实现方式中,前述随机数信号包括多个持续预设时长的伪随机数;前述方法还包括:通过伪随机数产生器,根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数;前述预设时长与前述伪随机数产生周期的数值相同。Specifically, in synchronization with the foregoing steps, a plurality of random numbers or pseudo-random numbers lasting for a preset period of time are generated according to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number. The foregoing preset duration is the same as the value of the foregoing pseudo-random number generation period. In a possible implementation manner, the aforementioned random number signal includes a plurality of pseudo-random numbers lasting for a preset period of time; the aforementioned method further includes: using a pseudo-random number generator to generate a period, a pseudo-random number period, and a preset period according to the pseudo-random number generator. Set the initial pseudo-random number to generate a plurality of pseudo-random numbers lasting for a preset duration; the aforementioned preset duration is the same as the value of the aforementioned pseudo-random number generation period.
步骤S2403:根据随机数信号生成基带信号。Step S2403: Generate a baseband signal according to the random number signal.
具体地,根据多个调制阶数中的第一调制阶数确定与第一调制阶数对应的第一映射关系表;然后根据随机数信号中每一个随机数在第一映射关系表中的映射关系,确定每一个随机数对应的基带信号的脉冲位置,以将整个随机数信号调制成基带信号。前述基带信号中连续两组信号之间相位不同;其中,前述随机数信号包括一种或多种随机数,前述随机数信号中每一种随机数对应一种前述基带信号的相位,前述调制阶数用于控制前述随机数信号中连续相同的随机数对应前述基带信号的相位不连续多次重复;前述随机数信号和前述基带信号的相位同步。例如,根据预设的调制阶数,确定所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;确定所述随机数信号中的每一个随机数在所述映射关系中对应的所述基带信号的脉冲位置,以调制成所述基带信号。详细阐述可以参见前述步骤S2303,在此不再赘述。Specifically, the first mapping relationship table corresponding to the first modulation order is determined according to the first modulation order of the multiple modulation orders; and then according to the mapping of each random number in the random number signal in the first mapping relationship table Relation, determine the pulse position of the baseband signal corresponding to each random number, so as to modulate the entire random number signal into a baseband signal. The phases of the two consecutive sets of signals in the aforementioned baseband signal are different; wherein, the aforementioned random number signal includes one or more random numbers, and each random number in the aforementioned random number signal corresponds to a phase of the aforementioned baseband signal, and the aforementioned modulation order The number is used to control the continuous same random number in the random number signal corresponding to the phase of the baseband signal to repeat multiple times; the phase of the random number signal and the baseband signal are synchronized. For example, according to a preset modulation order, determine the mapping relationship between each of the random numbers and the pulse position of the baseband signal; determine that each random number in the random number signal is in the mapping relationship The corresponding pulse position of the baseband signal is modulated into the baseband signal. For detailed description, please refer to the foregoing step S2303, which will not be repeated here.
步骤S2404:将载波信号和基带信号进行调制,以生成第一信号。Step S2404: modulate the carrier signal and the baseband signal to generate a first signal.
具体地,接收PPM调制器发送的基带信号以及锁相环电路发送的载波信号,将同步的两种信号进行处理,生成第一信号(即符合测距要求的脉冲信号)。前述多组脉冲波中连续两组脉冲波的相位不同;前述第一信号用于产生第一脉冲光,前述第一脉冲光用于照射待测物。Specifically, the baseband signal sent by the PPM modulator and the carrier signal sent by the phase-locked loop circuit are received, and the two synchronized signals are processed to generate the first signal (that is, the pulse signal that meets the ranging requirements). The phases of the two consecutive sets of pulse waves in the foregoing multiple sets of pulse waves are different; the foregoing first signal is used to generate the first pulse light, and the foregoing first pulse light is used to illuminate the object to be measured.
步骤S2405:根据预设的相位延迟值,对第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号。Step S2405: Perform multiple phase delay operations on the first signal according to the preset phase delay value to generate multiple internal integration switch signals of the pixels.
具体地,前述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。Specifically, each of the foregoing multiple phase delay operations corresponds to a pixel internal integration switch signal.
在一种可能的实现方式中,根据预设的相位延迟值,对所述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;所述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。In a possible implementation manner, according to a preset phase delay value, multiple phase delay operations are performed on the first signal to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations Corresponds to the internal integration switch signal of a pixel.
步骤S2406:根据多个像素内部积分开关信号和第二脉冲光,确定每一个像素对应的多个曝光信号。Step S2406: Determine multiple exposure signals corresponding to each pixel according to the internal integration switch signals of the multiple pixels and the second pulse light.
具体地,在接收第二脉冲光后(第二脉冲光为所述待测物反射的脉冲光),根据所述多个像素内部积分开关信号和所述第二脉冲光,确定所述每一个像素对应的多个曝光信号。Specifically, after receiving the second pulsed light (the second pulsed light is the pulsed light reflected by the object under test), determine the each of the Multiple exposure signals corresponding to pixels.
步骤S2407:将多个曝光信号转换成对应的多个数字信号。Step S2407: Convert multiple exposure signals into multiple corresponding digital signals.
具体地,按照每个像素的曝光信号输入,可以通过模数转换器ADC将每个像素的多个曝光信号转换成对应的多个数字信号;然后根据相应的计算方式,对每个数字信号进行计算和处理。Specifically, according to the exposure signal input of each pixel, the multiple exposure signals of each pixel can be converted into corresponding multiple digital signals through the analog-to-digital converter ADC; and then according to the corresponding calculation method, each digital signal is processed Calculation and processing.
步骤S2408:在接收与多个曝光信号对应的多个数字信号后,根据测距算法获得第二脉冲光的相位延迟,并根据第二脉冲光的频率计算待测物与抗干扰测距装置的距离。Step S2408: After receiving multiple digital signals corresponding to multiple exposure signals, obtain the phase delay of the second pulsed light according to the ranging algorithm, and calculate the difference between the object under test and the anti-interference ranging device according to the frequency of the second pulsed light. distance.
具体地,在接受对应的多个数字信号后,根据预设的测距算法对镜头接收的第二脉冲光的相位进行延迟;然后根据第二脉冲光的相关频率以计算出目标对象(即待测物)与抗干扰测距装置之间的距离。Specifically, after receiving the corresponding multiple digital signals, the phase of the second pulsed light received by the lens is delayed according to the preset ranging algorithm; and then the target object (that is to be The distance between the object) and the anti-interference distance measuring device.
可选地,在通过计算每个像素上的距离信息后,得到的是关于待测物的深度图像信息。在结合其他维度的图像可以还原出三维空间中的物体与相机之间的距离,或者还原物体的三维图像。Optionally, after calculating the distance information on each pixel, what is obtained is the depth image information about the object to be measured. Combining images of other dimensions can restore the distance between the object in the three-dimensional space and the camera, or restore the three-dimensional image of the object.
在一种可能的实现方式中,前述方法还包括:通过光学透镜接收前述第二脉冲光。In a possible implementation manner, the foregoing method further includes: receiving the foregoing second pulsed light through an optical lens.
在一种可能的实现方式中,前述发光器为发光二极管LED或者垂直腔面发射激光器VCSEL。In a possible implementation manner, the aforementioned light emitter is a light emitting diode LED or a vertical cavity surface emitting laser VCSEL.
在一种可能的实现方式中,前述载波信号和前述基带信号的相位同步。In a possible implementation manner, the phases of the aforementioned carrier signal and the aforementioned baseband signal are synchronized.
在一种可能的实现方式中,所述根据随机数信号和第一调制阶数生成基带信号,包括:In a possible implementation manner, the generating the baseband signal according to the random number signal and the first modulation order includes:
根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。According to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, the random number signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to multiple mappings One of the relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each of the plurality of mapping relationship tables includes each A mapping relationship between a random number and the pulse position of the baseband signal; the multiple mapping relationship tables have a one-to-one correspondence with the multiple preset modulation orders.
本申请实施例主要通过在抗干扰测距装置(例如测距芯片)中加入了脉冲位置调制器(即PPM调制器)减少连续的相同随机数造成信号中相位连续一致而影响信号的抗干扰能力。具体地,PPM调制器接收包含一种或多种随机数的随机数信号,其中,一种或多种随机数中每一种随机数对应一种基带信号的脉冲位置。PPM调制器根据随机数对应的脉冲位置的相关参数,使得调制输出的基带信号中相应位置上出现符合要求的脉冲位置,并使得两个的脉冲位置之间有一定数量的时间间隔;不同相机中PPM调制器提供的随机数和脉冲位置的映射关系可以设置为不同,从而使得每个相机中产生的基带信号中两个脉冲位置之间的间隔数不同,进而提高了最后输出的脉冲光波的抗干扰性能,使得相机有效识别自身发射的脉冲光波而过滤其他相机发射的脉冲光波。本申请实施例对确定随机数与脉冲位置之间对应关系的方式不作限定。不同于现有技术中,直接将随机数向相移键控调制器发送;当出现连续0或者连续1的情况时,相移键控调制器输出的第一信号中每一组信号波之间的相位可能会连续相同。通过调制阶数使得在随机数信号中可能出现的多个连续相同随机数的情况下,输出基带信号中连续几组的基带信号相位不会连续相同,从而提高了信号的抗干扰能力。本申请实施例把波形随机化的操作,使用随机化的波形来发射和像素pixel互相关接收,因为随机数具有良好的自相关和互相关特性,所以pixel互相关接收时会仅将本机发射的信号放大输出,其他信号会被随机化处理,使得测距结果不会存在较大的误差。The embodiment of the present application mainly adds a pulse position modulator (i.e. PPM modulator) to the anti-interference ranging device (such as a ranging chip) to reduce the continuous same random number, which causes the phase of the signal to be continuous and consistent, which affects the anti-interference ability of the signal. . Specifically, the PPM modulator receives a random number signal containing one or more random numbers, where each random number in the one or more random numbers corresponds to a pulse position of a baseband signal. According to the relevant parameters of the pulse position corresponding to the random number, the PPM modulator makes the required pulse position appear in the corresponding position in the modulated output baseband signal, and makes a certain number of time intervals between the two pulse positions; in different cameras The mapping relationship between the random number provided by the PPM modulator and the pulse position can be set to be different, so that the number of intervals between the two pulse positions in the baseband signal generated in each camera is different, thereby improving the resistance of the final output pulse light wave. The interference performance enables the camera to effectively recognize the pulsed light waves emitted by itself and filter the pulsed light waves emitted by other cameras. The embodiment of the present application does not limit the manner of determining the correspondence between the random number and the pulse position. Different from the prior art, the random number is directly sent to the phase shift keying modulator; when continuous 0 or continuous 1 occurs, the first signal output by the phase shift keying modulator is between each group of signal waves The phases may be the same continuously. Through the modulation order, in the case of multiple consecutive identical random numbers that may appear in the random number signal, the phases of consecutive groups of baseband signals in the output baseband signal will not be continuously the same, thereby improving the anti-interference ability of the signal. The operation of randomizing the waveform in the embodiment of this application uses randomized waveforms to transmit and pixel cross-correlation reception. Because random numbers have good auto-correlation and cross-correlation characteristics, the pixel cross-correlation reception will only transmit locally The signal is amplified and output, and other signals will be randomized, so that there will be no large errors in the ranging results.
需要说明的是,本申请实施例中所描述的抗干扰测距方法可参见上述前述装置实施例中的抗干扰测距装置(接收端)的相关描述,此处不再赘述。It should be noted that the anti-interference ranging method described in the embodiment of the present application can refer to the related description of the anti-interference ranging device (receiving end) in the foregoing device embodiment, and will not be repeated here.
如图25所示,图25是本申请实施例提供的一种设备的结构示意图。抗干扰测距装置可以以图25中的结构来实现,该设备25包括至少一个处理器2501和至少一个存储器2502。此外,该设备还可以包括电源等通用部件,在此不再详述。As shown in FIG. 25, FIG. 25 is a schematic structural diagram of a device provided by an embodiment of the present application. The anti-interference ranging apparatus can be implemented with the structure in FIG. 25. The device 25 includes at least one processor 2501 and at least one memory 2502. In addition, the device may also include general components such as a power supply, which will not be described in detail here.
处理器2501可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 2501 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program programs.
存储器2502可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically  Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 2502 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types that can store information and instructions The dynamic storage device can also be electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storage, optical disc storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this. The memory can exist independently and is connected to the processor through a bus. The memory can also be integrated with the processor.
其中,前述存储器2502用于存储执行以上方案的应用程序代码,并由处理器2501来控制执行。前述处理器2501用于执行前述存储器2502中存储的应用程序代码。Wherein, the aforementioned memory 2502 is used to store application program codes for executing the above solutions, and the processor 2501 controls the execution. The aforementioned processor 2501 is configured to execute the application code stored in the aforementioned memory 2502.
图25所示的设备为抗干扰测距装置时,存储器2502存储的代码可执行以上图23或图24提供的抗干扰测距方法。When the device shown in FIG. 25 is an anti-interference ranging device, the code stored in the memory 2502 can execute the anti-interference ranging method provided in FIG. 23 or FIG. 24 above.
需要说明的是,本申请实施例中所描述的设备25的功能可参见前述的装置实施例中的相关描述,此处不再赘述。It should be noted that, for the functions of the device 25 described in the embodiments of the present application, reference may be made to the related descriptions in the foregoing apparatus embodiments, and details are not described herein again.
本申请实施例提供了一种电子设备,可包括如前述抗干扰测距装置,以及耦合于前述抗干扰测距装置外部的分立器件。An embodiment of the present application provides an electronic device, which may include the aforementioned anti-interference ranging device, and a discrete device coupled to the outside of the aforementioned anti-interference ranging device.
本申请实施例提供一种终端,该终端包括处理器,处理器被配置为支持该终端执行前述抗干扰测距的方法中相应的功能。该终端还可以包括存储器,存储器用于与处理器耦合,其保存终端必要的程序指令和数据。该终端还可以包括通信接口,用于该终端与其它设备或通信网络通信。An embodiment of the present application provides a terminal, the terminal includes a processor, and the processor is configured to support the terminal to perform corresponding functions in the foregoing anti-interference ranging method. The terminal may also include a memory, which is used for coupling with the processor and stores necessary program instructions and data for the terminal. The terminal may also include a communication interface for the terminal to communicate with other devices or communication networks.
本申请实施例还提供一种雷达,前述雷达可以包括如前述抗干扰测距装置或者前述抗干扰测距系统,用于实现前述装置或者前述系统提供的抗干扰测距功能。前述雷达还可以包括耦合于前述装置或者前述系统的存储器,用于保存雷达必要的程序指令和数据;前述雷达还可以包括耦合于前述装置或者前述系统的外部电源,前述外部电源用于向前述雷达供电。The embodiments of the present application also provide a radar, and the aforementioned radar may include the aforementioned anti-jamming ranging device or the aforementioned anti-jamming ranging system for realizing the anti-jamming ranging function provided by the aforementioned device or the aforementioned system. The aforementioned radar may also include a memory coupled to the aforementioned device or the aforementioned system for storing necessary program instructions and data for the radar; the aforementioned radar may also include an external power source coupled to the aforementioned device or the aforementioned system, and the aforementioned external power source is used to supply the aforementioned radar powered by.
本申请实施例提供一种车辆,前述车辆搭载如前述抗干扰测距装置或者前述抗干扰测距系统,用于实现前述装置或者前述系统提供的抗干扰测距功能。前述车辆还可以包括自动驾驶系统,用于根据道路情况控制前述车辆行驶。前述车辆还可以包括耦合于前述装置或者前述系统的外部分立器件。An embodiment of the present application provides a vehicle equipped with the aforementioned anti-interference ranging device or the aforementioned anti-interference ranging system for realizing the anti-interference ranging function provided by the aforementioned device or the aforementioned system. The aforementioned vehicle may also include an automatic driving system for controlling the aforementioned vehicle to travel according to road conditions. The aforementioned vehicle may further include an external discrete device coupled to the aforementioned device or the aforementioned system.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps may be performed in other order or at the same time. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可 以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(Read-Only Memory,缩写:ROM)或者随机存取存储器(Random Access Memory,缩写:RAM)等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in a computer device) execute all or part of the steps of the foregoing methods of the various embodiments of the present application. Among them, the aforementioned storage media may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc. A medium that can store program codes.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features thereof are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (25)

  1. 一种抗干扰测距装置,其特征在于,包括:An anti-interference ranging device, characterized in that it comprises:
    脉冲位置调制器、与所述脉冲位置调制器连接的相移键控调制器;A pulse position modulator, a phase shift keying modulator connected to the pulse position modulator;
    所述脉冲位置调制器,用于根据随机数信号生成基带信号;其中,所述随机数信号包括一种或多种随机数,所述一种或多种随机数中每一种随机数对应一种所述基带信号的脉冲位置;当所述随机数信号中有多个连续相同的随机数时,在所述基带信号中所述多个连续相同的随机数对应的脉冲位置之间存在M个时间间隔,M为大于0的整数;所述随机数信号和所述基带信号的相位同步;The pulse position modulator is used to generate a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each of the one or more random numbers corresponds to one random number. The pulse position of the baseband signal; when the random number signal has multiple consecutive identical random numbers, there are M pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal Time interval, M is an integer greater than 0; the phase of the random number signal and the baseband signal are synchronized;
    所述相移键控调制器,用于将载波信号和所述基带信号进行调制,以生成第一信号;其中,所述第一信号用于驱动发光器产生第一脉冲光,所述第一脉冲光用于照射待测物。The phase shift keying modulator is used to modulate a carrier signal and the baseband signal to generate a first signal; wherein, the first signal is used to drive a light emitter to generate a first pulsed light, and the first Pulsed light is used to illuminate the object to be measured.
  2. 根据权利要求1所述的装置,其特征在于,所述脉冲位置调制器,具体用于:根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。The device according to claim 1, wherein the pulse position modulator is specifically configured to: according to the pulse position of each random number in the random number signal corresponding to the pulse position in the first mapping relationship table, the pulse position modulator The random number signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to one of a plurality of mapping relationship tables corresponding to a first modulation order; the first modulation order is a plurality of presets One of the modulation orders; each of the plurality of mapping relationship tables includes the mapping relationship between each of the random numbers and the pulse position of the baseband signal; the plurality of mapping relationship tables and The multiple preset modulation orders have a one-to-one correspondence.
  3. 根据权利要求1或2所述的装置,其特征在于,所述装置还包括与所述相移键控调制器连接的锁相环电路;The device according to claim 1 or 2, wherein the device further comprises a phase locked loop circuit connected with the phase shift keying modulator;
    所述锁相环电路,用于根据预设周期产生所述载波信号,所述载波信号与所述随机数信号的相位同步。The phase-locked loop circuit is configured to generate the carrier signal according to a preset period, and the carrier signal is synchronized with the phase of the random number signal.
  4. 根据权利要求1-3任一项所述的装置,其特征在于,所述装置还包括:与所述相移键控调制器连接的延迟线电路;The device according to any one of claims 1-3, wherein the device further comprises: a delay line circuit connected to the phase shift keying modulator;
    所述延迟线电路,用于根据预设的相位延迟值,对所述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;所述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。The delay line circuit is configured to perform multiple phase delay operations on the first signal according to a preset phase delay value to generate multiple pixel internal integration switch signals; each of the multiple phase delay operations corresponds to A switch signal is integrated inside a pixel.
  5. 根据权利要求4所述的装置,其特征在于,所述装置还包括:与所述延迟线电路连接的像素阵列;The device according to claim 4, wherein the device further comprises: a pixel array connected to the delay line circuit;
    所述像素阵列中每一个像素,用于根据所述多个像素内部积分开关信号和所述第二脉冲光,确定所述每一个像素对应的多个曝光信号。Each pixel in the pixel array is configured to determine a plurality of exposure signals corresponding to each pixel according to the internal integration switch signal of the plurality of pixels and the second pulsed light.
  6. 根据权利要求5所述的装置,其特征在于,所述装置还包括与所述像素阵列连接的模数转换器ADC;所述ADC用于将所述每一个像素对应的多个曝光信号转换成对应的多个数字信号。The device according to claim 5, wherein the device further comprises an analog-to-digital converter ADC connected to the pixel array; the ADC is used to convert a plurality of exposure signals corresponding to each pixel into Corresponding multiple digital signals.
  7. 根据权利要求1-6任一项所述的装置,其特征在于,所述装置还包括与所述脉冲位置调制器连接的伪随机数产生器;The device according to any one of claims 1-6, wherein the device further comprises a pseudo-random number generator connected to the pulse position modulator;
    所述伪随机数产生器,用于根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的随机数;所述预设时长与所述随机数产生周期的数值相同。The pseudo-random number generator is configured to generate a plurality of random numbers that last for a preset duration according to a pseudo-random number generation period, a pseudo-random number period, and a preset initial pseudo-random number; the preset duration and the random number The value of the number generation period is the same.
  8. 根据权利要去1-7任一项所述的装置,其特征在于,所述载波信号和所述基带信号的相位同步。The apparatus according to any one of claims 1-7, wherein the phase of the carrier signal and the baseband signal are synchronized.
  9. 一种抗干扰测距方法,其特征在于,包括:An anti-jamming ranging method, which is characterized in that it comprises:
    根据随机数信号生成基带信号;其中,所述随机数信号包括一种或多种随机数,所述一种或多种随机数中每一种随机数对应一种所述基带信号的脉冲位置;当所述随机数信号中有多个连续相同的随机数时,在所述基带信号中所述多个连续相同的随机数对应的脉冲位置之间存在M个时间间隔,M为大于0的整数;所述随机数信号和所述基带信号的相位同步;Generating a baseband signal according to a random number signal; wherein the random number signal includes one or more random numbers, and each random number in the one or more random numbers corresponds to a pulse position of the baseband signal; When there are multiple consecutive identical random numbers in the random number signal, there are M time intervals between pulse positions corresponding to the multiple consecutive identical random numbers in the baseband signal, and M is an integer greater than 0 ; The random number signal and the phase of the baseband signal are synchronized;
    将载波信号和所述基带信号进行调制,以生成第一信号;其中,所述第一信号用于驱动发光器产生第一脉冲光,所述第一脉冲光用于照射待测物。The carrier signal and the baseband signal are modulated to generate a first signal; wherein, the first signal is used to drive the light emitter to generate first pulsed light, and the first pulsed light is used to illuminate the object to be measured.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:根据所述第一信号控制发光器发射所述第一脉冲光。The method according to claim 9, wherein the method further comprises: controlling a light emitter to emit the first pulsed light according to the first signal.
  11. 根据权利要求9或10所述的方法,其特征在于,所述方法还包括:The method according to claim 9 or 10, wherein the method further comprises:
    根据预设周期产生所述载波信号,所述载波信号与所述随机数信号的相位同步。The carrier signal is generated according to a preset period, and the phase of the carrier signal is synchronized with the random number signal.
  12. 根据权利要求9-11任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 9-11, wherein the method further comprises:
    根据预设的相位延迟值,对所述第一信号进行多次相位延迟操作,生成多个像素内部积分开关信号;所述多次相位延迟操作中每一次操作对应一个像素内部积分开关信号。According to a preset phase delay value, multiple phase delay operations are performed on the first signal to generate multiple pixel internal integration switch signals; each operation in the multiple phase delay operations corresponds to a pixel internal integration switch signal.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method according to claim 12, wherein the method further comprises:
    接收第二脉冲光,所述第二脉冲光为所述待测物反射的脉冲光;Receiving a second pulsed light, where the second pulsed light is pulsed light reflected by the object to be measured;
    根据所述多个像素内部积分开关信号和所述第二脉冲光,确定所述每一个像素对应的多个曝光信号。The multiple exposure signals corresponding to each pixel are determined according to the internal integration switch signals of the multiple pixels and the second pulse light.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, wherein the method further comprises:
    将所述每一个像素对应的多个曝光信号转换成对应的多个数字信号。The multiple exposure signals corresponding to each pixel are converted into multiple corresponding digital signals.
  15. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method according to claim 14, wherein the method further comprises:
    接收所述对应的多个数字信号;Receiving the corresponding multiple digital signals;
    根据测距算法获得所述第二脉冲光的相位延迟,并根据所述第二脉冲光的频率计算所述待测物与所述抗干扰测距装置的距离。The phase delay of the second pulsed light is obtained according to a ranging algorithm, and the distance between the object to be measured and the anti-interference ranging device is calculated according to the frequency of the second pulsed light.
  16. 根据权利要求9-15任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 9-15, wherein the method further comprises:
    根据伪随机数产生周期、伪随机数周期和预设的初始伪随机数,生成多个持续预设时长的伪随机数;所述预设时长与所述伪随机数产生周期的数值相同。According to the pseudo-random number generation period, the pseudo-random number period, and the preset initial pseudo-random number, a plurality of pseudo-random numbers lasting for a preset duration are generated; the preset duration is the same as the value of the pseudo-random number generation cycle.
  17. 根据权利要去9-16任一项所述的方法,其特征在于,所述载波信号和所述基带信号的相位同步。The method according to any one of claims 9-16, wherein the phases of the carrier signal and the baseband signal are synchronized.
  18. 根据权利要去9-17任一项所述的方法,其特征在于,所述根据随机数信号生成基带信号,包括:The method according to any one of claims 9-17, wherein the generating a baseband signal according to a random number signal comprises:
    根据所述随机数信号中的每一个随机数在第一映射关系表中对应的脉冲位置,将所述随机数信号调制成所述基带信号,其中,所述第一映射关系表属于多个映射关系表中与第一调制阶数对应的一个;所述第一调制阶数为多个预设的调制阶数中的一个;所述多个映射关系表中每一个映射关系表包括所述每一种随机数与所述基带信号的脉冲位置之间的映射关系;所述多个映射关系表与所述多个预设的调制阶数一一对应。According to the corresponding pulse position of each random number in the random number signal in the first mapping relationship table, the random number signal is modulated into the baseband signal, wherein the first mapping relationship table belongs to multiple mappings One of the relationship tables corresponding to the first modulation order; the first modulation order is one of a plurality of preset modulation orders; each of the plurality of mapping relationship tables includes each A mapping relationship between a random number and the pulse position of the baseband signal; the multiple mapping relationship tables have a one-to-one correspondence with the multiple preset modulation orders.
  19. 一种抗干扰测距系统,其特征在于,包括:光源驱动器、与所述光源驱动器连接的发光器以及如权利要求1-8任一项的所述装置;An anti-interference ranging system, characterized by comprising: a light source driver, a light emitter connected to the light source driver, and the device according to any one of claims 1-8;
    所述光源驱动器,用于根据所述第一信号控制所述发光器发射所述第一脉冲光。The light source driver is configured to control the light emitter to emit the first pulsed light according to the first signal.
  20. 根据权利要求19所述的系统,其特征在于,所述系统还包括光学透镜;所述光学透镜用于接收所述第二脉冲光,所述第二脉冲光为所述待测物反射的脉冲光。The system according to claim 19, wherein the system further comprises an optical lens; the optical lens is used to receive the second pulsed light, and the second pulsed light is a pulse reflected by the object to be measured Light.
  21. 根据权利要求19或20所述的系统,其特征在于,所述系统还包括测距电路;所述测距电路用于:The system according to claim 19 or 20, wherein the system further comprises a ranging circuit; the ranging circuit is used for:
    接收所述对应的多个数字信号;Receiving the corresponding multiple digital signals;
    根据测距算法获得所述第二脉冲光的相位延迟,并根据所述第二脉冲光的频率计算所述待测物与所述抗干扰测距装置的距离。The phase delay of the second pulsed light is obtained according to a ranging algorithm, and the distance between the object to be measured and the anti-interference ranging device is calculated according to the frequency of the second pulsed light.
  22. 根据权利要求19-21任一项所述的系统,其特征在于,所述发光器为发光二极管LED或者垂直腔面发射激光器VCSEL。The system according to any one of claims 19-21, wherein the light emitter is a light emitting diode (LED) or a vertical cavity surface emitting laser (VCSEL).
  23. 一种雷达,其特征在于,所述雷达包括如权利要求1-8所述的装置或者权利要求19-21所述的系统,用于实现所述装置或者所述系统提供的抗干扰测距功能;所述雷达还可以包括耦合于所述装置或者所述系统的存储器,用于保存雷达必要的程序指令和数据;所述雷达还可以包括耦合于所述装置或者所述系统的外部电源,所述外部电源用于向所述雷 达供电。A radar, characterized in that the radar includes the device as claimed in claims 1-8 or the system as claimed in claims 19-21, for realizing the anti-jamming ranging function provided by the device or the system The radar may also include a memory coupled to the device or the system for storing necessary program instructions and data for the radar; the radar may also include an external power supply coupled to the device or the system, so The external power supply is used to supply power to the radar.
  24. 一种车辆,其特征在于,所述车辆包括如权利要求1-8所述的装置或者权利要求19-21所述的系统,用于实现所述装置或者所述系统提供的抗干扰测距功能;所述车辆还可以包括自动驾驶系统,用于根据道路情况控制所述车辆行驶;所述车辆还可以包括耦合于所述装置或者所述系统的外部分立器件。A vehicle, characterized in that the vehicle comprises the device according to claims 1-8 or the system according to claims 19-21, for realizing the anti-interference ranging function provided by the device or the system The vehicle may also include an automatic driving system for controlling the driving of the vehicle according to road conditions; the vehicle may also include an external discrete device coupled to the device or the system.
  25. 一种终端,其特征在于,所述终端包括处理器,所述处理器被配置为支持该终端执行如权利要求9-18任一项中抗干扰测距的方法的相应功能;所述终端还可以包括所述存储器,所述存储器与所述处理器耦合,用于保存所述终端必要的程序指令和数据;所述终端还可以包括通信接口,用于通过通信网络通信。A terminal, wherein the terminal includes a processor configured to support the terminal to perform the corresponding function of the anti-interference ranging method in any one of claims 9-18; the terminal is also It may include the memory, which is coupled with the processor, and is used for storing necessary program instructions and data of the terminal; the terminal may also include a communication interface for communicating through a communication network.
PCT/CN2020/077360 2020-02-29 2020-02-29 Anti-interference distance measuring device and method WO2021168866A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/077360 WO2021168866A1 (en) 2020-02-29 2020-02-29 Anti-interference distance measuring device and method
CN202080093633.5A CN115004054A (en) 2020-02-29 2020-02-29 Anti-interference distance measuring device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/077360 WO2021168866A1 (en) 2020-02-29 2020-02-29 Anti-interference distance measuring device and method

Publications (1)

Publication Number Publication Date
WO2021168866A1 true WO2021168866A1 (en) 2021-09-02

Family

ID=77489799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077360 WO2021168866A1 (en) 2020-02-29 2020-02-29 Anti-interference distance measuring device and method

Country Status (2)

Country Link
CN (1) CN115004054A (en)
WO (1) WO2021168866A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115857027A (en) * 2022-10-20 2023-03-28 东莞市森威电子有限公司 Pipeline blockage measuring instrument
WO2023115970A1 (en) * 2021-12-25 2023-06-29 河南森源鸿马电动汽车有限公司 Pseudo-random noise radar integrated chip
CN116755073A (en) * 2023-06-21 2023-09-15 上海雷骥电子科技有限公司 Method for resolving distance ambiguity by using lookup table and application

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117741602A (en) * 2022-09-22 2024-03-22 华为终端有限公司 Signal processing method and electronic equipment
WO2024119519A1 (en) * 2022-12-09 2024-06-13 华为技术有限公司 Distance measurement method and related apparatus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271154A (en) * 2008-03-28 2008-09-24 天津大学 Ultrasound excitation method for eliminating robot ultrasound ranging system interference
US20120098964A1 (en) * 2010-10-22 2012-04-26 Mesa Imaging Ag System and Method for Multi TOF Camera Operation Using Phase Hopping
CN104730535A (en) * 2015-03-20 2015-06-24 武汉科技大学 Vehicle-mounted Doppler laser radar distance measuring method
CN105785332A (en) * 2016-03-07 2016-07-20 沈阳承泰科技有限公司 Radar anti-interference method
US20160349359A1 (en) * 2015-05-27 2016-12-01 Amir Nevet Reduction in camera to camera interference in depth measurements using spread spectrum
CN109863418A (en) * 2016-09-16 2019-06-07 美国亚德诺半导体公司 Interference processing in flight time depth sense
CN109884611A (en) * 2019-03-22 2019-06-14 北京未感科技有限公司 A kind of laser radar anti-interference method and device
US20190265360A1 (en) * 2017-11-27 2019-08-29 Microsoft Technology Licensing, Llc Time of flight camera
CN110233677A (en) * 2019-05-20 2019-09-13 电子科技大学 A kind of laser communication range unit and method based on light orthogonal code

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271154A (en) * 2008-03-28 2008-09-24 天津大学 Ultrasound excitation method for eliminating robot ultrasound ranging system interference
US20120098964A1 (en) * 2010-10-22 2012-04-26 Mesa Imaging Ag System and Method for Multi TOF Camera Operation Using Phase Hopping
CN104730535A (en) * 2015-03-20 2015-06-24 武汉科技大学 Vehicle-mounted Doppler laser radar distance measuring method
US20160349359A1 (en) * 2015-05-27 2016-12-01 Amir Nevet Reduction in camera to camera interference in depth measurements using spread spectrum
CN105785332A (en) * 2016-03-07 2016-07-20 沈阳承泰科技有限公司 Radar anti-interference method
CN109863418A (en) * 2016-09-16 2019-06-07 美国亚德诺半导体公司 Interference processing in flight time depth sense
US20190265360A1 (en) * 2017-11-27 2019-08-29 Microsoft Technology Licensing, Llc Time of flight camera
CN109884611A (en) * 2019-03-22 2019-06-14 北京未感科技有限公司 A kind of laser radar anti-interference method and device
CN110233677A (en) * 2019-05-20 2019-09-13 电子科技大学 A kind of laser communication range unit and method based on light orthogonal code

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023115970A1 (en) * 2021-12-25 2023-06-29 河南森源鸿马电动汽车有限公司 Pseudo-random noise radar integrated chip
CN115857027A (en) * 2022-10-20 2023-03-28 东莞市森威电子有限公司 Pipeline blockage measuring instrument
CN116755073A (en) * 2023-06-21 2023-09-15 上海雷骥电子科技有限公司 Method for resolving distance ambiguity by using lookup table and application
CN116755073B (en) * 2023-06-21 2024-03-26 上海雷骥电子科技有限公司 Method for resolving distance ambiguity by using lookup table and application

Also Published As

Publication number Publication date
CN115004054A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
WO2021168866A1 (en) Anti-interference distance measuring device and method
JP7317910B2 (en) Method and system for using square wave digital chirp signals for optical chirp range detection
WO2021008209A1 (en) Depth measurement apparatus and distance measurement method
CN110114632B (en) Method and system for doppler detection and doppler correction for optical chirp distance detection
US8154436B2 (en) Object detection
CN109889809A (en) Depth camera mould group, depth camera, depth picture capturing method and depth camera mould group forming method
KR102352325B1 (en) Laser phase tracking method and system for internal reflection subtraction in phase encoding LIDAR
TWI534452B (en) Method and time-of-flight camera for providing distance information
EP2594959B1 (en) System and method for multi TOF camera operation using phase hopping
CN111123289A (en) Depth measuring device and measuring method
CN110187350B (en) Laser radar ranging method and device based on spread spectrum technology
CN104035097A (en) No-scanning three-dimensional laser detection device received by array transmitting unit and method
US20220244363A1 (en) Method and system for sidelobe suppression in phase encoded doppler lidar
JP2004518141A (en) Radar device and method for encoding the radar device
CN112596042B (en) Laser radar device and method for eliminating crosstalk
WO2020028146A1 (en) Method and system for optimizing scanning of coherent lidar in autonomous vehicles
US11187783B2 (en) Radar systems and methods for operating radar systems
CN209676383U (en) Depth camera mould group, depth camera, mobile terminal and imaging device
CN102073051A (en) Laser multi-pulse time spreading and distance measuring device
US11131772B2 (en) LiDAR device and method of operating the same
EP3811108A1 (en) Methods and systems for increasing the range of time-of-flight systems by unambiguous range toggling
CN109254299A (en) The frequency modulation of noiseless optical time of flight system
US11561291B2 (en) High pulse repetition frequency lidar
CN107797964B (en) Multiphase pseudorandom sequence rapid generation and decoding method based on single photon detection
CN106324589B (en) A kind of measurement method of parameters and electronic equipment of mobile target

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921427

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921427

Country of ref document: EP

Kind code of ref document: A1