WO2024022171A1 - Signal processing method, and electronic device - Google Patents

Signal processing method, and electronic device Download PDF

Info

Publication number
WO2024022171A1
WO2024022171A1 PCT/CN2023/107943 CN2023107943W WO2024022171A1 WO 2024022171 A1 WO2024022171 A1 WO 2024022171A1 CN 2023107943 W CN2023107943 W CN 2023107943W WO 2024022171 A1 WO2024022171 A1 WO 2024022171A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
ranging
ranging sensor
sensor
duration
Prior art date
Application number
PCT/CN2023/107943
Other languages
French (fr)
Chinese (zh)
Other versions
WO2024022171A9 (en
Inventor
段耿耿
田智浩
魏建宾
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024022171A1 publication Critical patent/WO2024022171A1/en
Publication of WO2024022171A9 publication Critical patent/WO2024022171A9/en

Links

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
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/02Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
    • G01S13/06Systems determining position data of a target
    • G01S13/08Systems for measuring distance only
    • 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
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • 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/02Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00
    • G01S7/36Means for anti-jamming, e.g. ECCM, i.e. electronic counter-counter measures
    • 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/52Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S15/00
    • G01S7/537Counter-measures or counter-counter-measures, e.g. jamming, anti-jamming

Definitions

  • the present application relates to the technical field of electronic equipment, and in particular, to a signal processing method and electronic equipment.
  • Ranging sensors are commonly used in devices such as mobile phones, tablets, smart door locks, or vehicle-mounted terminal equipment to detect the distance of a target. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. During ranging, the signal emitted by the ranging sensor will be reflected when it encounters the target. The ranging sensor receives the reflected signal and calculates the phase difference or time difference between the sent and received signals to determine the distance between the ranging sensor and the target. .
  • the range-finding sensor has a wide field of view (FOV) coverage, so when there are multiple ranging sensors emitting signals with the same frequency in a certain space, it is easy for co-channel interference to occur, resulting in The distance measurement results have a large error.
  • FOV field of view
  • Embodiments of the present application provide a signal processing method and electronic equipment to suppress co-channel interference between multiple ranging sensors.
  • the present application provides a signal processing method, which is applied to an electronic device including a ranging sensor.
  • the method includes: detecting a first interference signal through the ranging sensor; adjusting the ranging of the ranging sensor. period, wherein the time period used to obtain ranging results in the adjusted ranging period is not equal to the time period used to obtain ranging results in the ranging period before adjustment; the ranging sensor is controlled to be based on the adjusted measuring period.
  • the signal is processed periodically, wherein the processing includes one or more of transmitting, receiving, or obtaining ranging results.
  • the electronic device including the ranging sensor detects the first interference signal through the ranging sensor, it can be determined that there is an interfering ranging sensor that generates co-frequency interference to the ranging sensor.
  • the signal from the interfering ranging sensor will not be continuously received by the ranging sensor, thereby suppressing interference between multiple ranging sensors.
  • Co-channel interference the process of adjusting the ranging cycle in the embodiment of the present application will not cause the ranging frequency of the ranging sensor to drop significantly, and can continue to ensure that the ranging behavior of the ranging sensor continues.
  • the method provided by the embodiment of the present application can be implemented through software configuration without increasing the hardware complexity of the ranging sensor.
  • the electronic device including the ranging sensor when the electronic device including the ranging sensor detects the first interference signal through the ranging sensor, it can: before the ranging sensor transmits the signal, receive the first interference signal through the ranging sensor. signal; determine that the first signal is the first interference signal.
  • the electronic device including the ranging sensor receives the first signal through the ranging sensor before the ranging sensor transmits the signal, it can be determined that the first signal received by the ranging sensor is not the ranging sensor.
  • the signal emitted by the distance sensor is reflected back when it encounters the target, but interferes with the signal emitted by the distance sensor, that is, the first signal is the first interference signal, and then it is determined that there is interference that causes co-frequency interference to the distance sensor ranging sensors, thereby being able to suppress co-channel interference between multiple ranging sensors through subsequent processing.
  • the absolute value of the difference between the first duration and the second duration is greater than or equal to the duration used to receive the signal in the ranging period before adjustment, wherein the first duration is the The second duration is the duration used to obtain the ranging result in the adjusted ranging period, and the second duration is the duration used to obtain the ranging result in the pre-adjusted ranging period.
  • the electronic device including the ranging sensor can adjust the length of time used to obtain the ranging result within the ranging cycle of the ranging sensor, so that the length of time used to obtain the ranging result within the adjusted ranging cycle is equal to
  • the absolute value of the difference in the duration used to obtain ranging results in the ranging period before adjustment can be greater than or equal to the duration used to receive signals in the ranging period before adjustment, thereby ensuring that interference from The signal of the ranging sensor will not be continuously received by the ranging sensor, thus suppressing the same-frequency interference between multiple ranging sensors.
  • the electronic device including the ranging sensor can also: receive a second signal through the ranging sensor; if the second signal is a second interference signal, control the ranging sensor to filter the Second signal.
  • the electronic device including the ranging sensor may receive the second signal through the ranging sensor after controlling the ranging sensor to process the signal according to the adjusted ranging cycle, if the second signal is a second interference signal , controlling the ranging sensor to filter the second signal, thereby suppressing co-channel interference between multiple ranging sensors.
  • the electronic device including the ranging sensor may also: determine that the second signal is the second interference if the number of times the second signal is continuously received by the ranging sensor is less than a threshold. Signal.
  • the electronic device including the ranging sensor can determine the number of consecutive occurrences of the signal received by the ranging sensor. If the number of consecutive occurrences is not less than a threshold, it is determined that the signal is a normal signal. If the number of consecutive occurrences is less than threshold, it is determined that the signal is an interference signal, thereby suppressing co-frequency interference between multiple ranging sensors.
  • the electronic device including the ranging sensor determines whether the second signal is a second interference signal, : If the ranging sensor receives the second signal at the first moment and does not receive the second signal at the second moment, determine that the second signal is the second interference signal, where: The duration between the second moment and the first moment is N times the duration of the adjusted ranging period, and N is a positive integer smaller than the threshold.
  • the ranging sensor after the electronic device including the ranging sensor adjusts the duration used to obtain the ranging result within the ranging cycle of the ranging sensor, if the ranging sensor receives the second signal at the first moment, it can be determined by Whether the ranging sensor also receives the second signal at a second time that is N adjusted ranging cycles apart from the first time, to determine whether the number of times the second signal is continuously received by the ranging sensor is less than the threshold, if If the ranging sensor does not receive the second signal at the second moment, it can be determined that the second signal is the second interference signal, thereby ensuring that the ranging sensor can accurately filter the interference signal and suppressing the interference generated by the ranging sensor to the ranging sensor. co-channel interference.
  • the threshold value is greater than or equal to the sum of the number of the ranging sensors and the number of interfering ranging sensors.
  • the number of interference ranging sensors is determined based on the first interference signal.
  • the electronic device including the ranging sensor can determine the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor based on all signals received by the ranging sensor before transmitting the signal. Due to the adjustment After the ranging period of the ranging sensor, the same-frequency interference caused by the interfering ranging sensor to the ranging sensor will not appear continuously. Therefore, the threshold can be set to no less than the number of the ranging sensors and the interfering ranging sensor. The sum of the number of sensors, if the number of times the signal is continuously received by the ranging sensor is less than the threshold, it can be determined that the signal is an interference signal, thereby ensuring that the ranging sensor can accurately filter the interference signal and suppress the interference of the ranging sensor. Co-frequency interference generated by distance sensors.
  • the electronic device including the ranging sensor determines whether the second signal is a second interference signal
  • Generate a narrow pulse signal corresponding to the second signal perform frequency division processing and high-pass filtering processing on the narrow pulse signal to obtain a signal envelope, wherein the frequency division processing is used to divide the narrow pulse signal into Convert to an edge signal; if the second signal does not exist in the signal envelope, determine the second signal to be the second interference signal.
  • the ranging sensor after the electronic device including the ranging sensor adjusts the time period used to obtain the ranging result within the ranging cycle of the ranging sensor, if the ranging sensor receives the second signal, it can generate the second signal corresponding to The narrow pulse signal is generated, and all generated narrow pulse signals are divided by two and high-pass filtered to obtain the signal envelope. Since the number of times the interference signal is continuously received by the ranging sensor is less than the threshold, frequency divided by two and high-pass filtered The processing will filter the narrow pulse signal corresponding to the interference signal so that there is no interference signal in the obtained signal envelope. Therefore, if there is no second signal in the obtained signal envelope, the second signal can be determined to be the interference signal, thus ensuring The ranging sensor can accurately filter interference signals and suppress the same-frequency interference caused by the interfering ranging sensor to the ranging sensor.
  • this application also provides an electronic device, including a ranging sensor and a processor; the ranging sensor and the processor have any possible design method for implementing the above first aspect or the first aspect.
  • the functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the ranging sensor is used to detect the first interference signal
  • the processor is configured to adjust the ranging period of the ranging sensor, wherein the time used to obtain the ranging results in the adjusted ranging period is not equal to the time used to obtain the ranging results in the ranging period before adjustment. duration;
  • the ranging sensor is also used to process signals according to the adjusted ranging cycle, wherein the processing includes transmitting, receiving, Or obtain one or more of the ranging results.
  • the ranging sensor is used to detect the first interference signal in the following manner: before the ranging sensor transmits the signal, receive the first signal; determine that the first signal is the first interference signal. An interference signal.
  • the absolute value of the difference between the first duration and the second duration is greater than or equal to the duration used to receive the signal in the ranging period before adjustment, wherein the first duration is the The second duration is the duration used to obtain the ranging result in the adjusted ranging period, and the second duration is the duration used to obtain the ranging result in the pre-adjusted ranging period.
  • the ranging sensor is also used to receive a second signal; the ranging sensor is also used to filter the second signal if the second signal is a second interference signal.
  • the processor is further configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold.
  • the processor is configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold. : If the ranging sensor receives the second signal at the first moment and does not receive the second signal at the second moment, determine that the second signal is the second interference signal, where: The duration between the second moment and the first moment is N times the duration of the adjusted ranging period, and N is a positive integer smaller than the threshold.
  • the threshold value is greater than or equal to the sum of the number of the ranging sensors and the number of interfering ranging sensors.
  • the number of interference ranging sensors is determined based on the first interference signal.
  • the processor is configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold. : Generate a narrow pulse signal corresponding to the second signal; perform frequency division processing and high-pass filtering processing on the narrow pulse signal to obtain a signal envelope, wherein the frequency division processing is used to divide the narrow pulse signal into Convert to an edge signal; if the second signal does not exist in the signal envelope, determine the second signal to be the second interference signal.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium is used to store a computer program.
  • the computer program When the computer program is run on a computer, it causes the computer to execute the above-mentioned first aspect or A first aspect of any possible design is the method described.
  • the present application provides a computer program product, including a computer program, which when the computer program is run on a computer, causes the computer to execute as described in the above first aspect or any possible design of the first aspect.
  • Figure 1 is a schematic diagram of an application scenario of the ranging sensor provided by the embodiment of the present application.
  • Figure 2 is a schematic diagram of a working principle of the ranging sensor provided by the embodiment of the present application.
  • Figure 3 is a schematic diagram of the ranging cycle of a ranging sensor provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a ranging histogram provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of co-frequency interference of the ranging sensor provided by the embodiment of the present application.
  • Figure 6 is a schematic diagram of continuous co-frequency interference of the ranging sensor provided by the embodiment of the present application.
  • Figure 7 is a schematic diagram of a time-sharing avoidance provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of co-channel interference judgment provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of adjusting the ranging period provided by an embodiment of the present application.
  • Figure 11 is a schematic diagram for determining interference signals provided by an embodiment of the present application.
  • Figure 12 is another schematic diagram for determining interference signals provided by an embodiment of the present application.
  • Figure 13 is a schematic flow chart of a signal processing method provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of the hardware structure of another electronic device provided by an embodiment of the present application.
  • At least one of the embodiments of the present application involves one or more; where multiple means greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order.
  • the first object and the second object do not represent the importance of the two or the order of the two, but are only used to distinguish the description.
  • "and/or” only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations.
  • the character "/" in this article generally indicates that the related objects are an "or” relationship.
  • connection can be detachably connected, or can be detachably connected. It is non-detachably connected; it can be directly connected or indirectly connected through an intermediate medium.
  • connection can be detachably connected, or can be detachably connected. It is non-detachably connected; it can be directly connected or indirectly connected through an intermediate medium.
  • orientation terms are used to describe and understand the embodiments of the present application better and more clearly, but do not indicate or imply that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application.
  • “Plural” means at least two.
  • references herein to "one embodiment” or “some embodiments” or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments provided herein.
  • the various appearances herein of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in further embodiments,” etc. are not necessarily all References to the same embodiment are intended to mean “one or more, but not all, embodiments” unless otherwise specifically emphasized.
  • the terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
  • Ranging sensor is one of the commonly used smart sensors and can be used to detect distance. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. During ranging, the signal emitted by the transmitting device of the ranging sensor will be reflected back to the receiving device of the ranging sensor when it encounters a target. By calculating the phase difference or time difference between the sending and receiving signals, the distance between the ranging sensor and the target can be determined. distance between.
  • Ranging sensors have been widely used in electronic devices to detect target position or distance.
  • electronic devices may be portable devices, such as mobile phones, tablets, wearable devices with wireless communication functions (for example, watches, bracelets, helmets, headphones, etc.), vehicle-mounted terminal devices, augmented reality (augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), etc.
  • portable devices such as mobile phones, tablets, wearable devices with wireless communication functions (for example, watches, bracelets, helmets, headphones, etc.), vehicle-mounted terminal devices, augmented reality (augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), etc.
  • AR augmented reality
  • VR virtual reality
  • laptops laptops
  • UPC ultra-mobile personal computers
  • netbooks personal digital assistants
  • PDA personal digital assistant
  • Electronic devices can also be smart home devices (such as smart TVs, smart speakers, smart door locks, etc.), smart cars, smart robots, workshop equipment, wireless terminals in self-driving (Self Driving), remote medical surgery (Remote Medical Surgery) ), a wireless terminal in a Smart Grid, a wireless terminal in Transportation Safety, a wireless terminal in a Smart City, or a wireless terminal in a Smart Home , flying equipment (such as intelligent robots, hot air balloons, drones, airplanes), etc.
  • smart home devices such as smart TVs, smart speakers, smart door locks, etc.
  • smart cars such as smart cars, smart robots, workshop equipment, wireless terminals in self-driving (Self Driving), remote medical surgery (Remote Medical Surgery)
  • Wireless terminal in a Smart Grid such as a wireless terminal in Transportation Safety
  • a wireless terminal in a Smart City such as a wireless terminal in a Smart City
  • flying equipment such as intelligent robots, hot air balloons, drones, airplanes
  • the electronic device may also be a portable terminal device that also includes other functions such as a personal digital assistant and/or a music player function.
  • portable terminal devices include, but are not limited to, carrying Or portable terminal devices with other operating systems.
  • the above-mentioned portable terminal device may also be other portable terminal devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel).
  • the above-mentioned electronic device may not be a portable terminal device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
  • FIG. 1 is a schematic diagram of an application scenario of a ranging sensor provided by an embodiment of the present application.
  • FIG. 1 takes a smart door lock including a ranging sensor as an example.
  • Figure 1 shows a scenario where multiple households face each other.
  • the ranging sensor 1, ranging sensor 2 and ranging sensor 3 in Figure 1 are respectively installed in the smart door lock 1 of door 1 and the smart door lock 2 of door 2.
  • the ranging sensor is applied in a vehicle-mounted terminal device.
  • the vehicle-mounted terminal device can detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle corresponding to the vehicle-mounted terminal device through the included ranging sensor, thereby detecting the presence of foreign objects, pedestrians or other vehicles. or other vehicles automatically brake or change direction.
  • FIG. 2 is a schematic diagram of a working principle of the ranging sensor provided by the embodiment of the present application.
  • the ranging sensor transmits ultrasonic waves through the transmitting device at time t1 , and receives the ultrasonic waves reflected by the target through the receiving device at time t2 .
  • the ranging sensor can obtain the ranging result of the target.
  • the ranging frequency of the ranging sensor also known as the working frequency, represents the number of ranging times of the ranging sensor within a unit time.
  • the ranging frequency is 10 Hertz (Hz), which means that the ranging sensor measures the ranging 10 times per second, that is, the ranging period of the ranging sensor is 100 milliseconds (ms).
  • FIG. 3 is a schematic diagram of the ranging cycle of a ranging sensor provided by an embodiment of the present application.
  • a ranging cycle may include three durations, or three phases.
  • the three phases in a ranging cycle are a transmitting phase, a receiving phase, and a data processing phase.
  • the transmitting stage is used for the ranging sensor to transmit signals.
  • the ranging sensor can emit signals.
  • the duration of the emission phase can be the same.
  • the receiving stage is used for the ranging sensor to receive signals.
  • the ranging sensor receives the signal and also records the strength of the received signal.
  • the duration of the receiving phase is related to the ranging range of the ranging sensor. For example, the larger the ranging range, the longer the duration of the receiving phase.
  • the data processing stage is used to process signals from the ranging sensor.
  • the signal processing by the ranging sensor can also be understood as the ranging sensor obtaining the ranging result. That is, the data processing stage can also be understood as being used by the ranging sensor to obtain the ranging result.
  • the ranging sensor can neither transmit nor receive signals, but determine the ranging results based on the signals received in the receiving stage.
  • the ranging sensor records a ranging histogram based on the received signal.
  • the ranging sensor can determine the ranging result based on the ranging histogram.
  • the abscissa of the ranging histogram represents the distance of the target
  • the ordinate represents the signal strength of the signal reflected by the target.
  • FIG. 4 is a schematic diagram of a ranging histogram provided by an embodiment of the present application.
  • the abscissa represents the distance to the target
  • the ordinate represents the signal strength of the signal reflected by the target.
  • the ranging sensor can determine the signal strength of the signal reflected from the target within the ranging range of the ranging sensor through the ranging histogram. If there is a signal strength greater than or equal to the set threshold, the distance corresponding to the signal strength can be as the ranging result. If there are multiple signal strengths greater than or equal to the set threshold, the ranging result with the smallest distance can be used as the final ranging result.
  • the ranging sensor can also supplement the configuration of the ranging frequency through delay. For example, if the ranging frequency of the ranging sensor is 10Hz, then the ranging cycle of the ranging sensor is 100ms. If the duration of the transmitting phase in the ranging cycle is set to 1ms, the duration of the receiving phase in the ranging cycle is set to 19ms. , the length of time that the ranging sensor uses to obtain the ranging result in the data processing stage of the ranging cycle is 20ms. After obtaining the ranging result, the data processing stage of the ranging cycle needs to be extended by 60ms, thereby extending the ranging cycle. The duration is supplemented to 100ms.
  • Co-channel interference When electromagnetic waves or ultrasonic waves are used for distance measurement, they do not carry coded information. Therefore, after ranging sensors receive signals, they cannot distinguish whether the signal is a reflection of the signal emitted by itself or a signal emitted by other ranging sensors.
  • the range-finding sensors that use electromagnetic waves or ultrasonic waves to measure distance have a wide coverage range of the field of view. Therefore, when there are multiple ranging sensors with the same signal frequency in a certain space, co-channel interference is prone to occur.
  • the signal received by the receiving device of any ranging sensor may be a reflected signal of the signal emitted by the transmitting device of the ranging sensor, but it may also be a signal emitted by the transmitting device of other ranging sensors with the same signal frequency.
  • Figure 1 if each household uses ranging sensors with the same signal frequency, that is, the signal frequencies of ranging sensor 1, ranging sensor 2 and ranging sensor 3 are the same, then serious co-frequency interference problems will occur. , and co-channel interference will frequently wake up the smart door lock to start face recognition, resulting in a decrease in the smart door lock's battery life.
  • FIG. 5 is a schematic diagram of co-frequency interference of a ranging sensor provided by an embodiment of the present application.
  • the signal frequency of the ranging sensor 1 is the same as the signal frequency of the ranging sensor 2.
  • the ranging sensor 1 emits a signal in the transmission phase of the ranging cycle.
  • the signal reaches the ranging sensor 2 after a period of time, because the ranging sensor 2 is in the receiving stage of the ranging cycle, the ranging sensor 2 will regard the signal emitted by the ranging sensor 1 as a reflected signal of the signal emitted by itself. . This may lead to a large error in the ranging results obtained by the ranging sensor 2 during the data processing stage of the ranging cycle.
  • FIG. 6 is a schematic diagram of continuous co-frequency interference of the ranging sensor provided by the embodiment of the present application.
  • the signal frequency of distance sensor 1 and the signal frequency of distance sensor 2 are the same, and the distance measurement frequency of distance sensor 1 and the distance measurement frequency of distance sensor 2 are also the same.
  • the clock of the ranging sensor 1 and the clock of the ranging sensor 2 may not follow a unified reference clock.
  • the clock of ranging sensor 1 and the clock of ranging sensor 2 follow a unified reference clock, but over time, the clock of ranging sensor 1 and the clock of ranging sensor 2 may deviate. Therefore, the stages in the ranging cycle of the two sensors are not completely synchronized.
  • the ranging sensor 1 will cause co-frequency interference to the ranging sensor 2, and this will last for a period of time. As shown in Figure 6, the ranging sensor 1 transmits a signal in the transmitting phase of the first ranging cycle. The signal reaches the ranging sensor 2 after a period of time (corresponding to the signal propagation process 1 in Figure 6). At this time, the ranging sensor 2 When it is in the receiving stage in the first ranging cycle, the ranging sensor 2 will regard the signal transmitted by the ranging sensor 1 as the transmission signal of the signal transmitted by itself. This results in a large error in the ranging result obtained by the ranging sensor 2 during the data processing stage in the first ranging cycle. In addition, the ranging sensor 1 emits a signal during the transmission phase in the second ranging cycle.
  • the signal reaches the ranging sensor 2 after a period of time (corresponding to the signal propagation process 2 in Figure 6). At this time, the ranging sensor 2 is in the receiving stage of the second ranging cycle, then the ranging sensor 2 will The signal emitted by 1 is regarded as the reflected signal of the signal emitted by itself. This distance measurement sensor 2 will also obtain a distance measurement result with a large error in the data processing stage in the second distance measurement cycle. It can be seen that ranging sensor 1 will continue to affect ranging sensor 2.
  • time-sharing avoidance mechanisms and frequency-division avoidance mechanisms are currently proposed.
  • Time-sharing avoidance refers to setting the working time separately for each ranging sensor, so that the working time of each ranging sensor is completely separated, and only one ranging sensor is allowed to work at the same time, thereby reducing interference.
  • FIG. 7 is a schematic diagram of time-sharing avoidance provided by an embodiment of the present application. As shown in Figure 7, test sensor 1 works from time T1 to time T2, test sensor 2 works from time T2 to time T3, test sensor 3 works from time T3 to time T4, and test sensor 4 works from time T4 to time T5. The test sensor 5 operates from time T5 to time T6.
  • time-sharing avoidance not only requires all ranging sensors to follow a unified reference clock, but also requires each ranging sensor to eliminate clock deviations generated over time after following a unified reference clock. Moreover, time-sharing avoidance will also cause the ranging frequency of each ranging sensor to be reduced by n times, where n is the number of ranging sensors working simultaneously in the same space. For example, the ranging frequency of ranging sensor 1 is 10Hz. When five ranging sensors work simultaneously in the same space, the ranging frequency of ranging sensor 1 changes from 10Hz to 2Hz.
  • Frequency division avoidance refers to setting the frequency of the signal emitted by each ranging sensor separately. Different ranging sensors emit signals at different frequencies, thereby reducing interference. For example, the frequency of the signal emitted by the ranging sensor 1 is set to 75KHz ultrasonic wave, and the frequency of the signal emitted by the ranging sensor 2 is set to 80KHz ultrasonic wave.
  • frequency division avoidance requires configuring different signal generation modules for different signal frequencies, which cannot be achieved through simple software configuration. Instead, it requires changing the hardware structure of the ranging sensor and increasing the hardware complexity of the ranging sensor.
  • the electronic device including the ranging sensor detects the first interference signal through the ranging sensor, it can be determined that there is an interfering ranging sensor that generates co-frequency interference to the ranging sensor.
  • the signal from the interfering ranging sensor will not be continuously received by the ranging sensor, thereby suppressing interference between multiple ranging sensors.
  • Co-channel interference the process of adjusting the ranging cycle in the embodiment of the present application will not cause the ranging frequency of the ranging sensor to drop significantly, and can continue to ensure that the ranging behavior of the ranging sensor continues.
  • the method provided by the embodiment of the present application can be implemented through software configuration without increasing the hardware complexity of the ranging sensor.
  • FIG. 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • image signal processor, ISP image signal processor
  • controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used to connect the battery 142.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display a display interface of an application, such as displaying a display page of an application installed on the electronic device 100 .
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light).
  • LED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 .
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, software code of at least one application program, etc.
  • the storage data area may store data generated during use of the electronic device 100 (such as captured images, recorded videos, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save pictures, videos, etc. files on an external memory card.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • Touch sensor 180C also known as "touch panel”.
  • the touch sensor 180C can be disposed on the display screen 194.
  • the touch sensor 180C and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180C is used to detect a touch operation on or near the touch sensor 180C.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180C may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • the sensor module 180 may also include a ranging sensor 180D.
  • the ranging sensor 180D may include a transmitting end and a receiving end.
  • the ranging sensor 180D can transmit a signal through the transmitting end, receive the signal through the receiving end, and obtain the distance between the ranging sensor 180D and the target by calculating the phase difference or time difference between the sending and receiving signals.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • FIG. 8 do not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may also include more or fewer components than shown in the figure, or combine some components, or decompose some components. components, or different arrangements of components.
  • the combination/connection relationship between the components in Figure 8 can also be adjusted and modified.
  • the signal processing method provided by the embodiment of the present application may include two stages: interference determination and interference suppression. Each stage is introduced below.
  • the ranging sensor may have two states: detection state and ranging state.
  • the ranging sensor in the detection state may not emit signals but only receive signals during the corresponding detection period.
  • the ranging sensor in the ranging state can transmit signals, receive signals and obtain ranging results within the corresponding ranging period.
  • the electronic device including the ranging sensor as shown in FIG. 8 can control the ranging sensor to enter the detection state and maintain one or more detection periods before the ranging sensor emits a signal.
  • the detection period can be used for the ranging sensor to receive signals.
  • the ranging sensor can receive signals and also record the strength of the received signals.
  • the ranging cycle can be used for the ranging sensor to transmit signals, receive signals and obtain processing results.
  • a ranging cycle can have three stages: transmitting stage, receiving stage and data processing stage.
  • the ranging sensor can emit signals.
  • the ranging sensor receives the signal and also records the strength of the received signal.
  • the ranging sensor can neither transmit nor receive signals, but obtain ranging results based on the signals received in the receiving stage.
  • the electronic device can control the ranging sensor to enter the detection state and maintain one or more detection periods after the ranging sensor is powered on and before it enters the ranging state; or, the electronic device can also control the ranging sensor to end a measurement period.
  • the ranging sensor After the ranging period and before entering the next ranging period, the ranging sensor is controlled to enter the detection state and maintain one or more detection periods, which is not limited in the embodiment of the present application. If the ranging sensor does not receive a signal within one or more detection cycles, or the strength of the received signal is less than the set threshold, it can be determined that there is no ranging sensor that causes co-frequency interference to the ranging sensor; or , if the ranging sensor receives a signal within one or more detection cycles, and the intensity of the received signal is not less than the set threshold, it can be determined that there is a ranging sensor that causes co-frequency interference to the ranging sensor.
  • the electronic device may also determine the number of ranging sensors that cause co-channel interference to the ranging sensor based on part or all of the signals received by the ranging sensor before transmitting the signal.
  • the ranging sensor that interferes with the ranging sensor can be called interference.
  • Distance sensor the ranging sensor that interferes with the ranging sensor.
  • FIG. 9 is a schematic diagram for determining co-channel interference provided by an embodiment of the present application.
  • FIG. 9 takes an intelligent driving scenario as an example.
  • Intelligent driving refers to technology that uses machines to assist driving and completely replace human driving under special circumstances.
  • a vehicle that adopts intelligent driving can automatically brake or change direction by detecting whether there are foreign objects, pedestrians or other vehicles in the direction of travel through the ranging sensor installed on the vehicle.
  • the ranging sensor 1, the ranging sensor 2 and the ranging sensor 3 in Figure 9 are respectively arranged on the vehicle-mounted terminal equipment 1 of the vehicle 1, the vehicle-mounted terminal equipment 2 of the vehicle 2 and the vehicle-mounted terminal equipment 3 of the vehicle 3.
  • the ranging sensor 2 and the ranging sensor 3 have the same signal frequency, the same ranging frequency and the same distance detection range.
  • the signal frequency is, for example, 75 KHz
  • the ranging frequency is, for example, 10 Hz
  • the detection range is, for example, 1.5 meters (m).
  • the vehicle-mounted terminal device 1 needs to detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 1.
  • the vehicle-mounted terminal device 1 can control the ranging sensor 1 to be powered on, and after controlling the ranging sensor 1 to be powered on, control the measuring Distance sensor 1 enters the detection state and maintains a detection period, such as 10s. For example, if the ranging sensor 1 does not receive a signal within these 10 seconds, the vehicle-mounted terminal device 1 can determine that there is no interfering ranging sensor that causes co-frequency interference to the ranging sensor 1, and then the vehicle-mounted terminal device 1 can control the ranging sensor 1 to enter.
  • the ranging state is maintained for one or more ranging periods, and based on the ranging results of the ranging sensor 1, it is determined whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 1.
  • the vehicle-mounted terminal device 2 needs to detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 2.
  • the vehicle-mounted terminal device 2 can control the ranging sensor 2 to be powered on, and after controlling the ranging sensor 2 to be powered on, it can control the ranging Sensor 2 enters the detection state and maintains a detection period, such as 10 seconds. For example, if the ranging sensor 2 receives a signal within these 10 seconds, the vehicle-mounted terminal device 2 can determine that there is a ranging sensor that causes co-frequency interference to the ranging sensor 2 .
  • the vehicle-mounted terminal equipment 2 can determine the number of interfering ranging sensors based on part or all of the signals received by the ranging sensor 2 within these 10 seconds.
  • the ranging sensor 2 receives a total of three signals within these 10 seconds, which are the first signal received at the first time, the second signal received at the second time, and the third signal received at the third time.
  • the duration between the first moment and the second moment is equal to the duration between the second moment and the third moment, then the vehicle-mounted terminal device 2 can determine that the first signal, the second signal and the third signal are the same ranging sensor according to the measurement. From the signals sent periodically, it can be determined that the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor 2 is 1.
  • the vehicle-mounted terminal device 2 can determine that the first signal, the second signal and the third signal are different ranging sensors based on According to the signals sent during the ranging period, it can be determined that the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor 2 is three.
  • the vehicle-mounted terminal device 3 needs to detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 3.
  • the vehicle-mounted terminal device 3 can control the ranging sensor 2 to be powered on, and after controlling the ranging sensor 3 to be powered on, control the ranging sensor. 3 Enter the detection state and maintain a detection period such as 10s. For example, if the ranging sensor 3 receives a signal within these 10 seconds, the vehicle-mounted terminal device 3 can determine that there is a ranging sensor that causes co-frequency interference to the ranging sensor 3 .
  • the vehicle-mounted terminal equipment 3 can determine the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor 3 based on part or all of the signals received by the ranging sensor 3 within these 10 seconds.
  • the ranging sensor 3 received a total of four signals in these 10 seconds, including the first signal received at the first moment, the second signal received at the second moment, the third signal received at the third moment, and The fourth signal received at the fourth moment.
  • the duration between the first moment and the third moment is equal to the duration between the third moment and the fourth moment
  • the vehicle-mounted terminal device 3 can determine that the first signal, the third signal and the fourth signal are the same ranging sensor according to the measurement.
  • the signal is sent periodically.
  • the duration between the first moment and the second moment is not equal to the duration between the second moment and the third moment
  • the duration between the first moment and the second moment is not equal to the period between the second moment and the fourth moment.
  • the vehicle-mounted terminal device 3 can determine that the second signal is a signal sent by another ranging sensor according to the ranging cycle , and then the vehicle-mounted terminal equipment 3 can determine that the number of interfering ranging sensors is 2.
  • the interfering signal can be given additional characteristics since the signal emitted by the interfering ranging sensor is indistinguishable in time and/or frequency from the reflected signal of the signal emitted by the ranging sensor.
  • the above-mentioned electronic device can adjust the ranging cycle of the ranging sensor and control the ranging sensor to enter the ranging state according to the adjusted measurement.
  • the signal is processed periodically, and processing the signal includes one or more of transmitting a signal, receiving a signal, or obtaining a ranging result.
  • the ranging sensor can transmit signals in the transmitting phase of the adjusted ranging cycle, receive signals in the receiving phase of the adjusted ranging cycle, and obtain measurement data in the data processing phase of the adjusted ranging cycle. results and generates an interrupt signal.
  • this ranging sensor is used to detect dynamic targets or obtain target distance, such as If the ranging sensor detects a dynamic target or obtains a target distance during the data processing stage in the adjusted ranging cycle, an interrupt signal can be generated to notify the subsequent stage of the ranging sensor to read the dynamic target or target distance.
  • Related Information This prevents the signal from the interfering ranging sensor from being continuously received by the ranging sensor in the measurement and control state. This can suppress co-channel interference between multiple ranging sensors.
  • the processing of the ranging sensor caused by adjusting the ranging cycle in the embodiment of the present application will not cause the ranging frequency of the ranging sensor to drop significantly, and can continue to ensure that the ranging behavior of the ranging sensor continues.
  • the method provided by the embodiment of the present application can be implemented through software configuration without increasing the hardware complexity of the ranging sensor.
  • the electronic device can adjust the ranging cycle of the ranging sensor according to the length of the receiving phase in the ranging cycle before adjustment, so that the length of the data processing phase in the adjusted ranging cycle is not equal to that before adjustment.
  • the duration of the data processing phase in the ranging cycle For example, the absolute value of the difference between the duration of the data processing phase in the ranging cycle after adjustment and the duration of the data processing phase in the ranging cycle before adjustment may be greater than or equal to the receiving phase in the ranging cycle before adjustment.
  • the length of time can ensure that after the ranging sensor receives the signal from the interfering ranging sensor at any moment in the receiving phase of the ranging cycle, it does not need to receive signals from the interfering ranging sensor at a moment that is one duration of the ranging cycle away from this moment.
  • the signal that interferes with the ranging sensor that is, it can be ensured that the signal from the interfering ranging sensor will not be continuously received by the ranging sensor, thereby suppressing the same-frequency interference between multiple ranging sensors.
  • FIG. 10 is a schematic diagram of adjusting the ranging period provided by an embodiment of the present application.
  • the ranging periods of ranging sensor 1 and ranging sensor 2 are both 100ms.
  • the duration of the transmitting phase is set to 1ms
  • the duration of the receiving phase is set to 19ms
  • the duration of the data processing phase is set to 80ms.
  • ranging sensor 1 and ranging sensor 2 may not follow a unified reference clock, or the clock of ranging sensor 1 and the clock of ranging sensor 2 follow a unified reference clock, but over time, the ranging sensor The clock of 1 and the clock of ranging sensor 2 may deviate, so the stages in the ranging cycles of ranging sensor 1 and ranging sensor 2 are not completely synchronized.
  • distance sensor 1 and distance sensor 2 are not powered on.
  • An electronic device including the ranging sensor 1 can control the ranging sensor 1 to enter the detection state and maintain a detection period after the range sensor 1 is powered on and before entering the ranging state. If the ranging sensor 1 does not detect interference with the ranging sensor during the detection period, the electronic device 1 can control the ranging sensor 1 to transmit the first signal at the first moment within the first ranging period of the ranging sensor 1.
  • the distance sensor 1 emits the second signal at the second time within the second distance measurement period, and the distance sensor 1 emits the third signal at the third time within the third distance measurement period.
  • the electronic device including the ranging sensor 2 can control the ranging sensor 2 to enter the detection state and maintain a detection period after the range sensor 1 is powered on and before entering the ranging state.
  • the ranging sensor 2 receives three signals, which are the first signal received at the fourth time, the second signal received at the fifth time, and the third signal received at the sixth time.
  • the duration between the fourth moment and the fifth moment is equal to the duration between the fifth moment and the sixth moment, then the electronic device 2 can determine that the first signal, the second signal and the third signal are the same ranging sensor, such as ranging. Based on the signal sent by sensor 1 during the ranging period, it can be determined that the number of interfering ranging sensors that cause co-frequency interference to ranging sensor 2 is 1.
  • the electronic device 2 can adjust the duration of the data processing phase in the ranging cycle of the ranging sensor 2 to 100 ms, and control the ranging sensor 2 to enter the ranging state. After the electronic device 2 adjusts the ranging period of the ranging sensor 2, the ranging sensor 2 may no longer receive the signal from the ranging sensor 1, or may receive the signal from the ranging sensor 1 again, but only once.
  • the signal from the ranging sensor 1 is as shown in (2) of Figure 10.
  • the ranging sensor 2 After the electronic device 2 adjusts the ranging cycle of the ranging sensor 2, the ranging sensor 2 will receive the signal from the ranging sensor 1 again, but For example, after only receiving a signal from ranging sensor 1 once, after adjusting the ranging cycle of ranging sensor 2 and controlling ranging sensor 2 to enter the ranging state, ranging sensor 1 is in the fourth ranging cycle of ranging sensor 1. The signal transmitted at the seventh time in the range reaches the ranging sensor 2 at the eighth time after a period of transmission time. At this time, the ranging sensor 2 is in the receiving stage of the first ranging cycle of the ranging sensor 2 .
  • the signal emitted by the ranging sensor 1 at the ninth time within the fifth ranging cycle of the ranging sensor 1 reaches the ranging sensor 2 at the tenth time after a period of transmission time.
  • the interval between the seventh time and the ninth time is 100ms
  • the interval between the eighth time and the tenth time is 100ms. Since the electronic device 2 adjusts the ranging cycle of the ranging sensor 2, and the ranging sensor 2 is in the transmitting stage in the second ranging cycle of the ranging sensor 2, the ranging sensor 2 does not need to receive the signal at the tenth moment.
  • the signal emitted by the ranging sensor 1 at the ninth moment This prevents the ranging sensor 1 from causing two consecutive co-channel interferences to the ranging sensor 2. Similarly, the ranging sensor 2 will not produce two consecutive co-channel interferences from the ranging sensor 1.
  • the electronic device after the electronic device adjusts the ranging cycle of the ranging sensor, it cannot completely guarantee that the ranging sensor will not receive a signal from the interfering ranging sensor, but can only guarantee that the ranging sensor will not receive a signal from the interfering ranging sensor. The signal will not be continuously received by this distance sensor. Therefore, even if the electronic device adjusts the ranging period, it can still perform the corresponding interference judgment mechanism. For example, the electronic device can determine whether the signal is an interference signal based on the number of times the signal is continuously received by the ranging sensor.
  • the electronic device can control the ranging sensor to filter the signal, and then filter the ranging result corresponding to the signal. This can further suppress the co-frequency interference caused by the interfering ranging sensor to the ranging sensor.
  • the threshold is 2 and the ranging sensor is used to detect dynamic targets. If the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, it also receives the signal at a second moment that is separated from the first moment by a duration of the adjusted ranging cycle. Then the electronic device can determine that the signals received at the first moment and the second moment are normal signals, and then determine that the ranging sensor detects a dynamic target in two consecutive adjusted ranging cycles. The electronic device can control the ranging sensor to generate an interrupt signal to notify the subsequent stage of the ranging sensor to read relevant information of the dynamic target.
  • the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, and does not receive a signal at the second moment that is separated from the first moment by the duration of the adjusted ranging cycle. . Then the electronic device can determine that the signal received at the first moment is an interference signal, and then determine that the ranging sensor detects a dynamic target only in an adjusted ranging cycle. The electronic device can control the ranging sensor not to generate an interrupt signal, thereby filtering the dynamic target.
  • the threshold is 2 and this ranging sensor is used to obtain the target distance. If the ranging sensor receives a signal at the first moment of the reception phase in the first adjusted ranging cycle, it also receives the signal at a second moment that is separated from the first moment by the duration of the adjusted ranging cycle. . Then the electronic device can determine that the signals received at the first moment and the second moment are normal signals, and then determine that the ranging sensor has obtained a certain target distance in two consecutive adjusted ranging cycles. The electronic device can control the ranging sensor to generate an interrupt signal to notify the subsequent stage of the ranging sensor to read relevant information about the target distance.
  • the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, and does not receive a signal at the second moment that is separated from the first moment by the duration of the adjusted ranging cycle. . Then the electronic device can determine that the signal received at the first moment is an interference signal, and then determine that the ranging sensor only obtains a certain target distance in an adjusted ranging cycle.
  • the electronic device can control the ranging sensor not to generate an interrupt signal, thereby filtering the target distance; or the electronic device can also control the ranging sensor to generate an interrupt signal to notify the subsequent stage of the ranging sensor to read relevant information about the target distance.
  • the electronic device controls the rear stage of the ranging sensor to filter abnormal target distances that only occur once through software algorithms such as sliding window averaging, difference detection, etc.
  • the electronic device can set the threshold value to be greater than or equal to the sum of the number of ranging sensors and the number of interfering ranging sensors. For example, if the number of interfering ranging sensors is 1, the electronic device can set the threshold to 2. After the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, if the ranging sensor also receives a signal at a second moment that is separated from the first moment by a duration of the adjusted ranging period After receiving the signal, the electronic device can determine that the signals received at the first moment and the second moment are normal signals. For example, if the number of interfering ranging sensors is 2, the electronic device can set the threshold to 3.
  • the electronic device After the ranging sensor receives the signal at the first moment of the receiving phase in the adjusted ranging cycle, even if the ranging sensor receives the signal at a second moment that is separated from the first moment by a duration of the adjusted ranging period. When the signal is received, the electronic device cannot determine that the signals received at the first moment and the second moment are normal signals. Because the signal received at the first moment may be a signal from the interfering ranging sensor 1, and the signal received at the second moment may be a signal from the interfering ranging sensor 2, if the ranging sensor is two times apart from the second moment Only when the signal is also received at the third moment of the adjusted duration of the ranging cycle, the electronic device can determine that the signals received at the first moment, the second moment and the third moment are normal signals. This ensures that the ranging sensor can accurately filter interference signals and suppress the same-frequency interference caused by the interfering ranging sensor to the ranging sensor.
  • the electronic device can determine whether the number of times the signal received by the ranging sensor is continuously received by the ranging sensor is less than a threshold through various methods. Examples are introduced below.
  • the electronic device may determine whether the ranging sensor receives a signal at a second moment, where the duration between the second moment and the first moment is the adjusted ranging period. N times the duration, N is a positive integer smaller than the threshold, for example, the threshold is 3, N is 1 or 2. If the ranging sensor does not receive a signal at the second moment, the electronic device may determine that the signals received by the ranging sensor at the first moment and the second moment are interference signals.
  • FIG. 11 is a schematic diagram for determining interference signals provided by an embodiment of the present application.
  • the ranging periods of ranging sensor 1 and ranging sensor 2 are both 100ms, in which the duration of the transmitting phase is set to 1ms, the duration of the receiving phase is set to 19ms, and the duration of the data processing phase is set to 80ms.
  • the electronic device including the ranging sensor 2 can adjust the ranging cycle of the ranging sensor 2, so that the ranging sensor 2 adjusts
  • the ranging period is 120ms, in which the duration of the transmitting phase is set to 1ms, the duration of the receiving phase is set to 19ms, and the duration of the data processing phase is set to 80ms.
  • the ranging sensor 2 receives a signal at the first moment, and the electronic device 2 can determine whether the ranging sensor 2 receives the signal at the second moment.
  • the time between the first moment and the second moment is 120 ms. If the ranging sensor 2 receives a signal at the second moment, the electronic device 2 can determine that the signal received by the ranging sensor 2 at the first moment is a reflected signal of the signal emitted by the ranging sensor 2 , that is, it is a normal signal. If the ranging sensor 2 does not receive a signal at the second moment, the electronic device 2 can determine that the signal received by the ranging sensor 2 at the first moment is a signal emitted by the ranging sensor 1 , that is, an interference signal. This ensures that the ranging sensor can accurately filter interference signals and suppress the same-frequency interference caused by the interfering ranging sensor to the ranging sensor.
  • the electronic device when the ranging sensor receives a signal, the electronic device can generate a narrow pulse signal corresponding to the signal.
  • the pulse signal can also be called a square wave.
  • the duty cycle of the square wave signal is generally 50%.
  • the narrow pulse signal is a square wave signal with a duty cycle less than 50%.
  • the frequency of the square wave signal is 1KHz, that is, the period of the square wave signal is 1ms, but the pulse width is only 50ns.
  • the square wave signal is a narrow pulse signal.
  • the generated narrow pulse signal is divided by two to obtain the edge signal corresponding to the narrow pulse signal. Among them, the frequency division by two is to pass the narrow pulse signal through a circuit structure with frequency division function.
  • the circuit When the clock triggers two cycles, the circuit outputs a periodic signal.
  • This periodic signal is the edge signal corresponding to the narrow pulse signal.
  • high-pass filtering is to pass high-frequency signals normally, while blocking and weakening low-frequency signals below the set threshold. If the signal is not present in the resulting signal envelope, the electronic device can determine that the signal is an interference signal.
  • Figure 12 is another schematic diagram for determining interference signals provided by an embodiment of the present application.
  • the electronic device when the ranging sensor receives a signal, the electronic device can generate a narrow pulse signal corresponding to the signal, All generated narrow pulse signals are subjected to two-frequency division processing and high-pass filtering processing to obtain the signal envelope. Since the number of times the interference signal is continuously received by the ranging sensor is less than the threshold, the two-frequency division processing and high-pass filtering processing will reduce the interference signal. The corresponding narrow pulse signal is filtered so that there is no interference signal in the signal envelope.
  • the electronic device can determine that the signal is an interference signal, thereby ensuring that the ranging sensor can accurately filter Interfering signals suppress the co-frequency interference caused by the interfering ranging sensor to the ranging sensor.
  • this application also provides a signal processing method.
  • the method may be performed by the electronic device including the ranging sensor shown in FIG. 8 .
  • Figure 13 is a flow chart of the signal processing method.
  • the electronic device detects the first interference signal through the ranging sensor.
  • the electronic device can control the ranging sensor to enter the detection state and maintain one or more detection periods. If the ranging sensor receives a signal within one or more detection periods, and the received signal If the intensity is not less than the set threshold, the ranging sensor can determine that the received signal is the first interference signal.
  • S1302 The electronic device adjusts the ranging cycle of the ranging sensor.
  • the time period used to obtain the ranging results in the adjusted ranging period is not equal to the time period used to obtain the ranging results in the ranging period before the adjustment.
  • the absolute value of the difference between the time period used to obtain ranging results in the adjusted ranging period and the time period used to obtain ranging results in the ranging period before adjustment can be greater than or equal to the period in the ranging period before adjustment.
  • the duration used to receive the signal can be greater than or equal to the period in the ranging period before adjustment.
  • S1303 The electronic device controls the ranging sensor to process signals according to the adjusted ranging cycle.
  • the processing includes one or more of transmitting, receiving, or obtaining ranging results.
  • the ranging sensor can transmit a signal in the transmitting phase of the adjusted ranging cycle, receive the signal in the receiving phase of the adjusted ranging cycle, and obtain the ranging signal in the data processing phase of the adjusted ranging cycle. result.
  • the electronic device after executing S1303, the electronic device cannot fully guarantee that the ranging sensor will not receive signals from the interfering ranging sensor, but can only guarantee that the signals from the interfering ranging sensor will not be continuously received by the ranging sensor. arrive. Therefore, even if the electronic device adjusts the ranging period, it can still perform the corresponding interference judgment mechanism. For example, the electronic device can determine whether the signal is an interference signal based on the number of times the signal is continuously received by the ranging sensor. Also includes the following steps A and B:
  • Step A The electronic device receives the signal through the ranging sensor.
  • Step B If the signal is a second interference signal, the electronic device controls the ranging sensor to filter the signal.
  • steps A and B please refer to the introduction to the interference suppression process in the previous article. For example, if the number of times the signal is continuously received by the ranging sensor is not less than the threshold, it is determined that the signal is a normal signal, or it is determined that the signal is not a second interference signal; or if the number of times the signal is continuously received by the ranging sensor is less than the threshold, then It is determined that the signal is a second interference signal, or that the signal is not a normal signal.
  • embodiments of the present application also provide an electronic device, which is used to implement the method performed by the electronic device including a ranging sensor provided by the embodiment of the present application.
  • electronic device 1400 may include: memory 1401, one or more processors 1402, and one or more computer programs (not shown in the figure). The various devices described above may be coupled through one or more communication buses 1403.
  • the electronic device 1400 when used to implement the method performed by the electronic device including a ranging sensor provided by the embodiment of the present application, the electronic device 1400 may also include a ranging sensor 1404.
  • one or more computer programs are stored in the memory 1401, and the one or more computer programs include computer instructions; one or more processors 1402 call the computer instructions stored in the memory 1401, so that the electronic device 1400 executes the application.
  • the ranging sensor 1404 is used to transmit signals through the transmitting end, receive signals through the receiving end, and obtain the distance between the ranging sensor 1404 and the target by calculating the phase difference or time difference between the sent and received signals.
  • the memory 1401 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
  • the memory 1401 can store an operating system (hereinafter referred to as the system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX.
  • the memory 1401 can be used to store the implementation program of the embodiment of the present application.
  • the memory 1401 can also store a network communication program that can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.
  • One or more processors 1402 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the present application. Scheme program execution on the integrated circuit.
  • FIG. 14 is only an implementation manner of the electronic device 1400 provided by the embodiment of the present application. In actual applications, the electronic device 1400 may also include more or fewer components, which is not limited here.
  • embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the computer program When the computer program is run on a computer, it causes the computer to execute the steps provided in the above embodiments.
  • the method is performed by an electronic device including a ranging sensor.
  • embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer program or instructions.
  • the computer program or instructions When the computer program or instructions are run on a computer, the computer is caused to execute the method provided in the above embodiments.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Abstract

A signal processing method, and an electronic device. The method is applied to an electronic device (100) comprising a ranging sensor (180D). The method comprises: detecting a first interference signal by means of a ranging sensor (S1301); adjusting the ranging period of the ranging sensor, wherein the duration for obtaining a ranging result within the adjusted ranging period is not equal to the duration for obtaining a ranging result within the ranging period before adjustment (S1302); and controlling the ranging sensor to process the signal according to the adjusted ranging period, wherein the processing comprises one or more of transmitting, receiving or obtaining the ranging result (S1303). The method can suppress co-frequency interference between a plurality of ranging sensors.

Description

一种信号处理方法与电子设备A signal processing method and electronic device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年07月29日提交中国专利局、申请号为202210910503.7、申请名称为“一种信号处理方法与电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on July 29, 2022, with the application number 202210910503.7 and the application title "A signal processing method and electronic device", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及电子设备技术领域,尤其涉及一种信号处理方法与电子设备。The present application relates to the technical field of electronic equipment, and in particular, to a signal processing method and electronic equipment.
背景技术Background technique
手机、平板电脑、智能门锁、或车载终端设备等设备中普遍使用测距传感器来检测目标的距离,测距传感器通常利用电磁波或超声波进行测距。在测距时,测距传感器发射的信号在遇到目标时会被反射,测距传感器接收该反射信号,通过计算收发信号的相位差或者时间差,就可以确定测距传感器与目标之间的距离。Ranging sensors are commonly used in devices such as mobile phones, tablets, smart door locks, or vehicle-mounted terminal equipment to detect the distance of a target. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. During ranging, the signal emitted by the ranging sensor will be reflected when it encounters the target. The ranging sensor receives the reflected signal and calculates the phase difference or time difference between the sent and received signals to determine the distance between the ranging sensor and the target. .
但是电磁波或超声波在用于测距时,本身并不携带编码信息,所以测距传感器在接收信号之后,无法区分该信号是自身发射的信号的反射信号,还是其他测距传感器发射的信号。而测距传感器的视场角(field of view,FOV)覆盖范围较广,因此当某个空间内存在多个所发射的信号的频率相同的测距传感器时,很容易出现同频干扰,导致测距结果误差较大。However, when electromagnetic waves or ultrasonic waves are used for ranging, they do not carry coded information. Therefore, after the ranging sensor receives the signal, it cannot distinguish whether the signal is a reflection of the signal emitted by itself or a signal emitted by other ranging sensors. The range-finding sensor has a wide field of view (FOV) coverage, so when there are multiple ranging sensors emitting signals with the same frequency in a certain space, it is easy for co-channel interference to occur, resulting in The distance measurement results have a large error.
发明内容Contents of the invention
本申请实施例提供一种信号处理方法与电子设备,用以抑制多个测距传感器之间的同频干扰。Embodiments of the present application provide a signal processing method and electronic equipment to suppress co-channel interference between multiple ranging sensors.
第一方面,本申请实施提供一种信号处理方法,应用于包括测距传感器的电子设备,该方法包括:通过所述测距传感器检测到第一干扰信号;调整所述测距传感器的测距周期,其中,调整后的测距周期内用于获得测距结果的时长不等于调整前的测距周期内用于获得测距结果的时长;控制所述测距传感器根据所述调整后的测距周期处理信号,其中,所述处理包括发射、接收、或获得测距结果中的一项或多项。In a first aspect, the present application provides a signal processing method, which is applied to an electronic device including a ranging sensor. The method includes: detecting a first interference signal through the ranging sensor; adjusting the ranging of the ranging sensor. period, wherein the time period used to obtain ranging results in the adjusted ranging period is not equal to the time period used to obtain ranging results in the ranging period before adjustment; the ranging sensor is controlled to be based on the adjusted measuring period. The signal is processed periodically, wherein the processing includes one or more of transmitting, receiving, or obtaining ranging results.
在该方法中,如果包括测距传感器的电子设备通过该测距传感器检测到第一干扰信号,则可以确定存在对该测距传感器产生同频干扰的干扰测距传感器。通过调整该测距传感器的测距周期内用于获得测距结果的时长,使得来自干扰测距传感器的信号不会被该测距传感器连续接收到,从而能够抑制多个测距传感器之间的同频干扰。并且,本申请实施例调整测距周期的处理,不会导致测距传感器的测距频率下降较多,能够继续保证测距传感器的测距行为持续进行。另外,本申请实施例提供的方法可以通过软件配置来实现,不会增加测距传感器的硬件复杂度。In this method, if the electronic device including the ranging sensor detects the first interference signal through the ranging sensor, it can be determined that there is an interfering ranging sensor that generates co-frequency interference to the ranging sensor. By adjusting the length of time used to obtain ranging results within the ranging cycle of the ranging sensor, the signal from the interfering ranging sensor will not be continuously received by the ranging sensor, thereby suppressing interference between multiple ranging sensors. Co-channel interference. Moreover, the process of adjusting the ranging cycle in the embodiment of the present application will not cause the ranging frequency of the ranging sensor to drop significantly, and can continue to ensure that the ranging behavior of the ranging sensor continues. In addition, the method provided by the embodiment of the present application can be implemented through software configuration without increasing the hardware complexity of the ranging sensor.
在一种可能的设计中,包括测距传感器的电子设备通过所述测距传感器检测到第一干扰信号时,可以:在所述测距传感器发射信号之前,通过所述测距传感器接收第一信号;确定所述第一信号为所述第一干扰信号。In a possible design, when the electronic device including the ranging sensor detects the first interference signal through the ranging sensor, it can: before the ranging sensor transmits the signal, receive the first interference signal through the ranging sensor. signal; determine that the first signal is the first interference signal.
在该方法中,如果包括测距传感器的电子设备在该测距传感器在发射信号之前,通过该测距传感器接收到第一信号,则可以确定该测距传感器接收到的第一信号不是该测距传感器发射的信号在遇到目标时被反射回来的信号,而是干扰测距传感器发射的信号,即第一信号为第一干扰信号,进而确定存在对该测距传感器产生同频干扰的干扰测距传感器,从而能够通过后续处理抑制多个测距传感器之间的同频干扰。In this method, if the electronic device including the ranging sensor receives the first signal through the ranging sensor before the ranging sensor transmits the signal, it can be determined that the first signal received by the ranging sensor is not the ranging sensor. The signal emitted by the distance sensor is reflected back when it encounters the target, but interferes with the signal emitted by the distance sensor, that is, the first signal is the first interference signal, and then it is determined that there is interference that causes co-frequency interference to the distance sensor ranging sensors, thereby being able to suppress co-channel interference between multiple ranging sensors through subsequent processing.
在一种可能的设计中,第一时长与第二时长的差值的绝对值大于或等于所述调整前的测距周期内用于接收信号的时长,其中,所述第一时长为所述调整后的测距周期内用于获得测距结果的时长,所述第二时长为所述调整前的测距周期内用于获得测距结果的时长。In a possible design, the absolute value of the difference between the first duration and the second duration is greater than or equal to the duration used to receive the signal in the ranging period before adjustment, wherein the first duration is the The second duration is the duration used to obtain the ranging result in the adjusted ranging period, and the second duration is the duration used to obtain the ranging result in the pre-adjusted ranging period.
在该方法中,包括测距传感器的电子设备可以通过调整该测距传感器的测距周期内用于获得测距结果的时长,使得调整后的测距周期内用于获得测距结果的时长与调整前的测距周期内用于获得测距结果的时长的差值的绝对值,能够大于或等于调整前的测距周期内用于接收信号的时长,从而保证来自干扰 测距传感器的信号不会被该测距传感器连续接收到,抑制多个测距传感器之间的同频干扰。In this method, the electronic device including the ranging sensor can adjust the length of time used to obtain the ranging result within the ranging cycle of the ranging sensor, so that the length of time used to obtain the ranging result within the adjusted ranging cycle is equal to The absolute value of the difference in the duration used to obtain ranging results in the ranging period before adjustment can be greater than or equal to the duration used to receive signals in the ranging period before adjustment, thereby ensuring that interference from The signal of the ranging sensor will not be continuously received by the ranging sensor, thus suppressing the same-frequency interference between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备还可以:通过所述测距传感器接收第二信号;如果所述第二信号为第二干扰信号,控制所述测距传感器过滤所述第二信号。In a possible design, the electronic device including the ranging sensor can also: receive a second signal through the ranging sensor; if the second signal is a second interference signal, control the ranging sensor to filter the Second signal.
在该方法中,包括测距传感器的电子设备可以在控制该测距传感器根据调整后的测距周期处理信号之后,通过该测距传感器接收到第二信号,如果第二信号为第二干扰信号,控制该测距传感器过滤第二信号,从而抑制多个测距传感器之间的同频干扰。In this method, the electronic device including the ranging sensor may receive the second signal through the ranging sensor after controlling the ranging sensor to process the signal according to the adjusted ranging cycle, if the second signal is a second interference signal , controlling the ranging sensor to filter the second signal, thereby suppressing co-channel interference between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备还可以:如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号。In a possible design, the electronic device including the ranging sensor may also: determine that the second signal is the second interference if the number of times the second signal is continuously received by the ranging sensor is less than a threshold. Signal.
在该方法中,包括测距传感器的电子设备可以确定该测距传感器接收到的信号连续出现的次数,如果连续出现的次数不小于阈值,则确定该信号是正常信号,如果连续出现的次数小于阈值,则确定该信号是干扰信号,从而抑制多个测距传感器之间的同频干扰。In this method, the electronic device including the ranging sensor can determine the number of consecutive occurrences of the signal received by the ranging sensor. If the number of consecutive occurrences is not less than a threshold, it is determined that the signal is a normal signal. If the number of consecutive occurrences is less than threshold, it is determined that the signal is an interference signal, thereby suppressing co-frequency interference between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备在所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号是否为第二干扰信号时,可以:如果所述测距传感器在第一时刻接收到所述第二信号,且未在第二时刻接收到所述第二信号,确定所述第二信号为所述第二干扰信号,其中,所述第二时刻与所述第一时刻之间的时长为所述调整后的测距周期的持续时长的N倍,所述N为小于所述阈值的正整数。In a possible design, when the number of times the second signal is continuously received by the distance sensor is less than a threshold and the electronic device including the ranging sensor determines whether the second signal is a second interference signal, : If the ranging sensor receives the second signal at the first moment and does not receive the second signal at the second moment, determine that the second signal is the second interference signal, where: The duration between the second moment and the first moment is N times the duration of the adjusted ranging period, and N is a positive integer smaller than the threshold.
在该方法中,包括测距传感器的电子设备调整该测距传感器的测距周期内用于获得测距结果的时长之后,如果该测距传感器在第一时刻接收到第二信号,可以通过确定该测距传感器是否在与第一时刻间隔N个调整后的测距周期的第二时刻也接收到第二信号,来确定第二信号被该测距传感器连续接收到的次数是否小于阈值,如果该测距传感器未在第二时刻接收到第二信号,则可以确定第二信号是第二干扰信号,从而保证该测距传感器能够准确过滤干扰信号,抑制干扰测距传感器对该测距传感器产生的同频干扰。In this method, after the electronic device including the ranging sensor adjusts the duration used to obtain the ranging result within the ranging cycle of the ranging sensor, if the ranging sensor receives the second signal at the first moment, it can be determined by Whether the ranging sensor also receives the second signal at a second time that is N adjusted ranging cycles apart from the first time, to determine whether the number of times the second signal is continuously received by the ranging sensor is less than the threshold, if If the ranging sensor does not receive the second signal at the second moment, it can be determined that the second signal is the second interference signal, thereby ensuring that the ranging sensor can accurately filter the interference signal and suppressing the interference generated by the ranging sensor to the ranging sensor. co-channel interference.
在一种可能的设计中,所述阈值大于或等于所述测距传感器的个数与干扰测距传感器的个数之和。In a possible design, the threshold value is greater than or equal to the sum of the number of the ranging sensors and the number of interfering ranging sensors.
在一种可能的设计中,所述干扰测距传感器的个数是根据所述第一干扰信号确定的。In a possible design, the number of interference ranging sensors is determined based on the first interference signal.
在该方法中,包括测距传感器的电子设备可以根据该测距传感器在发射信号之前所接收到的所有信号,确定对该测距传感器产生同频干扰的干扰测距传感器的个数,由于调整该测距传感器的测距周期的时长之后,干扰测距传感器对该测距传感器产生的同频干扰不会连续出现,因此可以将阈值设置为不小于该测距传感器的个数与干扰测距传感器的个数之和,如果信号被测距传感器连续接收到的次数小于阈值,则可以确定该信号是干扰信号,从而保证该测距传感器能够准确过滤干扰信号,抑制干扰测距传感器对该测距传感器产生的同频干扰。In this method, the electronic device including the ranging sensor can determine the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor based on all signals received by the ranging sensor before transmitting the signal. Due to the adjustment After the ranging period of the ranging sensor, the same-frequency interference caused by the interfering ranging sensor to the ranging sensor will not appear continuously. Therefore, the threshold can be set to no less than the number of the ranging sensors and the interfering ranging sensor. The sum of the number of sensors, if the number of times the signal is continuously received by the ranging sensor is less than the threshold, it can be determined that the signal is an interference signal, thereby ensuring that the ranging sensor can accurately filter the interference signal and suppress the interference of the ranging sensor. Co-frequency interference generated by distance sensors.
在一种可能的设计中,包括测距传感器的电子设备在所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号是否为第二干扰信号时,可以:生成所述第二信号对应的窄脉冲信号;对所述窄脉冲信号进行二分频处理和高通滤波处理,得到信号包络,其中,所述二分频处理用于将所述窄脉冲信号转换为边沿信号;如果所述信号包络中不存在所述第二信号,确定所述第二信号为所述第二干扰信号。In a possible design, when the number of times the second signal is continuously received by the distance sensor is less than a threshold and the electronic device including the ranging sensor determines whether the second signal is a second interference signal, : Generate a narrow pulse signal corresponding to the second signal; perform frequency division processing and high-pass filtering processing on the narrow pulse signal to obtain a signal envelope, wherein the frequency division processing is used to divide the narrow pulse signal into Convert to an edge signal; if the second signal does not exist in the signal envelope, determine the second signal to be the second interference signal.
在该方法中,包括测距传感器的电子设备调整该测距传感器的测距周期内用于获得测距结果的时长之后,如果该测距传感器接收到第二信号,可以通过生成第二信号对应的窄脉冲信号,并对所有生成的窄脉冲信号进行二分频处理和高通滤波处理,得到信号包络,由于干扰信号被测距传感器连续接收到的次数小于阈值,二分频处理和高通滤波处理会将干扰信号对应的窄脉冲信号过滤,使得得到的信号包络中不存在干扰信号,因此如果得到的信号包络中不存在第二信号,则可以确定第二信号为干扰信号,从而保证该测距传感器能够准确过滤干扰信号,抑制干扰测距传感器对该测距传感器产生的同频干扰。In this method, after the electronic device including the ranging sensor adjusts the time period used to obtain the ranging result within the ranging cycle of the ranging sensor, if the ranging sensor receives the second signal, it can generate the second signal corresponding to The narrow pulse signal is generated, and all generated narrow pulse signals are divided by two and high-pass filtered to obtain the signal envelope. Since the number of times the interference signal is continuously received by the ranging sensor is less than the threshold, frequency divided by two and high-pass filtered The processing will filter the narrow pulse signal corresponding to the interference signal so that there is no interference signal in the obtained signal envelope. Therefore, if there is no second signal in the obtained signal envelope, the second signal can be determined to be the interference signal, thus ensuring The ranging sensor can accurately filter interference signals and suppress the same-frequency interference caused by the interfering ranging sensor to the ranging sensor.
第二方面,本申请还提供一种电子设备,包括测距传感器和处理器;所述测距传感器和所述处理器具有实现上述第一方面或者第一方面的任一种可能的设计中方法的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, this application also provides an electronic device, including a ranging sensor and a processor; the ranging sensor and the processor have any possible design method for implementing the above first aspect or the first aspect. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
其中,所述测距传感器,用于检测到第一干扰信号;Wherein, the ranging sensor is used to detect the first interference signal;
所述处理器,用于调整所述测距传感器的测距周期,其中,调整后的测距周期内用于获得测距结果的时长不等于调整前的测距周期内用于获得测距结果的时长;The processor is configured to adjust the ranging period of the ranging sensor, wherein the time used to obtain the ranging results in the adjusted ranging period is not equal to the time used to obtain the ranging results in the ranging period before adjustment. duration;
所述测距传感器,还用于根据所述调整后的测距周期处理信号,其中,所述处理包括发射、接收、 或获得测距结果中的一项或多项。The ranging sensor is also used to process signals according to the adjusted ranging cycle, wherein the processing includes transmitting, receiving, Or obtain one or more of the ranging results.
在一种可能的设计中,所述测距传感器用于通过如下方式检测到第一干扰信号:在所述测距传感器发射信号之前,接收第一信号;确定所述第一信号为所述第一干扰信号。In a possible design, the ranging sensor is used to detect the first interference signal in the following manner: before the ranging sensor transmits the signal, receive the first signal; determine that the first signal is the first interference signal. An interference signal.
在一种可能的设计中,第一时长与第二时长的差值的绝对值大于或等于所述调整前的测距周期内用于接收信号的时长,其中,所述第一时长为所述调整后的测距周期内用于获得测距结果的时长,所述第二时长为所述调整前的测距周期内用于获得测距结果的时长。In a possible design, the absolute value of the difference between the first duration and the second duration is greater than or equal to the duration used to receive the signal in the ranging period before adjustment, wherein the first duration is the The second duration is the duration used to obtain the ranging result in the adjusted ranging period, and the second duration is the duration used to obtain the ranging result in the pre-adjusted ranging period.
在一种可能的设计中,所述测距传感器,还用于接收第二信号;所述测距传感器,还用于如果所述第二信号为第二干扰信号,过滤所述第二信号。In a possible design, the ranging sensor is also used to receive a second signal; the ranging sensor is also used to filter the second signal if the second signal is a second interference signal.
在一种可能的设计中,所述处理器,还用于如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号。In a possible design, the processor is further configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold.
在一种可能的设计中,所述处理器用于通过如下方式执行如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号:如果所述测距传感器在第一时刻接收到所述第二信号,且未在第二时刻接收到所述第二信号,确定所述第二信号为所述第二干扰信号,其中,所述第二时刻与所述第一时刻之间的时长为所述调整后的测距周期的持续时长的N倍,所述N为小于所述阈值的正整数。In a possible design, the processor is configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold. : If the ranging sensor receives the second signal at the first moment and does not receive the second signal at the second moment, determine that the second signal is the second interference signal, where: The duration between the second moment and the first moment is N times the duration of the adjusted ranging period, and N is a positive integer smaller than the threshold.
在一种可能的设计中,所述阈值大于或等于所述测距传感器的个数与干扰测距传感器的个数之和。In a possible design, the threshold value is greater than or equal to the sum of the number of the ranging sensors and the number of interfering ranging sensors.
在一种可能的设计中,所述干扰测距传感器的个数是根据所述第一干扰信号确定的。In a possible design, the number of interference ranging sensors is determined based on the first interference signal.
在一种可能的设计中,所述处理器用于通过如下方式执行如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号:生成所述第二信号对应的窄脉冲信号;对所述窄脉冲信号进行二分频处理和高通滤波处理,得到信号包络,其中,所述二分频处理用于将所述窄脉冲信号转换为边沿信号;如果所述信号包络中不存在所述第二信号,确定所述第二信号为所述第二干扰信号。In a possible design, the processor is configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold. : Generate a narrow pulse signal corresponding to the second signal; perform frequency division processing and high-pass filtering processing on the narrow pulse signal to obtain a signal envelope, wherein the frequency division processing is used to divide the narrow pulse signal into Convert to an edge signal; if the second signal does not exist in the signal envelope, determine the second signal to be the second interference signal.
第三方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第一方面的任一可能的设计所描述的方法。In a third aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute the above-mentioned first aspect or A first aspect of any possible design is the method described.
第四方面,本申请提供一种计算机程序产品,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第一方面的任一可能的设计所描述的方法。In a fourth aspect, the present application provides a computer program product, including a computer program, which when the computer program is run on a computer, causes the computer to execute as described in the above first aspect or any possible design of the first aspect. Methods.
上述第二方面至第四方面及其可能的设计中的有益效果可以参考上述对第一方面及其任一可能的设计中所述的方法的有益效果的描述。For the beneficial effects in the above second to fourth aspects and their possible designs, reference can be made to the above description of the beneficial effects of the method described in the first aspect and any possible designs thereof.
附图说明Description of drawings
图1为本申请实施例提供的测距传感器的一种应用场景的示意图;Figure 1 is a schematic diagram of an application scenario of the ranging sensor provided by the embodiment of the present application;
图2为本申请实施例提供的测距传感器的一种工作原理的示意图;Figure 2 is a schematic diagram of a working principle of the ranging sensor provided by the embodiment of the present application;
图3为本申请实施例提供的一种测距传感器的测距周期示意图;Figure 3 is a schematic diagram of the ranging cycle of a ranging sensor provided by an embodiment of the present application;
图4为本申请实施例提供的一种测距直方图的示意图;Figure 4 is a schematic diagram of a ranging histogram provided by an embodiment of the present application;
图5为本申请实施例提供的测距传感器的一种同频干扰的示意图;Figure 5 is a schematic diagram of co-frequency interference of the ranging sensor provided by the embodiment of the present application;
图6为本申请实施例提供的测距传感器的一种持续同频干扰的示意图;Figure 6 is a schematic diagram of continuous co-frequency interference of the ranging sensor provided by the embodiment of the present application;
图7为本申请实施例提供的一种分时规避的示意图;Figure 7 is a schematic diagram of a time-sharing avoidance provided by an embodiment of the present application;
图8为本申请实施例提供的一种电子设备的硬件结构示意图;Figure 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图9为本申请实施例提供的一种同频干扰判断的示意图;Figure 9 is a schematic diagram of co-channel interference judgment provided by an embodiment of the present application;
图10为本申请实施例提供的一种调整测距周期的示意图;Figure 10 is a schematic diagram of adjusting the ranging period provided by an embodiment of the present application;
图11为本申请实施例提供的一种确定干扰信号的示意图;Figure 11 is a schematic diagram for determining interference signals provided by an embodiment of the present application;
图12为本申请实施例提供的另一种确定干扰信号的示意图;Figure 12 is another schematic diagram for determining interference signals provided by an embodiment of the present application;
图13为本申请实施例提供的一种信号处理方法的流程示意图;Figure 13 is a schematic flow chart of a signal processing method provided by an embodiment of the present application;
图14为本申请实施例提供的另一种电子设备的硬件结构示意图。 FIG. 14 is a schematic diagram of the hardware structure of another electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
下面对本申请实施例中涉及的部分用语进行解释说明,以便理解本申请实施例。Some terms involved in the embodiments of the present application are explained below to facilitate understanding of the embodiments of the present application.
(1)本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本说明书的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为明示或暗示相对重要性,也不能理解为明示或暗示顺序。比如,第一对象和第二对象并不代表二者的重要程度或者代表二者的顺序,仅仅是为了区分描述。在本申请实施例中,“和/或”,仅仅是描述关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。(1) At least one of the embodiments of the present application involves one or more; where multiple means greater than or equal to two. In addition, it should be understood that in the description of this specification, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order. For example, the first object and the second object do not represent the importance of the two or the order of the two, but are only used to distinguish the description. In the embodiment of this application, "and/or" only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
在本申请实施例的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“连接”应做广义理解,例如,“连接”可以是可拆卸地连接,也可以是不可拆卸地连接;可以是直接连接,也可以通过中间媒介间接连接。本申请实施例中所提到的方位用语,例如,“上”、“下”、“左”、“右”、“内”、“外”等,仅是参考附图的方向,因此,使用的方位用语是为了更好、更清楚地说明及理解本申请实施例,而不是指示或暗指所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请实施例的限制。“多个”是指至少两个。In the description of the embodiments of this application, it should be noted that, unless otherwise clearly stated and limited, the terms "installation" and "connection" should be understood in a broad sense. For example, "connection" can be detachably connected, or can be detachably connected. It is non-detachably connected; it can be directly connected or indirectly connected through an intermediate medium. The directional terms mentioned in the embodiments of the present application, such as "upper", "lower", "left", "right", "inner", "outer", etc., are only for reference to the direction of the drawings. Therefore, use The orientation terms are used to describe and understand the embodiments of the present application better and more clearly, but do not indicate or imply that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application. Limitations of Application Examples. "Plural" means at least two.
在本文中描述的参考“一个实施例”或“一些实施例”等意味着在本申请提供的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本文中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference herein to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments provided herein. Thus, the various appearances herein of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in further embodiments," etc., are not necessarily all References to the same embodiment are intended to mean "one or more, but not all, embodiments" unless otherwise specifically emphasized. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
(2)测距传感器,是常用的智能传感器之一,可用于探测距离。测距传感器通常利用电磁波或超声波进行测距。在测距时,测距传感器的发射装置发射的信号在遇到目标时会被反射回测距传感器的接收装置,通过计算收发信号的相位差或者时间差,就可以确定测距传感器与该目标之间的距离。(2) Ranging sensor is one of the commonly used smart sensors and can be used to detect distance. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. During ranging, the signal emitted by the transmitting device of the ranging sensor will be reflected back to the receiving device of the ranging sensor when it encounters a target. By calculating the phase difference or time difference between the sending and receiving signals, the distance between the ranging sensor and the target can be determined. distance between.
测距传感器已广泛应用在电子设备中,用于检测目标位置或者距离。在本申请一些实施例中,电子设备可以是便携式设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(例如,手表、手环、头盔、耳机等)、车载终端设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。电子设备还可以是智能家居设备(例如,智能电视、智能音箱、智能门锁等)、智能汽车、智能机器人、车间设备、无人驾驶(Self Driving)中的无线终端、远程手术(Remote Medical Surgery)中的无线终端、智能电网(Smart Grid)中的无线终端、运输安全(Transportation Safety)中的无线终端、智慧城市(Smart City)中的无线终端,或智慧家庭(Smart Home)中的无线终端、飞行设备(例如,智能机器人、热气球、无人机、飞机)等。Ranging sensors have been widely used in electronic devices to detect target position or distance. In some embodiments of the present application, electronic devices may be portable devices, such as mobile phones, tablets, wearable devices with wireless communication functions (for example, watches, bracelets, helmets, headphones, etc.), vehicle-mounted terminal devices, augmented reality ( augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), etc. Electronic devices can also be smart home devices (such as smart TVs, smart speakers, smart door locks, etc.), smart cars, smart robots, workshop equipment, wireless terminals in self-driving (Self Driving), remote medical surgery (Remote Medical Surgery) ), a wireless terminal in a Smart Grid, a wireless terminal in Transportation Safety, a wireless terminal in a Smart City, or a wireless terminal in a Smart Home , flying equipment (such as intelligent robots, hot air balloons, drones, airplanes), etc.
在本申请一些实施例中,电子设备还可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式终端设备。便携式终端设备的示例性实施例包括但不限于搭载或者其它操作系统的便携式终端设备。上述便携式终端设备也可以是其它便携式终端设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。还应当理解的是,在本申请其它一些实施例中,上述电子设备也可以不是便携式终端设备,而是具有触敏表面(例如触控面板)的台式计算机。In some embodiments of the present application, the electronic device may also be a portable terminal device that also includes other functions such as a personal digital assistant and/or a music player function. Exemplary embodiments of portable terminal devices include, but are not limited to, carrying Or portable terminal devices with other operating systems. The above-mentioned portable terminal device may also be other portable terminal devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel). It should also be understood that in other embodiments of the present application, the above-mentioned electronic device may not be a portable terminal device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
例如,测距传感器应用在智能门锁中,智能门锁可以通过包括的测距传感器检测智能门锁周围的预设距离内是否有人靠近,从而在检测到有人靠近时启动人脸识别。示例性的,图1为本申请实施例提供的测距传感器的一种应用场景的示意图,图1以智能门锁包括测距传感器为例。图1所示为多户对门的场景,图1中的测距传感器1、测距传感2和测距传感器3分别设置在户门1的智能门锁1、户门2的智能门锁2和户门3的智能门锁3上。或者,测距传感器应用在车载终端设备中,车载终端设备可以通过包括的测距传感器检测该车载终端设备对应车辆的行驶方向上是否出现有异物、行人或者其他车辆,从而在检测到异物、行人或者其他车辆时自动刹车或变向。For example, ranging sensors are used in smart door locks. The smart door lock can detect whether someone is approaching within a preset distance around the smart door lock through the included ranging sensor, thereby activating face recognition when someone is detected approaching. Illustratively, FIG. 1 is a schematic diagram of an application scenario of a ranging sensor provided by an embodiment of the present application. FIG. 1 takes a smart door lock including a ranging sensor as an example. Figure 1 shows a scenario where multiple households face each other. The ranging sensor 1, ranging sensor 2 and ranging sensor 3 in Figure 1 are respectively installed in the smart door lock 1 of door 1 and the smart door lock 2 of door 2. On the smart door lock 3 of the door 3. Alternatively, the ranging sensor is applied in a vehicle-mounted terminal device. The vehicle-mounted terminal device can detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle corresponding to the vehicle-mounted terminal device through the included ranging sensor, thereby detecting the presence of foreign objects, pedestrians or other vehicles. or other vehicles automatically brake or change direction.
示例性的,图2为本申请实施例提供的测距传感器的一种工作原理的示意图。其中,测距传感器在时刻t1通过发射装置发射超声波,在时刻t2通过接收装置接收被目标反射的超声波。测距传感器通过计时器可以确定发射的超声波与反射的超声波之间的时间差为Δt=t2-t1,由于超声波在空气中的传播 速度是v=340m/s,则测距传感器可以得到该目标的测距结果,例如该目标的测距结果为测距传感器与该目标之间的距离,该距离为s=(v·Δt)/2。Exemplarily, FIG. 2 is a schematic diagram of a working principle of the ranging sensor provided by the embodiment of the present application. Among them, the ranging sensor transmits ultrasonic waves through the transmitting device at time t1 , and receives the ultrasonic waves reflected by the target through the receiving device at time t2 . The ranging sensor can determine the time difference between the emitted ultrasonic wave and the reflected ultrasonic wave through a timer as Δt=t 2 -t 1 , due to the propagation of ultrasonic waves in the air The speed is v=340m/s, then the ranging sensor can obtain the ranging result of the target. For example, the ranging result of the target is the distance between the ranging sensor and the target, and the distance is s=(v·Δt) /2.
测距传感器的测距频率,又称工作频率,表示测距传感器在单元时间内的测距次数。例如,测距频率为10赫兹(Hertz,Hz),表示测距传感器每秒测距10次,即测距传感器的测距周期为100毫秒(ms)。The ranging frequency of the ranging sensor, also known as the working frequency, represents the number of ranging times of the ranging sensor within a unit time. For example, the ranging frequency is 10 Hertz (Hz), which means that the ranging sensor measures the ranging 10 times per second, that is, the ranging period of the ranging sensor is 100 milliseconds (ms).
示例性的,图3为本申请实施例提供的一种测距传感器的测距周期示意图。一个测距周期内可以包括三个时长,或者说包括三个阶段,例如一个测距周期内的三个阶段为发射阶段、接收阶段以及数据处理阶段。For example, FIG. 3 is a schematic diagram of the ranging cycle of a ranging sensor provided by an embodiment of the present application. A ranging cycle may include three durations, or three phases. For example, the three phases in a ranging cycle are a transmitting phase, a receiving phase, and a data processing phase.
其中,发射阶段,用于测距传感器发射信号。在发射阶段内,测距传感器可以发射信号,对于同一型号的测距传感器而言,发射阶段的时长可以相同。Among them, the transmitting stage is used for the ranging sensor to transmit signals. During the emission phase, the ranging sensor can emit signals. For ranging sensors of the same model, the duration of the emission phase can be the same.
接收阶段,用于测距传感器接收信号。在接收阶段内,测距传感器可以接收信号,还可以记录所接收的信号的强度。接收阶段的时长与测距传感器的测距范围相关,例如测距范围越大则接收阶段的时长越长。The receiving stage is used for the ranging sensor to receive signals. During the reception phase, the ranging sensor receives the signal and also records the strength of the received signal. The duration of the receiving phase is related to the ranging range of the ranging sensor. For example, the larger the ranging range, the longer the duration of the receiving phase.
数据处理阶段,用于测距传感器处理信号。其中,测距传感器处理信号,也可以理解为,测距传感器获得测距结果,即,数据处理阶段也可以理解为是用于测距传感器获得测距结果。在数据处理阶段内,测距传感器可以既不发射信号也不接收信号,而是根据接收阶段所接收的信号确定测距结果。例如测距传感器在接收阶段根据接收的信号记录了测距直方图,则在数据处理阶段,测距传感器可以根据该测距直方图确定测距结果。其中,该测距直方图的横坐标表示目标的距离,纵坐标表示目标反射回来的信号的信号强度。The data processing stage is used to process signals from the ranging sensor. Among them, the signal processing by the ranging sensor can also be understood as the ranging sensor obtaining the ranging result. That is, the data processing stage can also be understood as being used by the ranging sensor to obtain the ranging result. In the data processing stage, the ranging sensor can neither transmit nor receive signals, but determine the ranging results based on the signals received in the receiving stage. For example, during the receiving stage, the ranging sensor records a ranging histogram based on the received signal. Then, during the data processing stage, the ranging sensor can determine the ranging result based on the ranging histogram. Among them, the abscissa of the ranging histogram represents the distance of the target, and the ordinate represents the signal strength of the signal reflected by the target.
示例性的,图4为本申请实施例提供的一种测距直方图的示意图。如图4所示,横坐标表示目标的距离,纵坐标表示目标反射回来的信号的信号强度。测距传感器可以通过测距直方图确定该测距传感器的测距范围内的目标反射回来的信号的信号强度,如果有大于或等于设定阈值的信号强度,则可将该信号强度对应的距离作为测距结果。如果有多个信号强度均大于或等于设定阈值,则可将距离最小的测距结果作为最终测距结果。For example, FIG. 4 is a schematic diagram of a ranging histogram provided by an embodiment of the present application. As shown in Figure 4, the abscissa represents the distance to the target, and the ordinate represents the signal strength of the signal reflected by the target. The ranging sensor can determine the signal strength of the signal reflected from the target within the ranging range of the ranging sensor through the ranging histogram. If there is a signal strength greater than or equal to the set threshold, the distance corresponding to the signal strength can be as the ranging result. If there are multiple signal strengths greater than or equal to the set threshold, the ranging result with the smallest distance can be used as the final ranging result.
另外,在数据处理阶段内,测距传感器还可以通过延迟(delay)补足测距频率的配置。例如,测距传感器的测距频率为10Hz,则该测距传感器的测距周期为100ms,如果测距周期中的发射阶段的时长设置为1ms,测距周期中的接收阶段的时长设置为19ms,测距传感器在测距周期中的数据处理阶段中用于获得测距结果的时长为20ms,则在获得测距结果之后,测距周期中的数据处理阶段需要延长60ms,从而将测距周期的时长补齐至100ms。In addition, during the data processing stage, the ranging sensor can also supplement the configuration of the ranging frequency through delay. For example, if the ranging frequency of the ranging sensor is 10Hz, then the ranging cycle of the ranging sensor is 100ms. If the duration of the transmitting phase in the ranging cycle is set to 1ms, the duration of the receiving phase in the ranging cycle is set to 19ms. , the length of time that the ranging sensor uses to obtain the ranging result in the data processing stage of the ranging cycle is 20ms. After obtaining the ranging result, the data processing stage of the ranging cycle needs to be extended by 60ms, thereby extending the ranging cycle. The duration is supplemented to 100ms.
(3)同频干扰。电磁波或超声波用于测距时,本身并不携带编码信息,所以测距传感器之间在接收信号之后,无法区分该信号是自身发射的信号的反射信号,还是其他测距传感器发射的信号。而利用电磁波或超声波进行测距的测距传感器的视场角的覆盖范围较广,因此当某个空间内存在多个信号频率相同的测距传感器时,很容易出现同频干扰。例如,任一测距传感器的接收装置接收到的信号可能是该测距传感器的发射装置发射的信号的反射信号,但也可能是其他信号频率相同的测距传感器的发射装置所发射的信号,导致测距结果的误差较大。如图1所示,如果每户均使用信号频率相同的测距传感器,即测距传感器1、测距传感器2和测距传感器3的信号频率相同,那么将会出现较严重的同频干扰问题,而同频干扰会频繁的唤醒智能门锁启动人脸识别,从而造成智能门锁启续航下降。(3) Co-channel interference. When electromagnetic waves or ultrasonic waves are used for distance measurement, they do not carry coded information. Therefore, after ranging sensors receive signals, they cannot distinguish whether the signal is a reflection of the signal emitted by itself or a signal emitted by other ranging sensors. The range-finding sensors that use electromagnetic waves or ultrasonic waves to measure distance have a wide coverage range of the field of view. Therefore, when there are multiple ranging sensors with the same signal frequency in a certain space, co-channel interference is prone to occur. For example, the signal received by the receiving device of any ranging sensor may be a reflected signal of the signal emitted by the transmitting device of the ranging sensor, but it may also be a signal emitted by the transmitting device of other ranging sensors with the same signal frequency. This results in a large error in the ranging results. As shown in Figure 1, if each household uses ranging sensors with the same signal frequency, that is, the signal frequencies of ranging sensor 1, ranging sensor 2 and ranging sensor 3 are the same, then serious co-frequency interference problems will occur. , and co-channel interference will frequently wake up the smart door lock to start face recognition, resulting in a decrease in the smart door lock's battery life.
图5为本申请实施例提供的测距传感器的一种同频干扰的示意图。例如测距传感器1的信号频率和测距传感器2的信号频率相同,如图5所示,测距传感器1在测距周期中的发射阶段发射信号。该信号经过一段时间到达测距传感器2时,因为测距传感器2正处于测距周期中的接收阶段,所以测距传感器2会将测距传感器1发射的信号当作自己发射的信号的反射信号。这可能导致测距传感器2在测距周期中的数据处理阶段得到的测距结果误差较大。FIG. 5 is a schematic diagram of co-frequency interference of a ranging sensor provided by an embodiment of the present application. For example, the signal frequency of the ranging sensor 1 is the same as the signal frequency of the ranging sensor 2. As shown in Figure 5, the ranging sensor 1 emits a signal in the transmission phase of the ranging cycle. When the signal reaches the ranging sensor 2 after a period of time, because the ranging sensor 2 is in the receiving stage of the ranging cycle, the ranging sensor 2 will regard the signal emitted by the ranging sensor 1 as a reflected signal of the signal emitted by itself. . This may lead to a large error in the ranging results obtained by the ranging sensor 2 during the data processing stage of the ranging cycle.
图6为本申请实施例提供的测距传感器的一种持续同频干扰的示意图。例如测距传感器1的信号频率和测距传感器2的信号频率相同,测距传感器1的测距频率和测距传感器2的测距频率也相同。另外,测距传感器1的时钟和测距传感器2的时钟可能并未遵循统一的参考时钟。或者,测距传感器1的时钟和测距传感器2的时钟遵循统一的参考时钟,但随着时间的推移,测距传感器1的时钟和测距传感器2的时钟可能出现偏差。因此这两个传感器的测距周期中的各阶段并非完全同步,测距传感器1会对测距传感器2产生同频干扰,且会持续一段时间。如图6所示,测距传感器1在第一测距周期中的发射阶段发射信号。该信号经过一段时间到达测距传感器2(对应图6中的信号传播过程1),此时测距传感器2 正处于第一测距周期中的接收阶段,则测距传感器2会将测距传感器1发射的信号当作自己发射的信号的发射信号。这导致测距传感器2在第一测距周期中的数据处理阶段得到的测距结果误差较大。另外,测距传感器1在第二测距周期中的发射阶段发射信号。该信号经过一段时间到达测距传感器2(对应图6中的信号传播过程2),此时测距传感器2正处于第二测距周期中的接收阶段,则测距传感器2会将测距传感器1发射的信号当作自己发射的信号的反射信号。这测距传感器2导致在第二测距周期中的数据处理阶段也会得到误差较大的测距结果。可见,测距传感器1会持续影响测距传感器2。FIG. 6 is a schematic diagram of continuous co-frequency interference of the ranging sensor provided by the embodiment of the present application. For example, the signal frequency of distance sensor 1 and the signal frequency of distance sensor 2 are the same, and the distance measurement frequency of distance sensor 1 and the distance measurement frequency of distance sensor 2 are also the same. In addition, the clock of the ranging sensor 1 and the clock of the ranging sensor 2 may not follow a unified reference clock. Alternatively, the clock of ranging sensor 1 and the clock of ranging sensor 2 follow a unified reference clock, but over time, the clock of ranging sensor 1 and the clock of ranging sensor 2 may deviate. Therefore, the stages in the ranging cycle of the two sensors are not completely synchronized. The ranging sensor 1 will cause co-frequency interference to the ranging sensor 2, and this will last for a period of time. As shown in Figure 6, the ranging sensor 1 transmits a signal in the transmitting phase of the first ranging cycle. The signal reaches the ranging sensor 2 after a period of time (corresponding to the signal propagation process 1 in Figure 6). At this time, the ranging sensor 2 When it is in the receiving stage in the first ranging cycle, the ranging sensor 2 will regard the signal transmitted by the ranging sensor 1 as the transmission signal of the signal transmitted by itself. This results in a large error in the ranging result obtained by the ranging sensor 2 during the data processing stage in the first ranging cycle. In addition, the ranging sensor 1 emits a signal during the transmission phase in the second ranging cycle. The signal reaches the ranging sensor 2 after a period of time (corresponding to the signal propagation process 2 in Figure 6). At this time, the ranging sensor 2 is in the receiving stage of the second ranging cycle, then the ranging sensor 2 will The signal emitted by 1 is regarded as the reflected signal of the signal emitted by itself. This distance measurement sensor 2 will also obtain a distance measurement result with a large error in the data processing stage in the second distance measurement cycle. It can be seen that ranging sensor 1 will continue to affect ranging sensor 2.
为了抑制多个测距传感器之间的同频干扰,目前提出了分时规避机制和分频规避机制。In order to suppress the same-frequency interference between multiple ranging sensors, time-sharing avoidance mechanisms and frequency-division avoidance mechanisms are currently proposed.
分时规避,是指为每个测距传感器单独设置工作时间,使得每个测距传感器的工作时间完全区分开,同一时间仅允许一个测距传感器工作,从而减少了干扰。示例性的,图7为本申请实施例提供的一种分时规避的示意图。如图7所示,测试传感器1在时刻T1至时刻T2工作,测试传感器2在时刻T2至时刻T3工作,测试传感器3在时刻T3至时刻T4工作,测试传感器4在时刻T4至时刻T5工作,测试传感器5在时刻T5至时刻T6工作。但是分时规避不仅需要所有测距传感器遵循统一的参考时钟,还需要每个测距传感器在遵循统一的参考时钟后对随着时间的推移产生的时钟偏差进行消除。并且分时规避还会导致每个测距传感器的测距频率降低n倍,其中,n为同一个空间内同时工作的测距传感器个数。例如,测距传感器1的测距频率为10Hz,当同一空间内有5个测距传感器同时工作,测距传感器1的测距频率由10Hz变为2Hz。Time-sharing avoidance refers to setting the working time separately for each ranging sensor, so that the working time of each ranging sensor is completely separated, and only one ranging sensor is allowed to work at the same time, thereby reducing interference. For example, FIG. 7 is a schematic diagram of time-sharing avoidance provided by an embodiment of the present application. As shown in Figure 7, test sensor 1 works from time T1 to time T2, test sensor 2 works from time T2 to time T3, test sensor 3 works from time T3 to time T4, and test sensor 4 works from time T4 to time T5. The test sensor 5 operates from time T5 to time T6. However, time-sharing avoidance not only requires all ranging sensors to follow a unified reference clock, but also requires each ranging sensor to eliminate clock deviations generated over time after following a unified reference clock. Moreover, time-sharing avoidance will also cause the ranging frequency of each ranging sensor to be reduced by n times, where n is the number of ranging sensors working simultaneously in the same space. For example, the ranging frequency of ranging sensor 1 is 10Hz. When five ranging sensors work simultaneously in the same space, the ranging frequency of ranging sensor 1 changes from 10Hz to 2Hz.
分频规避,是指为每个测距传感器单独设置所发射的信号的频率,不同的测距传感器所发射的信号的频率不同,从而减少了干扰。例如,设置测距传感器1所发射的信号的频率为75KHz超声波,设置测距传感器2所发射的信号的频率为80KHz超声波。但是分频规避需要针对不同的信号频率配置不同的信号生成模块,无法通过单纯的软件配置来实现,而是需要更改测距传感器的硬件结构,增加测距传感器的硬件复杂度。Frequency division avoidance refers to setting the frequency of the signal emitted by each ranging sensor separately. Different ranging sensors emit signals at different frequencies, thereby reducing interference. For example, the frequency of the signal emitted by the ranging sensor 1 is set to 75KHz ultrasonic wave, and the frequency of the signal emitted by the ranging sensor 2 is set to 80KHz ultrasonic wave. However, frequency division avoidance requires configuring different signal generation modules for different signal frequencies, which cannot be achieved through simple software configuration. Instead, it requires changing the hardware structure of the ranging sensor and increasing the hardware complexity of the ranging sensor.
鉴于此,提供本申请实施例的技术方案。本申请实施例中,如果包括测距传感器的电子设备通过该测距传感器检测到第一干扰信号,则可以确定存在对该测距传感器产生同频干扰的干扰测距传感器。通过调整该测距传感器的测距周期内用于获得测距结果的时长,使得来自干扰测距传感器的信号不会被该测距传感器连续接收到,从而能够抑制多个测距传感器之间的同频干扰。并且,本申请实施例调整测距周期的处理,不会导致测距传感器的测距频率下降较多,能够继续保证测距传感器的测距行为持续进行。另外,本申请实施例提供的方法可以通过软件配置来实现,不会增加测距传感器的硬件复杂度。In view of this, technical solutions of embodiments of the present application are provided. In the embodiment of the present application, if the electronic device including the ranging sensor detects the first interference signal through the ranging sensor, it can be determined that there is an interfering ranging sensor that generates co-frequency interference to the ranging sensor. By adjusting the length of time used to obtain ranging results within the ranging cycle of the ranging sensor, the signal from the interfering ranging sensor will not be continuously received by the ranging sensor, thereby suppressing interference between multiple ranging sensors. Co-channel interference. Moreover, the process of adjusting the ranging cycle in the embodiment of the present application will not cause the ranging frequency of the ranging sensor to drop significantly, and can continue to ensure that the ranging behavior of the ranging sensor continues. In addition, the method provided by the embodiment of the present application can be implemented through software configuration without increasing the hardware complexity of the ranging sensor.
下面对本申请实施例涉及的技术特征进行说明,以便理解本申请实施例。The technical features involved in the embodiments of the present application are described below to facilitate understanding of the embodiments of the present application.
本申请实施例提供的信号处理方法可以应用于包括测距传感器的电子设备中。示例性的,图8为本申请实施例提供的一种电子设备的硬件结构示意图。如图8所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。The signal processing method provided by the embodiment of the present application can be applied to electronic devices including ranging sensors. Exemplarily, FIG. 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. As shown in Figure 8, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait. Among them, different processing units can be independent devices or integrated in one or more processors. The controller may be the nerve center and command center of the electronic device 100 . The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions. The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池 142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142. Charging management module 140 and processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor. Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
显示屏194用于显示应用的显示界面,例如显示电子设备100上安装的应用的显示页面等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display a display interface of an application, such as displaying a display page of an application installed on the electronic device 100 . Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序的软件代码等。存储数据区可存储电子设备100使用过程中所产生的数据(例如拍摄的图像、录制的视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。 Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 . The internal memory 121 may include a program storage area and a data storage area. The stored program area can store an operating system, software code of at least one application program, etc. The storage data area may store data generated during use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save pictures, videos, etc. files on an external memory card.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
其中,传感器模块180可以包括压力传感器180A,加速度传感器180B,触摸传感器180C等。Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 .
触摸传感器180C,也称“触控面板”。触摸传感器180C可以设置于显示屏194,由触摸传感器180C与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180C用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180C也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180C, also known as "touch panel". The touch sensor 180C can be disposed on the display screen 194. The touch sensor 180C and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180C is used to detect a touch operation on or near the touch sensor 180C. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180C may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
在本申请实施例中,传感器模块180还可以包括测距传感器180D。测距传感器180D可以包括发射端和接收端。测距传感器180D可以通过发射端发射信号,通过接收端接收信号,通过计算收发信号的相位差或者时间差,得到测距传感器180D与目标之间的距离。In the embodiment of the present application, the sensor module 180 may also include a ranging sensor 180D. The ranging sensor 180D may include a transmitting end and a receiving end. The ranging sensor 180D can transmit a signal through the transmitting end, receive the signal through the receiving end, and obtain the distance between the ranging sensor 180D and the target by calculating the phase difference or time difference between the sending and receiving signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现与电子设备100的接触和分离。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 . The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
可以理解的是,图8所示的部件并不构成对电子设备100的具体限定,电子设备100还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。此外,图8中的部件之间的组合/连接关系也是可以调整修改的。It can be understood that the components shown in FIG. 8 do not constitute a specific limitation on the electronic device 100. The electronic device 100 may also include more or fewer components than shown in the figure, or combine some components, or decompose some components. components, or different arrangements of components. In addition, the combination/connection relationship between the components in Figure 8 can also be adjusted and modified.
下面对本申请实施例提供的信号处理方法进行介绍。The signal processing method provided by the embodiment of the present application is introduced below.
本申请实施例提供的信号处理方法可包括干扰判断和干扰抑制两个阶段。下面分别对各个阶段的进行介绍。The signal processing method provided by the embodiment of the present application may include two stages: interference determination and interference suppression. Each stage is introduced below.
一、干扰判断。1. Interfering with judgment.
在本申请实施例中,测距传感器可以具有两个状态:探测状态和测距状态。处于探测状态的测距传感器在对应的探测周期内可以不发射信号而只接收信号。处于测距状态的测距传感器在对应的测距周期内可以发射信号、接收信号以及获得测距结果。如图8所示的包括测距传感器的电子设备可以在该测距传感器发射信号之前,控制该测距传感器进入探测状态并保持一个或多个探测周期。其中,探测周期可用于测距传感器接收信号。在探测周期内,测距传感器可以接收信号,还可以记录所接收的信号的强度。测距周期可以用于测距传感器发射信号、接收信号以及获得处理结果,例如一个测距周期内可以发射阶段、接收阶段以及数据处理阶段这三个阶段。在发射阶段内,测距传感器可以发射信号。在接收阶段内,测距传感器可以接收信号,还可以记录所接收的信号的强度。在数据处理阶段内,测距传感器可以既不发射信号也不接收信号,而是根据接收阶段所接收的信号获得测距结果。例如,电子设备可以在该测距传感器上电之后进入测距状态之前,控制该测距传感器进入探测状态并保持一个或多个探测周期;或者,电子设备还可以在该测距传感器结束一个测距周期之后进入下一个测距周期之前,控制该测距传感器进入探测状态并保持一个或多个探测周期,本申请实施例对此不做任何限定。如果该测距传感器在一个或多个探测周期内未接收到信号,或者接收到的信号的强度小于设定阈值,则可以确定不存在对该测距传感器产生同频干扰的测距传感器;或者,如果该测距传感器在一个或多个探测周期内接收到信号,并且接收到的信号的强度不小于设定阈值,则可以确定存在对该测距传感器产生同频干扰的测距传感器。电子设备还可以根据该测距传感器在发射信号之前所接收的部分或全部信号,确定对该测距传感器产生同频干扰的测距传感器的个数。本申请实施例中,可以将对该测距传感器产生干扰的测距传感器称为干扰 测距传感器。In the embodiment of the present application, the ranging sensor may have two states: detection state and ranging state. The ranging sensor in the detection state may not emit signals but only receive signals during the corresponding detection period. The ranging sensor in the ranging state can transmit signals, receive signals and obtain ranging results within the corresponding ranging period. The electronic device including the ranging sensor as shown in FIG. 8 can control the ranging sensor to enter the detection state and maintain one or more detection periods before the ranging sensor emits a signal. Among them, the detection period can be used for the ranging sensor to receive signals. During the detection cycle, the ranging sensor can receive signals and also record the strength of the received signals. The ranging cycle can be used for the ranging sensor to transmit signals, receive signals and obtain processing results. For example, a ranging cycle can have three stages: transmitting stage, receiving stage and data processing stage. During the emission phase, the ranging sensor can emit signals. During the reception phase, the ranging sensor receives the signal and also records the strength of the received signal. In the data processing stage, the ranging sensor can neither transmit nor receive signals, but obtain ranging results based on the signals received in the receiving stage. For example, the electronic device can control the ranging sensor to enter the detection state and maintain one or more detection periods after the ranging sensor is powered on and before it enters the ranging state; or, the electronic device can also control the ranging sensor to end a measurement period. After the ranging period and before entering the next ranging period, the ranging sensor is controlled to enter the detection state and maintain one or more detection periods, which is not limited in the embodiment of the present application. If the ranging sensor does not receive a signal within one or more detection cycles, or the strength of the received signal is less than the set threshold, it can be determined that there is no ranging sensor that causes co-frequency interference to the ranging sensor; or , if the ranging sensor receives a signal within one or more detection cycles, and the intensity of the received signal is not less than the set threshold, it can be determined that there is a ranging sensor that causes co-frequency interference to the ranging sensor. The electronic device may also determine the number of ranging sensors that cause co-channel interference to the ranging sensor based on part or all of the signals received by the ranging sensor before transmitting the signal. In the embodiment of the present application, the ranging sensor that interferes with the ranging sensor can be called interference. Distance sensor.
示例性的,图9为本申请实施例提供的一种判断同频干扰的示意图,图9以智能驾驶场景为例。智能驾驶是指通过机器进行辅助驾驶以及在特殊情况下完全取代人工驾驶的技术。采用智能驾驶的车辆可以通过设置在该车辆上的测距传感器检测行驶方向上是否出现有异物、行人或者其他车辆,从而自动刹车或变向。图9中的测距传感器1、测距传感2和测距传感器3分别设置在车辆1的车载终端设备1、车辆2的车载终端设备2和车辆3的车载终端设备3上,测距传感器1、测距传感2和测距传感器3具有相同的信号频率、相同的测距频率以及相同距离的检测范围。该信号频率例如为75KHz,该测距频率例如为10Hz,该检测范围例如为1.5米(m)。那么测距传感器1、测距传感2和测距传感器3的测距周期均为100ms,测距周期中的接收阶段的时长均为1.5m*2/(340m/s)=9ms。Exemplarily, FIG. 9 is a schematic diagram for determining co-channel interference provided by an embodiment of the present application. FIG. 9 takes an intelligent driving scenario as an example. Intelligent driving refers to technology that uses machines to assist driving and completely replace human driving under special circumstances. A vehicle that adopts intelligent driving can automatically brake or change direction by detecting whether there are foreign objects, pedestrians or other vehicles in the direction of travel through the ranging sensor installed on the vehicle. The ranging sensor 1, the ranging sensor 2 and the ranging sensor 3 in Figure 9 are respectively arranged on the vehicle-mounted terminal equipment 1 of the vehicle 1, the vehicle-mounted terminal equipment 2 of the vehicle 2 and the vehicle-mounted terminal equipment 3 of the vehicle 3. The ranging sensors 1. The ranging sensor 2 and the ranging sensor 3 have the same signal frequency, the same ranging frequency and the same distance detection range. The signal frequency is, for example, 75 KHz, the ranging frequency is, for example, 10 Hz, and the detection range is, for example, 1.5 meters (m). Then the ranging periods of ranging sensor 1, ranging sensor 2 and ranging sensor 3 are all 100ms, and the duration of the receiving phase in the ranging cycle is 1.5m*2/(340m/s)=9ms.
例如,车载终端设备1需要检测车辆1的行驶方向上是否出现有异物、行人或者其他车辆,车载终端设备1可以控制测距传感器1上电,并在控制测距传感器1上电之后,控制测距传感器1进入探测状态并保持一个探测周期例如10s。例如测距传感器1在这10s内未接收到信号,则车载终端设备1可以确定不存在对测距传感器1产生同频干扰的干扰测距传感器,进而车载终端设备1可以控制测距传感器1进入测距状态并保持一个或多个测距周期,根据测距传感器1的测距结果确定车辆1的行驶方向上是否出现有异物、行人或者其他车辆。For example, the vehicle-mounted terminal device 1 needs to detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 1. The vehicle-mounted terminal device 1 can control the ranging sensor 1 to be powered on, and after controlling the ranging sensor 1 to be powered on, control the measuring Distance sensor 1 enters the detection state and maintains a detection period, such as 10s. For example, if the ranging sensor 1 does not receive a signal within these 10 seconds, the vehicle-mounted terminal device 1 can determine that there is no interfering ranging sensor that causes co-frequency interference to the ranging sensor 1, and then the vehicle-mounted terminal device 1 can control the ranging sensor 1 to enter. The ranging state is maintained for one or more ranging periods, and based on the ranging results of the ranging sensor 1, it is determined whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 1.
车载终端设备2需要检测车辆2的行驶方向上是否出现有异物、行人或者其他车辆,车载终端设备2可以控制测距传感器2上电,并在控制测距传感器2上电之后,可以控制测距传感器2进入探测状态并保持一个探测周期例如10s。例如测距传感器2在这10s内接收到了信号,则车载终端设备2可以确定存在对测距传感器2产生同频干扰的测距传感器。车载终端设备2可以根据测距传感器2在这10s内接收到的部分或全部信号,确定干扰测距传感器的个数。例如,测距传感器2在这10s内共接收到三个信号,分别为在第一时刻接收的第一信号,在第二时刻接收的第二信号,以及在第三时刻接收的第三信号。例如第一时刻与第二时刻之间的时长等于第二时刻与第三时刻之间的时长,则车载终端设备2可以确定第一信号、第二信号和第三信号是同一测距传感器根据测距周期发送的信号,进而可以确定存在对测距传感器2产生同频干扰的干扰测距传感器的个数为1。例如第一时刻与第二时刻之间的时长不等于第二时刻与第三时刻之间的时长,则车载终端设备2可以确定第一信号、第二信号和第三信号是不同测距传感器根据测距周期发送的信号,进而可以确定存在对测距传感器2产生同频干扰的干扰测距传感器的个数为3。The vehicle-mounted terminal device 2 needs to detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 2. The vehicle-mounted terminal device 2 can control the ranging sensor 2 to be powered on, and after controlling the ranging sensor 2 to be powered on, it can control the ranging Sensor 2 enters the detection state and maintains a detection period, such as 10 seconds. For example, if the ranging sensor 2 receives a signal within these 10 seconds, the vehicle-mounted terminal device 2 can determine that there is a ranging sensor that causes co-frequency interference to the ranging sensor 2 . The vehicle-mounted terminal equipment 2 can determine the number of interfering ranging sensors based on part or all of the signals received by the ranging sensor 2 within these 10 seconds. For example, the ranging sensor 2 receives a total of three signals within these 10 seconds, which are the first signal received at the first time, the second signal received at the second time, and the third signal received at the third time. For example, the duration between the first moment and the second moment is equal to the duration between the second moment and the third moment, then the vehicle-mounted terminal device 2 can determine that the first signal, the second signal and the third signal are the same ranging sensor according to the measurement. From the signals sent periodically, it can be determined that the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor 2 is 1. For example, the duration between the first moment and the second moment is not equal to the duration between the second moment and the third moment, then the vehicle-mounted terminal device 2 can determine that the first signal, the second signal and the third signal are different ranging sensors based on According to the signals sent during the ranging period, it can be determined that the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor 2 is three.
车载终端设备3需要检测车辆3的行驶方向上是否出现有异物、行人或者其他车辆,车载终端设备3可以控制测距传感器2上电,并在控制测距传感器3上电之后,控制测距传感器3进入探测状态并保持一个探测周期例如10s。例如测距传感器3在这10s内接收到了信号,则车载终端设备3可以确定存在对测距传感器3产生同频干扰的测距传感器。车载终端设备3可以根据测距传感器3在这10s内接收到的部分或全部信号,确定对测距传感器3产生同频干扰的干扰测距传感器的个数。例如,测距传感器3在这10s内共接收到四个信号,分别为在第一时刻接收的第一信号,在第二时刻接收的第二信号,在第三时刻接收的第三信号,在第四时刻接收的第四信号。例如第一时刻与第三时刻之间的时长等于第三时刻与第四时刻之间的时长,则车载终端设备3可以确定第一信号、第三信号和第四信号是同一测距传感器根据测距周期发送的信号。另外,例如第一时刻与第二时长之间的时长不等于第二时刻与第三时刻之间的时长,第一时刻与第二时刻之间的时长不等于第二时刻与第四时刻之间的时长,以及第二时刻与第三时刻之前的时长不等于第三时刻与第四时刻之前的时长,则车载终端设备3可以确定第二信号是另一测距传感器根据测距周期发送的信号,进而车载终端设备3可以确定干扰测距传感器的个数为2。The vehicle-mounted terminal device 3 needs to detect whether there are foreign objects, pedestrians or other vehicles in the driving direction of the vehicle 3. The vehicle-mounted terminal device 3 can control the ranging sensor 2 to be powered on, and after controlling the ranging sensor 3 to be powered on, control the ranging sensor. 3 Enter the detection state and maintain a detection period such as 10s. For example, if the ranging sensor 3 receives a signal within these 10 seconds, the vehicle-mounted terminal device 3 can determine that there is a ranging sensor that causes co-frequency interference to the ranging sensor 3 . The vehicle-mounted terminal equipment 3 can determine the number of interfering ranging sensors that cause co-frequency interference to the ranging sensor 3 based on part or all of the signals received by the ranging sensor 3 within these 10 seconds. For example, the ranging sensor 3 received a total of four signals in these 10 seconds, including the first signal received at the first moment, the second signal received at the second moment, the third signal received at the third moment, and The fourth signal received at the fourth moment. For example, the duration between the first moment and the third moment is equal to the duration between the third moment and the fourth moment, then the vehicle-mounted terminal device 3 can determine that the first signal, the third signal and the fourth signal are the same ranging sensor according to the measurement. The signal is sent periodically. In addition, for example, the duration between the first moment and the second moment is not equal to the duration between the second moment and the third moment, and the duration between the first moment and the second moment is not equal to the period between the second moment and the fourth moment. and the duration before the second moment and the third moment is not equal to the duration before the third moment and the fourth moment, then the vehicle-mounted terminal device 3 can determine that the second signal is a signal sent by another ranging sensor according to the ranging cycle , and then the vehicle-mounted terminal equipment 3 can determine that the number of interfering ranging sensors is 2.
二、干扰抑制。2. Interference suppression.
如果电子设备确定存在干扰测距传感器,由于干扰测距传感器发射的信号与该测距传感器发射的信号的反射信号在时间和/或频率上无法区分,因此可以赋予干扰信号更多特征。If the electronic device determines that an interfering ranging sensor is present, the interfering signal can be given additional characteristics since the signal emitted by the interfering ranging sensor is indistinguishable in time and/or frequency from the reflected signal of the signal emitted by the ranging sensor.
在本申请实施例中,上述电子设备在通过该测距传感器检测到干扰测距传感器之后,可以调整该测距传感器的测距周期,并控制该测距传感器进入测距状态根据调整后的测距周期处理信号,处理信号包括发射信号、接收信号或获得测距结果中的一项或多项。例如,该测距传感器可以在调整后的测距周期中的发射阶段发射信号,在调整后的测距周期中的接收阶段接收信号,以及在调整后的测距周期中的数据处理阶段获得测距结果并产生中断信号。例如,该测距传感器用于检测动态目标或获取目标距离,如 果该测距传感器在调整后的测距周期中的数据处理阶段检测到一个动态目标或获取到一个目标距离,可以产生中断信号,通知该测距传感器的后级读取动态目标或目标距离的相关信息。使得来自干扰测距传感器的信号不会被处于测控状态的该测距传感器连续接收到。从而能够抑制多个测距传感器之间的同频干扰。并且,本申请实施例调整测距周期导致的测距传感器的处理,不会导致测距传感器的测距频率下降较多,能够继续保证测距传感器的测距行为持续进行。另外,本申请实施例提供的方法可以通过软件配置来实现,不会增加测距传感器的硬件复杂度。In the embodiment of the present application, after detecting interference with the ranging sensor through the ranging sensor, the above-mentioned electronic device can adjust the ranging cycle of the ranging sensor and control the ranging sensor to enter the ranging state according to the adjusted measurement. The signal is processed periodically, and processing the signal includes one or more of transmitting a signal, receiving a signal, or obtaining a ranging result. For example, the ranging sensor can transmit signals in the transmitting phase of the adjusted ranging cycle, receive signals in the receiving phase of the adjusted ranging cycle, and obtain measurement data in the data processing phase of the adjusted ranging cycle. results and generates an interrupt signal. For example, this ranging sensor is used to detect dynamic targets or obtain target distance, such as If the ranging sensor detects a dynamic target or obtains a target distance during the data processing stage in the adjusted ranging cycle, an interrupt signal can be generated to notify the subsequent stage of the ranging sensor to read the dynamic target or target distance. Related Information. This prevents the signal from the interfering ranging sensor from being continuously received by the ranging sensor in the measurement and control state. This can suppress co-channel interference between multiple ranging sensors. Moreover, the processing of the ranging sensor caused by adjusting the ranging cycle in the embodiment of the present application will not cause the ranging frequency of the ranging sensor to drop significantly, and can continue to ensure that the ranging behavior of the ranging sensor continues. In addition, the method provided by the embodiment of the present application can be implemented through software configuration without increasing the hardware complexity of the ranging sensor.
可选的,电子设备可以根据调整前的测距周期中的接收阶段的时长对该测距传感器的测距周期进行调整,使得调整后的测距周期中的数据处理阶段的时长不等于调整前的测距周期中的数据处理阶段的时长。例如,调整后的测距周期中的数据处理阶段的时长与调整前的测距周期中的数据处理阶段的时长的差值的绝对值,可以大于或等于调整前的测距周期中的接收阶段的时长,可以保证该测距传感器在测距周期中的接收阶段的任一时刻接收来自干扰测距传感器的信号之后,在与该时刻间隔一个测距周期的持续时长的时刻,可以不接收来自干扰测距传感器的信号,即,可以保证来自干扰测距传感器的信号不会被该测距传感器连续接收到,从而能够抑制多个测距传感器之间的同频干扰。Optionally, the electronic device can adjust the ranging cycle of the ranging sensor according to the length of the receiving phase in the ranging cycle before adjustment, so that the length of the data processing phase in the adjusted ranging cycle is not equal to that before adjustment. The duration of the data processing phase in the ranging cycle. For example, the absolute value of the difference between the duration of the data processing phase in the ranging cycle after adjustment and the duration of the data processing phase in the ranging cycle before adjustment may be greater than or equal to the receiving phase in the ranging cycle before adjustment. The length of time can ensure that after the ranging sensor receives the signal from the interfering ranging sensor at any moment in the receiving phase of the ranging cycle, it does not need to receive signals from the interfering ranging sensor at a moment that is one duration of the ranging cycle away from this moment. The signal that interferes with the ranging sensor, that is, it can be ensured that the signal from the interfering ranging sensor will not be continuously received by the ranging sensor, thereby suppressing the same-frequency interference between multiple ranging sensors.
示例性的,图10为本申请实施例提供的调整测距周期的一种示意图。例如测距传感器1和测距传感器2的测距周期均为100ms。其中,发射阶段的时长设置为1ms,接收阶段的时长设置为19ms,数据处理阶段的时长设置为80ms。例如测距传感器1和测距传感器2可能并未遵循统一的参考时钟,或者,测距传感器1的时钟和测距传感器2的时钟遵循统一的参考时钟,但随着时间的推移,测距传感器1的时钟和测距传感器2的时钟可能出现偏差,因此测距传感器1和测距传感器2的测距周期中各阶段并非完全同步。Illustratively, FIG. 10 is a schematic diagram of adjusting the ranging period provided by an embodiment of the present application. For example, the ranging periods of ranging sensor 1 and ranging sensor 2 are both 100ms. Among them, the duration of the transmitting phase is set to 1ms, the duration of the receiving phase is set to 19ms, and the duration of the data processing phase is set to 80ms. For example, ranging sensor 1 and ranging sensor 2 may not follow a unified reference clock, or the clock of ranging sensor 1 and the clock of ranging sensor 2 follow a unified reference clock, but over time, the ranging sensor The clock of 1 and the clock of ranging sensor 2 may deviate, so the stages in the ranging cycles of ranging sensor 1 and ranging sensor 2 are not completely synchronized.
如图10的(1)所示。初始时,例如测距传感器1和测距传感器2都未上电。包括了测距传感器1的电子设备(例如电子设备1)在测距传感器1上电之后进入测距状态之前,可以控制该测距传感器进入探测状态并保持一个探测周期。在该探测周期内测距传感器1未检测到干扰测距传感器,则电子设备1可以控制测距传感器1在测距传感器1的第一测距周期内的第一时刻发射第一信号,在测距传感器1的第二测距周期内的第二时刻发射第二信号,在测距传感器1的第三测距周期内的第三时刻发射第三信号。包括了测距传感器2的电子设备(例如称为电子设备2)在测距传感器1上电之后进入测距状态之前,可以控制测距传感器2进入探测状态并保持一个探测周期。在该探测周期内测距传感器2接收到三个信号,分别为在第四时刻接收的第一信号,在第五时刻接收的第二信号,以及在第六时刻接收的第三信号。例如第四时刻与第五时刻之间的时长等于第五时刻与第六时刻之间的时长,则电子设备2可以确定第一信号、第二信号和第三信号是同一测距传感器例如测距传感器1根据测距周期发送的信号,进而可以确定存在对测距传感器2产生同频干扰的干扰测距传感器的个数为1。As shown in (1) of Figure 10. Initially, for example, distance sensor 1 and distance sensor 2 are not powered on. An electronic device (for example, electronic device 1) including the ranging sensor 1 can control the ranging sensor 1 to enter the detection state and maintain a detection period after the range sensor 1 is powered on and before entering the ranging state. If the ranging sensor 1 does not detect interference with the ranging sensor during the detection period, the electronic device 1 can control the ranging sensor 1 to transmit the first signal at the first moment within the first ranging period of the ranging sensor 1. The distance sensor 1 emits the second signal at the second time within the second distance measurement period, and the distance sensor 1 emits the third signal at the third time within the third distance measurement period. The electronic device including the ranging sensor 2 (for example, called electronic device 2) can control the ranging sensor 2 to enter the detection state and maintain a detection period after the range sensor 1 is powered on and before entering the ranging state. During this detection period, the ranging sensor 2 receives three signals, which are the first signal received at the fourth time, the second signal received at the fifth time, and the third signal received at the sixth time. For example, the duration between the fourth moment and the fifth moment is equal to the duration between the fifth moment and the sixth moment, then the electronic device 2 can determine that the first signal, the second signal and the third signal are the same ranging sensor, such as ranging. Based on the signal sent by sensor 1 during the ranging period, it can be determined that the number of interfering ranging sensors that cause co-frequency interference to ranging sensor 2 is 1.
电子设备2在通过测距传感器2检测到干扰测距传感器之后,可以将测距传感器2的测距周期中的数据处理阶段的时长调整为100ms,并控制测距传感器2进入测距状态。电子设备2调整测距传感器2的测距周期后,测距传感器2可能不会再接收到来自测距传感器1的信号,也可能会再接收到来自测距传感器1的信号,但只接收一次来自测距传感器1的信号,如图10的(2)所示,电子设备2调整测距传感器2的测距周期后,以测距传感器2会再接收到来自测距传感器1的信号,但只接收一次来自测距传感器1的信号为例,在调整测距传感器2的测距周期并控制测距传感器2进入测距状态之后,测距传感器1在测距传感器1的第四测距周期内的第七时刻发射的信号,在经过一段传输时间后,在第八时刻到达测距传感器2,此时测距传感器2正处于测距传感器2的第一测距周期中的接收阶段。测距传感器1在测距传感器1的第五测距周期内的第九时刻发射的信号,在经过一段传输时间后,在第十时刻到达测距传感器2。其中,第七时刻与第九时刻之间间隔100ms,第八时刻与第十时刻之间间隔100ms。由于电子设备2调整了测距传感器2的测距周期,此时测距传感器2正处于测距传感器2的第二测距周期中的发射阶段,因此测距传感器2在第十时刻可以不接收测距传感器1在第九时刻发射的信号。这使得测距传感器1对测距传感器2不会连续产生2次同频干扰,同理,测距传感器2对测距传感1也不会连续产生2次同频干扰。After detecting interference with the ranging sensor through the ranging sensor 2 , the electronic device 2 can adjust the duration of the data processing phase in the ranging cycle of the ranging sensor 2 to 100 ms, and control the ranging sensor 2 to enter the ranging state. After the electronic device 2 adjusts the ranging period of the ranging sensor 2, the ranging sensor 2 may no longer receive the signal from the ranging sensor 1, or may receive the signal from the ranging sensor 1 again, but only once. The signal from the ranging sensor 1 is as shown in (2) of Figure 10. After the electronic device 2 adjusts the ranging cycle of the ranging sensor 2, the ranging sensor 2 will receive the signal from the ranging sensor 1 again, but For example, after only receiving a signal from ranging sensor 1 once, after adjusting the ranging cycle of ranging sensor 2 and controlling ranging sensor 2 to enter the ranging state, ranging sensor 1 is in the fourth ranging cycle of ranging sensor 1. The signal transmitted at the seventh time in the range reaches the ranging sensor 2 at the eighth time after a period of transmission time. At this time, the ranging sensor 2 is in the receiving stage of the first ranging cycle of the ranging sensor 2 . The signal emitted by the ranging sensor 1 at the ninth time within the fifth ranging cycle of the ranging sensor 1 reaches the ranging sensor 2 at the tenth time after a period of transmission time. Among them, the interval between the seventh time and the ninth time is 100ms, and the interval between the eighth time and the tenth time is 100ms. Since the electronic device 2 adjusts the ranging cycle of the ranging sensor 2, and the ranging sensor 2 is in the transmitting stage in the second ranging cycle of the ranging sensor 2, the ranging sensor 2 does not need to receive the signal at the tenth moment. The signal emitted by the ranging sensor 1 at the ninth moment. This prevents the ranging sensor 1 from causing two consecutive co-channel interferences to the ranging sensor 2. Similarly, the ranging sensor 2 will not produce two consecutive co-channel interferences from the ranging sensor 1.
在本申请实施例中,电子设备在调整测距传感器的测距周期之后,并不能完全保证该测距传感器一定不会接收到来自干扰测距传感器的信号,而只能保证来自干扰测距传感器的信号不会被该测距传感器连续接收到。因此,电子设备即使调整了测距周期,也还可以执行相应的干扰判断机制。例如,电子设备可以根据信号被该测距传感器连续接收到的次数,确定该信号是否是干扰信号。如果该信号被该测距 传感器连续接收到的次数不小于阈值,则确定该信号是正常信号,或者确定该信号不是干扰信号;或者,如果信号被该测距传感器连续接收到的次数小于阈值,则确定该信号是干扰信号,或者确定该信号不是正常信号。如果确定一个信号是干扰信号,则电子设备可以控制该测距传感器过滤该信号,进而过滤该信号对应的测距结果。从而能够进一步抑制干扰测距传感器对该测距传感器产生的同频干扰。In the embodiment of this application, after the electronic device adjusts the ranging cycle of the ranging sensor, it cannot completely guarantee that the ranging sensor will not receive a signal from the interfering ranging sensor, but can only guarantee that the ranging sensor will not receive a signal from the interfering ranging sensor. The signal will not be continuously received by this distance sensor. Therefore, even if the electronic device adjusts the ranging period, it can still perform the corresponding interference judgment mechanism. For example, the electronic device can determine whether the signal is an interference signal based on the number of times the signal is continuously received by the ranging sensor. If the signal is ranged If the number of times the signal is continuously received by the sensor is not less than the threshold, it is determined that the signal is a normal signal, or it is determined that the signal is not an interference signal; or if the number of times the signal is continuously received by the ranging sensor is less than the threshold, it is determined that the signal is an interference signal , or determine that the signal is not a normal signal. If it is determined that a signal is an interference signal, the electronic device can control the ranging sensor to filter the signal, and then filter the ranging result corresponding to the signal. This can further suppress the co-frequency interference caused by the interfering ranging sensor to the ranging sensor.
例如,阈值为2,该测距传感器用于检测动态目标。如果该测距传感器在调整后的测距周期中的接收阶段的第一时刻接收到信号,在与第一时刻间隔一个调整后的测距周期的持续时长的第二时刻也接收到信号。那么电子设备可以确定第一时刻和第二时刻接收到的信号是正常信号,进而确定该测距传感器在连续两个调整后的测距周期都检测到一个动态目标。电子设备可以控制该测距传感器产生中断信号,通知该测距传感器的后级读取该动态目标的相关信息。或者,如果该测距传感器在调整后的测距周期中的接收阶段的第一时刻接收到信号,在与第一时刻间隔一个调整后的测距周期的持续时长的第二时刻未接收到信号。那么电子设备可以确定第一时刻接收到的信号是干扰信号,进而确定该测距传感器只在一个调整后的测距周期检测到一个动态目标。电子设备可以控制该测距传感器不产生中断信号,从而过滤该动态目标。For example, the threshold is 2 and the ranging sensor is used to detect dynamic targets. If the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, it also receives the signal at a second moment that is separated from the first moment by a duration of the adjusted ranging cycle. Then the electronic device can determine that the signals received at the first moment and the second moment are normal signals, and then determine that the ranging sensor detects a dynamic target in two consecutive adjusted ranging cycles. The electronic device can control the ranging sensor to generate an interrupt signal to notify the subsequent stage of the ranging sensor to read relevant information of the dynamic target. Or, if the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, and does not receive a signal at the second moment that is separated from the first moment by the duration of the adjusted ranging cycle. . Then the electronic device can determine that the signal received at the first moment is an interference signal, and then determine that the ranging sensor detects a dynamic target only in an adjusted ranging cycle. The electronic device can control the ranging sensor not to generate an interrupt signal, thereby filtering the dynamic target.
或者,阈值为2,该测距传感器用于获取目标距离。如果该测距传感器在第一调整后的测距周期中的接收阶段的第一时刻接收到信号,在与第一时刻间隔一个调整后的测距周期的持续时长的第二时刻也接收到信号。那么电子设备可以确定第一时刻和第二时刻接收到的信号是正常信号,进而确定该测距传感器在连续两个调整后的测距周期都获取到某个目标距离。电子设备可以控制该测距传感器产生中断信号,通知该测距传感器的后级读取该目标距离的相关信息。或者,如果该测距传感器在调整后的测距周期中的接收阶段的第一时刻接收到信号,在与第一时刻间隔一个调整后的测距周期的持续时长的第二时刻未接收到信号。那么电子设备可以确定第一时刻接收到的信号是干扰信号,进而确定该测距传感器只在一个调整后的测距周期获取到某个目标距离。电子设备可以控制该测距传感器不产生中断信号,从而过滤该目标距离;或者,电子设备也可以控制该测距传感器产生中断信号,通知该测距传感器的后级读取该目标距离的相关信息,电子设备控制该测距传感器的后级通过软件算法例如滑动窗口平均,差值检测等过滤仅出现一次的异常目标距离。Alternatively, the threshold is 2 and this ranging sensor is used to obtain the target distance. If the ranging sensor receives a signal at the first moment of the reception phase in the first adjusted ranging cycle, it also receives the signal at a second moment that is separated from the first moment by the duration of the adjusted ranging cycle. . Then the electronic device can determine that the signals received at the first moment and the second moment are normal signals, and then determine that the ranging sensor has obtained a certain target distance in two consecutive adjusted ranging cycles. The electronic device can control the ranging sensor to generate an interrupt signal to notify the subsequent stage of the ranging sensor to read relevant information about the target distance. Or, if the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, and does not receive a signal at the second moment that is separated from the first moment by the duration of the adjusted ranging cycle. . Then the electronic device can determine that the signal received at the first moment is an interference signal, and then determine that the ranging sensor only obtains a certain target distance in an adjusted ranging cycle. The electronic device can control the ranging sensor not to generate an interrupt signal, thereby filtering the target distance; or the electronic device can also control the ranging sensor to generate an interrupt signal to notify the subsequent stage of the ranging sensor to read relevant information about the target distance. , the electronic device controls the rear stage of the ranging sensor to filter abnormal target distances that only occur once through software algorithms such as sliding window averaging, difference detection, etc.
可选的,电子设备可以将阈值设置为大于或等于该测距传感器的个数与干扰测距传感器的个数之和。例如干扰测距传感器的个数为1,则电子设备可以将阈值设置为2。该测距传感器在调整后的测距周期中的接收阶段的第一时刻接收到信号之后,如果该测距传感器在与第一时刻间隔一个调整后的测距周期的持续时长的第二时刻也接收到信号,则电子设备可以确定第一时刻和第二时刻接收到的信号是正常信号。例如干扰测距传感器的个数为2,则电子设备可以将阈值设置为3。该测距传感器在调整后的测距周期中的接收阶段的第一时刻接收到信号之后,即使该测距传感器在与第一时刻间隔一个调整后的测距周期的持续时长的第二时刻接收到信号,电子设备也不可以确定第一时刻和第二时刻接收到的信号是正常信号。因为第一时刻接收到的信号可能是来自干扰测距传感器1的信号,第二时刻接收到的信号可能是来自干扰测距传感器2的信号,如果该测距传感器在与第二时刻间隔两个调整后的测距周期的持续时长的第三时刻也接收到信号,则电子设备才可以确定第一时刻、第二时刻和第三时刻接收到的信号是正常信号。从而保证该测距传感器能够准确过滤干扰信号,抑制干扰测距传感器对该测距传感器产生的同频干扰。Optionally, the electronic device can set the threshold value to be greater than or equal to the sum of the number of ranging sensors and the number of interfering ranging sensors. For example, if the number of interfering ranging sensors is 1, the electronic device can set the threshold to 2. After the ranging sensor receives a signal at the first moment of the receiving phase in the adjusted ranging cycle, if the ranging sensor also receives a signal at a second moment that is separated from the first moment by a duration of the adjusted ranging period After receiving the signal, the electronic device can determine that the signals received at the first moment and the second moment are normal signals. For example, if the number of interfering ranging sensors is 2, the electronic device can set the threshold to 3. After the ranging sensor receives the signal at the first moment of the receiving phase in the adjusted ranging cycle, even if the ranging sensor receives the signal at a second moment that is separated from the first moment by a duration of the adjusted ranging period. When the signal is received, the electronic device cannot determine that the signals received at the first moment and the second moment are normal signals. Because the signal received at the first moment may be a signal from the interfering ranging sensor 1, and the signal received at the second moment may be a signal from the interfering ranging sensor 2, if the ranging sensor is two times apart from the second moment Only when the signal is also received at the third moment of the adjusted duration of the ranging cycle, the electronic device can determine that the signals received at the first moment, the second moment and the third moment are normal signals. This ensures that the ranging sensor can accurately filter interference signals and suppress the same-frequency interference caused by the interfering ranging sensor to the ranging sensor.
可选的,电子设备可以通过多种方式确定该测距传感器接收到的信号被该测距传感器连续接收到的次数是否小于阈值,以下举例介绍。Optionally, the electronic device can determine whether the number of times the signal received by the ranging sensor is continuously received by the ranging sensor is less than a threshold through various methods. Examples are introduced below.
方式一。如果该测距传感器在第一时刻接收到信号,电子设备可以确定该测距传感器是否在第二时刻接收到信号,其中,第二时刻与第一时刻之间的时长为调整后的测距周期的持续时长的N倍,N为小于阈值的正整数,例如,阈值为3,N为1或2。如果该测距传感器未在第二时刻接收到信号,则电子设备可以确定该测距传感器在第一时刻和第二时刻接收到的信号为干扰信号。method one. If the ranging sensor receives a signal at a first moment, the electronic device may determine whether the ranging sensor receives a signal at a second moment, where the duration between the second moment and the first moment is the adjusted ranging period. N times the duration, N is a positive integer smaller than the threshold, for example, the threshold is 3, N is 1 or 2. If the ranging sensor does not receive a signal at the second moment, the electronic device may determine that the signals received by the ranging sensor at the first moment and the second moment are interference signals.
例如,图11为本申请实施例提供的一种确定干扰信号的示意图。测距传感器1和测距传感器2的测距周期均为100ms,其中,发射阶段的时长设置为1ms,接收阶段的时长设置为19ms,数据处理阶段的时长设置为80ms。由于测距传感器1会对测距传感器2产生同频干扰,包括测距传感器2的电子设备(例如称为电子设备2)可以调整测距传感器2的测距周期,使得测距传感器2调整后的测距周期为120ms,其中,发射阶段的时长设置为1ms,接收阶段的时长设置为19ms,数据处理阶段的时长设置为80ms。 For example, FIG. 11 is a schematic diagram for determining interference signals provided by an embodiment of the present application. The ranging periods of ranging sensor 1 and ranging sensor 2 are both 100ms, in which the duration of the transmitting phase is set to 1ms, the duration of the receiving phase is set to 19ms, and the duration of the data processing phase is set to 80ms. Since the ranging sensor 1 will cause co-channel interference to the ranging sensor 2, the electronic device including the ranging sensor 2 (for example, called the electronic device 2) can adjust the ranging cycle of the ranging sensor 2, so that the ranging sensor 2 adjusts The ranging period is 120ms, in which the duration of the transmitting phase is set to 1ms, the duration of the receiving phase is set to 19ms, and the duration of the data processing phase is set to 80ms.
如图11所示,测距传感器2在第一时刻接收到信号,电子设备2可以确定测距传感器2是否在第二时刻接收到信号,第一时刻和第二时刻之间的时长为120ms。如果测距传感器2在第二时刻接收到信号,则电子设备2可以确定测距传感器2在第一时刻接收到的信号,是测距传感器2发射的信号的反射信号,即是正常信号。如果测距传感器2在第二时刻没有接收到信号,则电子设备2可以确定测距传感器2在第一时刻接收到的信号,是测距传感器1发射的信号,即是干扰信号。从而保证该测距传感器能够准确过滤干扰信号,抑制干扰测距传感器对该测距传感器产生的同频干扰。As shown in Figure 11, the ranging sensor 2 receives a signal at the first moment, and the electronic device 2 can determine whether the ranging sensor 2 receives the signal at the second moment. The time between the first moment and the second moment is 120 ms. If the ranging sensor 2 receives a signal at the second moment, the electronic device 2 can determine that the signal received by the ranging sensor 2 at the first moment is a reflected signal of the signal emitted by the ranging sensor 2 , that is, it is a normal signal. If the ranging sensor 2 does not receive a signal at the second moment, the electronic device 2 can determine that the signal received by the ranging sensor 2 at the first moment is a signal emitted by the ranging sensor 1 , that is, an interference signal. This ensures that the ranging sensor can accurately filter interference signals and suppress the same-frequency interference caused by the interfering ranging sensor to the ranging sensor.
方式二,电子设备可以在该测距传感器接收到信号时,生成该信号对应的窄脉冲信号。其中,脉冲信号也可以叫方波,方波信号的占空比一般是50%,窄脉冲信号就是占空比小于50%的方波信号。例如方波信号频率是1KHz,也就是这个方波信号的周期是1ms,但是脉宽只有50ns,该方波信号就是一个窄脉冲信号。对生成的窄脉冲信号进行二分频处理得到该窄脉冲信号对应的边沿信号。其中,二分频是将该窄脉冲信号通过有分频作用的电路结构,在时钟每触发2个周期时,电路输出1个周期信号,这个周期信号就是该窄脉冲信号对应的边沿信号。对得到的边沿信号进行高通滤波处理,得到该边沿信号对应的信号包络。其中,高通滤波就是正常通过高频信号,而阻隔、减弱低于设定临界值的低频信号。如果得到的信号包络中不存在该信号,则电子设备可以确定该信号为干扰信号。In the second method, when the ranging sensor receives a signal, the electronic device can generate a narrow pulse signal corresponding to the signal. Among them, the pulse signal can also be called a square wave. The duty cycle of the square wave signal is generally 50%. The narrow pulse signal is a square wave signal with a duty cycle less than 50%. For example, the frequency of the square wave signal is 1KHz, that is, the period of the square wave signal is 1ms, but the pulse width is only 50ns. The square wave signal is a narrow pulse signal. The generated narrow pulse signal is divided by two to obtain the edge signal corresponding to the narrow pulse signal. Among them, the frequency division by two is to pass the narrow pulse signal through a circuit structure with frequency division function. When the clock triggers two cycles, the circuit outputs a periodic signal. This periodic signal is the edge signal corresponding to the narrow pulse signal. Perform high-pass filtering on the obtained edge signal to obtain the signal envelope corresponding to the edge signal. Among them, high-pass filtering is to pass high-frequency signals normally, while blocking and weakening low-frequency signals below the set threshold. If the signal is not present in the resulting signal envelope, the electronic device can determine that the signal is an interference signal.
示例性的,图12为本申请实施例提供的另一种确定干扰信号的示意图,如图12所示,电子设备可以在该测距传感器接收到信号时,生成该信号对应的窄脉冲信号,并对所有生成的窄脉冲信号进行二分频处理和高通滤波处理,得到信号包络,由于干扰信号被测距传感器连续接收到的次数小于阈值,二分频处理和高通滤波处理会将干扰信号对应的窄脉冲信号过滤,使得信号包络中不存在干扰信号,因此如果得到的信号包络中不存在该信号,则电子设备可以确定该信号为干扰信号,从而保证该测距传感器能够准确过滤干扰信号,抑制干扰测距传感器对该测距传感器产生的同频干扰。Exemplarily, Figure 12 is another schematic diagram for determining interference signals provided by an embodiment of the present application. As shown in Figure 12, when the ranging sensor receives a signal, the electronic device can generate a narrow pulse signal corresponding to the signal, All generated narrow pulse signals are subjected to two-frequency division processing and high-pass filtering processing to obtain the signal envelope. Since the number of times the interference signal is continuously received by the ranging sensor is less than the threshold, the two-frequency division processing and high-pass filtering processing will reduce the interference signal. The corresponding narrow pulse signal is filtered so that there is no interference signal in the signal envelope. Therefore, if the signal does not exist in the obtained signal envelope, the electronic device can determine that the signal is an interference signal, thereby ensuring that the ranging sensor can accurately filter Interfering signals suppress the co-frequency interference caused by the interfering ranging sensor to the ranging sensor.
基于以上实施例,本申请还提供一种信号处理方法。该方法可以由图8所示的包括了测距传感器的电子设备执行。请参考图13,为该信号处理方法的流程图。Based on the above embodiments, this application also provides a signal processing method. The method may be performed by the electronic device including the ranging sensor shown in FIG. 8 . Please refer to Figure 13, which is a flow chart of the signal processing method.
S1301:电子设备通过测距传感器检测到第一干扰信号。S1301: The electronic device detects the first interference signal through the ranging sensor.
对于S1301,可参考前文中对于干扰判断过程的介绍。例如电子设备可以在测距传感器发射信号之前,控制测距传感器进入探测状态并保持一个或多个探测周期,如果测距传感器在一个或多个探测周期内接收到信号,并且接收到的信号的强度不小于设定阈值,则测距传感器可以确定接收到的信号是第一干扰信号。For S1301, please refer to the introduction of the interference judgment process in the previous article. For example, before the ranging sensor transmits a signal, the electronic device can control the ranging sensor to enter the detection state and maintain one or more detection periods. If the ranging sensor receives a signal within one or more detection periods, and the received signal If the intensity is not less than the set threshold, the ranging sensor can determine that the received signal is the first interference signal.
S1302:电子设备调整测距传感器的测距周期。S1302: The electronic device adjusts the ranging cycle of the ranging sensor.
其中,调整后的测距周期内用于获得测距结果的时长不等于调整前的测距周期内用于获得测距结果的时长。Among them, the time period used to obtain the ranging results in the adjusted ranging period is not equal to the time period used to obtain the ranging results in the ranging period before the adjustment.
对于S1302,可参考前文中对于干扰抑制过程的介绍。例如调整后的测距周期内用于获得测距结果的时长与调整前的测距周期内用于获得测距结果的时长的差值的绝对值,可以大于或等于调整前的测距周期内用于接收信号的时长。For S1302, please refer to the introduction to the interference suppression process in the previous article. For example, the absolute value of the difference between the time period used to obtain ranging results in the adjusted ranging period and the time period used to obtain ranging results in the ranging period before adjustment can be greater than or equal to the period in the ranging period before adjustment. The duration used to receive the signal.
S1303:电子设备控制测距传感器根据调整后的测距周期处理信号。S1303: The electronic device controls the ranging sensor to process signals according to the adjusted ranging cycle.
其中,处理包括发射、接收、或获得测距结果中的一项或多项。The processing includes one or more of transmitting, receiving, or obtaining ranging results.
对于S1302,可参考前文中对于干扰抑制过程的介绍。例如,测距传感器可以在调整后的测距周期中的发射阶段发射信号,在调整后的测距周期中的接收阶段接收信号,以及在调整后的测距周期中的数据处理阶段获得测距结果。For S1302, please refer to the introduction to the interference suppression process in the previous article. For example, the ranging sensor can transmit a signal in the transmitting phase of the adjusted ranging cycle, receive the signal in the receiving phase of the adjusted ranging cycle, and obtain the ranging signal in the data processing phase of the adjusted ranging cycle. result.
可选的,电子设备在执行S1303之后,并不能完全保证测距传感器一定不会接收到来自干扰测距传感器的信号,而只能保证来自干扰测距传感器的信号不会被测距传感器连续接收到。因此,电子设备即使调整了测距周期,也还可以执行相应的干扰判断机制。例如,电子设备可以根据信号被测距传感器连续接收到的次数,确定该信号是否是干扰信号。还包括以下步骤A和B:Optional, after executing S1303, the electronic device cannot fully guarantee that the ranging sensor will not receive signals from the interfering ranging sensor, but can only guarantee that the signals from the interfering ranging sensor will not be continuously received by the ranging sensor. arrive. Therefore, even if the electronic device adjusts the ranging period, it can still perform the corresponding interference judgment mechanism. For example, the electronic device can determine whether the signal is an interference signal based on the number of times the signal is continuously received by the ranging sensor. Also includes the following steps A and B:
步骤A:电子设备通过测距传感器接收信号。Step A: The electronic device receives the signal through the ranging sensor.
步骤B:如果该信号为第二干扰信号,电子设备控制测距传感器过滤该信号。Step B: If the signal is a second interference signal, the electronic device controls the ranging sensor to filter the signal.
对于步骤A和B,可参考前文中对于干扰抑制过程的介绍。例如如果信号被测距传感器连续接收到的次数不小于阈值,则确定信号是正常信号,或者确定该信号不是第二干扰信号;或者,如果信号被测距传感器连续接收到的次数小于阈值,则确定信号是第二干扰信号,或者确定信号不是正常信号。 For steps A and B, please refer to the introduction to the interference suppression process in the previous article. For example, if the number of times the signal is continuously received by the ranging sensor is not less than the threshold, it is determined that the signal is a normal signal, or it is determined that the signal is not a second interference signal; or if the number of times the signal is continuously received by the ranging sensor is less than the threshold, then It is determined that the signal is a second interference signal, or that the signal is not a normal signal.
上述步骤的具体执行可参照上述实施例中的相关介绍,本实例中不再赘述。For the specific execution of the above steps, please refer to the relevant introduction in the above embodiment, and will not be described again in this example.
需要说明的是,上述实例提供的具体实施流程,仅是对本申请实施例适用方法流程的举例说明,其中各步骤的执行顺序可根据实际需求进行相应调整,还可以增加其它步骤,或减少部分步骤。It should be noted that the specific implementation process provided by the above examples is only an illustration of the method process applicable to the embodiments of the present application. The execution order of each step can be adjusted accordingly according to actual needs, and other steps can also be added or some steps can be reduced. .
基于以上实施例及相同构思,本申请实施例还提供一种电子设备,该电子设备用于实现本申请实施例提供的包括测距传感器的电子设备所执行的方法。Based on the above embodiments and the same concept, embodiments of the present application also provide an electronic device, which is used to implement the method performed by the electronic device including a ranging sensor provided by the embodiment of the present application.
如图14中所示,电子设备1400可以包括:存储器1401,一个或多个处理器1402,以及一个或多个计算机程序(图中未示出)。上述各器件可以通过一个或多个通信总线1403耦合。可选的,当电子设备1400用于实现本申请实施例提供的包括测距传感器的电子设备所执行的方法时,电子设备1400还可以包括测距传感器1404。As shown in Figure 14, electronic device 1400 may include: memory 1401, one or more processors 1402, and one or more computer programs (not shown in the figure). The various devices described above may be coupled through one or more communication buses 1403. Optionally, when the electronic device 1400 is used to implement the method performed by the electronic device including a ranging sensor provided by the embodiment of the present application, the electronic device 1400 may also include a ranging sensor 1404.
其中,存储器1401中存储有一个或多个计算机程序(代码),一个或多个计算机程序包括计算机指令;一个或多个处理器1402调用存储器1401中存储的计算机指令,使得电子设备1400执行本申请实施例提供的信号处理方法。测距传感器1404用于通过发射端发射信号,通过接收端接收信号,通过计算收发信号的相位差或者时间差,得到测距传感器1404与目标之间的距离。Among them, one or more computer programs (codes) are stored in the memory 1401, and the one or more computer programs include computer instructions; one or more processors 1402 call the computer instructions stored in the memory 1401, so that the electronic device 1400 executes the application. The signal processing method provided by the embodiment. The ranging sensor 1404 is used to transmit signals through the transmitting end, receive signals through the receiving end, and obtain the distance between the ranging sensor 1404 and the target by calculating the phase difference or time difference between the sent and received signals.
具体实现中,存储器1401可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器1401可以存储操作系统(下述简称系统),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作系统。存储器1401可用于存储本申请实施例的实现程序。存储器1401还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个用户设备,一个或多个网络设备进行通信。一个或多个处理器1402可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。In a specific implementation, the memory 1401 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 1401 can store an operating system (hereinafter referred to as the system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 1401 can be used to store the implementation program of the embodiment of the present application. The memory 1401 can also store a network communication program that can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices. One or more processors 1402 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the present application. Scheme program execution on the integrated circuit.
需要说明的是,图14仅仅是本申请实施例提供的电子设备1400的一种实现方式,实际应用中,电子设备1400还可以包括更多或更少的部件,这里不作限制。It should be noted that FIG. 14 is only an implementation manner of the electronic device 1400 provided by the embodiment of the present application. In actual applications, the electronic device 1400 may also include more or fewer components, which is not limited here.
基于以上实施例及相同构思,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,当计算机程序在计算机上运行时,使得计算机执行上述实施例提供的方法中由包括测距传感器的电子设备所执行的方法。Based on the above embodiments and the same concept, embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run on a computer, it causes the computer to execute the steps provided in the above embodiments. The method is performed by an electronic device including a ranging sensor.
基于以上实施例及相同构思,本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行上述实施例提供的方法中由包括测距传感器的电子设备所执行的方法。Based on the above embodiments and the same concept, embodiments of the present application also provide a computer program product. The computer program product includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer is caused to execute the method provided in the above embodiments. A method performed by an electronic device including a ranging sensor.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of this application and its equivalent technology, then this application is also intended to include these modifications and variations.

Claims (20)

  1. 一种信号处理方法,其特征在于,应用于包括测距传感器的电子设备,所述方法包括:A signal processing method, characterized in that it is applied to an electronic device including a ranging sensor, and the method includes:
    通过所述测距传感器检测到第一干扰信号;A first interference signal is detected by the ranging sensor;
    调整所述测距传感器的测距周期,其中,调整后的测距周期内用于获得测距结果的时长不等于调整前的测距周期内用于获得测距结果的时长;Adjust the ranging period of the ranging sensor, wherein the time period used to obtain the ranging results in the adjusted ranging period is not equal to the time period used to obtain the ranging results in the ranging period before adjustment;
    控制所述测距传感器根据所述调整后的测距周期处理信号,其中,所述处理包括发射、接收、或获得测距结果中的一项或多项。The ranging sensor is controlled to process signals according to the adjusted ranging cycle, wherein the processing includes one or more of transmitting, receiving, or obtaining ranging results.
  2. 如权利要求1所述的方法,其特征在于,通过所述测距传感器检测到第一干扰信号,包括:The method of claim 1, wherein detecting the first interference signal through the ranging sensor includes:
    在所述测距传感器发射信号之前,通过所述测距传感器接收第一信号;Before the ranging sensor transmits a signal, receiving a first signal through the ranging sensor;
    确定所述第一信号为所述第一干扰信号。The first signal is determined to be the first interference signal.
  3. 如权利要求1或2所述的方法,其特征在于,第一时长与第二时长的差值的绝对值大于或等于所述调整前的测距周期内用于接收信号的时长,其中,所述第一时长为所述调整后的测距周期内用于获得测距结果的时长,所述第二时长为所述调整前的测距周期内用于获得测距结果的时长。The method according to claim 1 or 2, characterized in that the absolute value of the difference between the first duration and the second duration is greater than or equal to the duration used to receive signals in the ranging period before adjustment, wherein, The first duration is the duration used to obtain the ranging results in the adjusted ranging period, and the second duration is the duration used to obtain the ranging results in the pre-adjusted ranging period.
  4. 如权利要求1-3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, characterized in that the method further includes:
    通过所述测距传感器接收第二信号;Receive a second signal through the ranging sensor;
    如果所述第二信号为第二干扰信号,控制所述测距传感器过滤所述第二信号。If the second signal is a second interference signal, the ranging sensor is controlled to filter the second signal.
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号。If the number of times the second signal is continuously received by the ranging sensor is less than a threshold, the second signal is determined to be the second interference signal.
  6. 如权利要求5所述的方法,其特征在于,所述如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号,包括:The method of claim 5, wherein if the number of times the second signal is continuously received by the ranging sensor is less than a threshold, determining the second signal to be the second interference signal includes: :
    如果所述测距传感器在第一时刻接收到所述第二信号,且未在第二时刻接收到所述第二信号,确定所述第二信号为所述第二干扰信号,其中,所述第二时刻与所述第一时刻之间的时长为所述调整后的测距周期的持续时长的N倍,所述N为小于所述阈值的正整数。If the ranging sensor receives the second signal at the first time and does not receive the second signal at the second time, it is determined that the second signal is the second interference signal, wherein: The duration between the second moment and the first moment is N times the duration of the adjusted ranging period, and N is a positive integer smaller than the threshold.
  7. 如权利要求5或6所述的方法,其特征在于,所述阈值大于或等于所述测距传感器的个数与干扰测距传感器的个数之和。The method according to claim 5 or 6, characterized in that the threshold value is greater than or equal to the sum of the number of the ranging sensors and the number of interfering ranging sensors.
  8. 如权利要求7所述的方法,其特征在于,所述干扰测距传感器的个数是根据所述第一干扰信号确定的。The method of claim 7, wherein the number of interference ranging sensors is determined based on the first interference signal.
  9. 如权利要求5所述的方法,其特征在于,所述如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号,包括:The method of claim 5, wherein if the number of times the second signal is continuously received by the ranging sensor is less than a threshold, determining the second signal to be the second interference signal includes: :
    生成所述第二信号对应的窄脉冲信号;Generate a narrow pulse signal corresponding to the second signal;
    对所述窄脉冲信号进行二分频处理和高通滤波处理,得到信号包络,其中,所述二分频处理用于将所述窄脉冲信号转换为边沿信号;Perform frequency division processing and high-pass filtering processing on the narrow pulse signal to obtain a signal envelope, wherein the frequency division processing is used to convert the narrow pulse signal into an edge signal;
    如果所述信号包络中不存在所述第二信号,确定所述第二信号为所述第二干扰信号。If the second signal does not exist in the signal envelope, the second signal is determined to be the second interference signal.
  10. 一种电子设备,其特征在于,包括测距传感器和处理器,其中,An electronic device, characterized by including a ranging sensor and a processor, wherein,
    所述测距传感器,用于检测到第一干扰信号;The ranging sensor is used to detect the first interference signal;
    所述处理器,用于调整所述测距传感器的测距周期,其中,调整后的测距周期内用于获得测距结果的时长不等于调整前的测距周期内用于获得测距结果的时长;The processor is configured to adjust the ranging period of the ranging sensor, wherein the time used to obtain the ranging results in the adjusted ranging period is not equal to the time used to obtain the ranging results in the ranging period before adjustment. duration;
    所述测距传感器,还用于根据所述调整后的测距周期处理信号,其中,所述处理包括发射、接收、或获得测距结果中的一项或多项。The ranging sensor is further configured to process signals according to the adjusted ranging cycle, wherein the processing includes one or more of transmitting, receiving, or obtaining ranging results.
  11. 如权利要求10所述的电子设备,其特征在于,所述测距传感器用于通过如下方式检测到第一干扰信号:The electronic device according to claim 10, wherein the ranging sensor is used to detect the first interference signal in the following manner:
    在所述测距传感器发射信号之前,接收第一信号;Before the ranging sensor transmits a signal, receive a first signal;
    确定所述第一信号为所述第一干扰信号。The first signal is determined to be the first interference signal.
  12. 如权利要求10或11所述的电子设备,其特征在于,第一时长与第二时长的差值的绝对值大于或等于所述调整前的测距周期内用于接收信号的时长,其中,所述第一时长为所述调整后的测距周期内用于获得测距结果的时长,所述第二时长为所述调整前的测距周期内用于获得测距结果的时长。 The electronic device according to claim 10 or 11, wherein the absolute value of the difference between the first duration and the second duration is greater than or equal to the duration used to receive signals in the ranging period before adjustment, wherein, The first duration is the duration used to obtain the ranging result in the adjusted ranging period, and the second duration is the duration used to obtain the ranging result in the pre-adjusted ranging period.
  13. 如权利要求10-12任一所述的电子设备,其特征在于,The electronic device according to any one of claims 10-12, characterized in that:
    所述测距传感器,还用于接收第二信号;The ranging sensor is also used to receive a second signal;
    所述测距传感器,还用于如果所述第二信号为第二干扰信号,过滤所述第二信号。The ranging sensor is also used to filter the second signal if the second signal is a second interference signal.
  14. 如权利要求13所述的电子设备,其特征在于,The electronic device as claimed in claim 13, characterized in that:
    所述处理器,还用于如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号。The processor is further configured to determine that the second signal is the second interference signal if the number of times the second signal is continuously received by the ranging sensor is less than a threshold.
  15. 如权利要求14所述的电子设备,其特征在于,所述处理器用于通过如下方式执行如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号:The electronic device of claim 14, wherein the processor is configured to determine that the second signal is: if the number of times the second signal is continuously received by the ranging sensor is less than a threshold; The second interference signal:
    如果所述测距传感器在第一时刻接收到所述第二信号,且未在第二时刻接收到所述第二信号,确定所述第二信号为所述第二干扰信号,其中,所述第二时刻与所述第一时刻之间的时长为所述调整后的测距周期的持续时长的N倍,所述N为小于所述阈值的正整数。If the ranging sensor receives the second signal at the first time and does not receive the second signal at the second time, it is determined that the second signal is the second interference signal, wherein: The duration between the second moment and the first moment is N times the duration of the adjusted ranging period, and N is a positive integer smaller than the threshold.
  16. 如权利要求14或15所述的电子设备,其特征在于,所述阈值大于或等于所述测距传感器的个数与干扰测距传感器的个数之和。The electronic device according to claim 14 or 15, wherein the threshold value is greater than or equal to the sum of the number of the ranging sensors and the number of interfering ranging sensors.
  17. 如权利要求16所述的电子设备,其特征在于,所述干扰测距传感器的个数是根据所述第一干扰信号确定的。The electronic device of claim 16, wherein the number of interference ranging sensors is determined based on the first interference signal.
  18. 如权利要求14所述的电子设备,其特征在于,所述处理器用于通过如下方式执行如果所述第二信号被所述测距传感器连续接收到的次数小于阈值,确定所述第二信号为所述第二干扰信号:The electronic device of claim 14, wherein the processor is configured to determine that the second signal is: if the number of times the second signal is continuously received by the ranging sensor is less than a threshold The second interference signal:
    生成所述第二信号对应的窄脉冲信号;Generate a narrow pulse signal corresponding to the second signal;
    对所述窄脉冲信号进行二分频处理和高通滤波处理,得到信号包络,其中,所述二分频处理用于将所述窄脉冲信号转换为边沿信号;Perform frequency division processing and high-pass filtering processing on the narrow pulse signal to obtain a signal envelope, wherein the frequency division processing is used to convert the narrow pulse signal into an edge signal;
    如果所述信号包络中不存在所述第二信号,确定所述第二信号为所述第二干扰信号。If the second signal does not exist in the signal envelope, the second signal is determined to be the second interference signal.
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-9中任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute any one of claims 1-9. method described in the item.
  20. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1-9中任一项所述的方法。 A computer program product, characterized in that it includes a computer program, which when the computer program is run on a computer, causes the computer to perform the method described in any one of claims 1-9.
PCT/CN2023/107943 2022-07-29 2023-07-18 Signal processing method, and electronic device WO2024022171A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210910503.7A CN117518147A (en) 2022-07-29 2022-07-29 Signal processing method and electronic equipment
CN202210910503.7 2022-07-29

Publications (2)

Publication Number Publication Date
WO2024022171A1 true WO2024022171A1 (en) 2024-02-01
WO2024022171A9 WO2024022171A9 (en) 2024-03-14

Family

ID=89705380

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/107943 WO2024022171A1 (en) 2022-07-29 2023-07-18 Signal processing method, and electronic device

Country Status (2)

Country Link
CN (1) CN117518147A (en)
WO (1) WO2024022171A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5453932A (en) * 1994-01-12 1995-09-26 Advanced Grade Technology, Inc. Device and method for detecting and elimination of spurious ultrasonic ranging echoes
CN112313529A (en) * 2019-11-05 2021-02-02 深圳市大疆创新科技有限公司 Co-channel interference suppression method, chirp continuous wave radar, mobile platform, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5453932A (en) * 1994-01-12 1995-09-26 Advanced Grade Technology, Inc. Device and method for detecting and elimination of spurious ultrasonic ranging echoes
CN112313529A (en) * 2019-11-05 2021-02-02 深圳市大疆创新科技有限公司 Co-channel interference suppression method, chirp continuous wave radar, mobile platform, and storage medium

Also Published As

Publication number Publication date
CN117518147A (en) 2024-02-06
WO2024022171A9 (en) 2024-03-14

Similar Documents

Publication Publication Date Title
WO2021047435A1 (en) Electronic device and sensor control method
WO2021013134A1 (en) Method for controlling lifting of camera and electronic device
EP4024168A1 (en) Hand gesture interaction method and apparatus, and terminal device
US20240073305A1 (en) Touchscreen, Electronic Device, and Display Control Method
WO2021052410A1 (en) Application management method and apparatus
WO2021104015A1 (en) Method for single hand operation and electronic apparatus
WO2020221054A1 (en) Touch method, and electronic apparatus
WO2021073448A1 (en) Picture rendering method and device, electronic equipment and storage medium
WO2021190314A1 (en) Sliding response control method and apparatus of touch screen, and electronic device
WO2021180085A1 (en) Sound pickup method and apparatus and electronic device
EP4171135A1 (en) Device control method, and related apparatus
US20240105114A1 (en) Always On Display Method and Mobile Device
EP4195836A1 (en) Method and apparatus for determining minimum slot offset value
EP4132202A1 (en) Data downloading method and apparatus, and terminal device
WO2023273530A1 (en) Stylus detection method, apparatus, and terminal device
WO2024022171A1 (en) Signal processing method, and electronic device
WO2020077508A1 (en) Dynamic frequency adjustment method for internal memory, and electronic apparatus
US20230350631A1 (en) Projection display method and electronic device
US9326120B2 (en) Communication apparatus and communication control method
WO2023169448A1 (en) Method and apparatus for sensing target
WO2024061015A1 (en) Signal processing method and electronic device
CN115016629B (en) Method and device for preventing false touch
WO2021046696A1 (en) Antenna switching method and apparatus
WO2023226645A9 (en) Communication method, communication system, and electronic device
WO2023207715A1 (en) Screen-on control method, electronic device, and computer-readable storage medium

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: 23845383

Country of ref document: EP

Kind code of ref document: A1