WO2024061015A1 - Signal processing method and electronic device - Google Patents

Signal processing method and electronic device Download PDF

Info

Publication number
WO2024061015A1
WO2024061015A1 PCT/CN2023/117503 CN2023117503W WO2024061015A1 WO 2024061015 A1 WO2024061015 A1 WO 2024061015A1 CN 2023117503 W CN2023117503 W CN 2023117503W WO 2024061015 A1 WO2024061015 A1 WO 2024061015A1
Authority
WO
WIPO (PCT)
Prior art keywords
ranging
signal
ranging sensor
period
sensor
Prior art date
Application number
PCT/CN2023/117503
Other languages
French (fr)
Chinese (zh)
Other versions
WO2024061015A9 (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 WO2024061015A1 publication Critical patent/WO2024061015A1/en
Publication of WO2024061015A9 publication Critical patent/WO2024061015A9/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
    • G01S1/00Beacons or beacon systems transmitting signals having a characteristic or characteristics capable of being detected by non-directional receivers and defining directions, positions, or position lines fixed relatively to the beacon transmitters; Receivers co-operating therewith
    • 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/41Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section
    • 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/539Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S15/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section
    • 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/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 devices to detect target location or distance. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. Its working principle is to emit a signal of a certain frequency and receive the reflected signal that is reflected back when it encounters the target. By calculating the phase difference or time difference between the sent and received signals, You can determine the distance between the ranging sensor and the target.
  • the ranging sensor After the ranging sensor receives the signal, it cannot distinguish whether the signal is a reflected signal of the signal emitted by itself or a signal emitted by other ranging sensors. Therefore, when there are multiple ranging sensors emitting signals with the same frequency in a certain space, co-frequency interference is likely to occur, resulting in large errors in ranging results.
  • 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 an interference signal at a first moment through the ranging sensor; controlling the ranging sensor to The second moment processes the signal according to the first ranging period, wherein the time length between the second moment and the first moment is equal to the time length used to transmit signals and receive signals in the first ranging period, and the Processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference.
  • the electronic device including the ranging sensor detects an interference signal through the ranging sensor at the first moment, it can be determined that there is an interfering ranging sensor that generates co-frequency interference to the ranging sensor.
  • the signal is processed according to the first ranging cycle, so that the interference signal from the interfering ranging sensor It will not affect the normal reception of the signal emitted by the ranging sensor. That is, the ranging sensor is dynamically allocated access to the physical channel time slot according to the time when the interference signal is detected by the ranging sensor, thereby being able to suppress multiple measurements. co-frequency interference between sensors.
  • the embodiment of the present application dynamically allocates time slots without fixing the time slot interval, making the time slot division flexible, thereby increasing the number of ranging sensors that can exist in a space and emitting signals with the same frequency.
  • Time slots are reallocated to the ranging sensor according to changes in the interfering ranging sensor.
  • the method provided by the embodiment of the present application does not require clock synchronization between multiple ranging sensors.
  • an electronic device including a ranging sensor when it detects an interference signal through the ranging sensor at the first moment, it can: control the ranging sensor to process the signal according to the first ranging cycle. Before, receiving at least one signal through the ranging sensor; determining that the first signal received at the first time among the at least one signal is the interference signal, wherein the first time is later than the at least The moment of reception of other signals within a signal.
  • the electronic device including the ranging sensor receives at least one signal through the ranging sensor before controlling the ranging sensor to process the signal according to the first ranging cycle, it can be determined that the ranging sensor receives At least one signal is not the signal emitted by the ranging sensor that is reflected back when it encounters the target, but interferes with the signal emitted by the ranging sensor, and then it is determined that there is at least one interfering ranging sensor that causes co-frequency interference to the ranging sensor. sensor. It can also be determined that the first signal received at the first moment among the at least one signal (that is, the latest received signal) is an interference signal, and then the interference ranging sensor that transmits the first signal is determined to be the reference interference measurement sensor of the ranging sensor.
  • each ranging sensor only needs to avoid the same-frequency interference of the corresponding reference interference ranging sensor, and can avoid other interference.
  • Co-channel interference between ranging sensors thereby being able to suppress co-channel interference between multiple ranging sensors.
  • the electronic device including the ranging sensor detects the interference signal at the first moment through the ranging sensor.
  • the first ranging period may also be determined according to the second ranging period of the interfering ranging sensor that emits the interference signal, wherein the first ranging period is used to obtain ranging results and detection.
  • the duration of the interference signal is equal to the duration used to obtain the ranging result in the second ranging period.
  • the electronic device may determine based on the second ranging cycle of the reference interfering ranging sensor.
  • the first ranging period of the ranging sensor makes the time period used to obtain ranging results and detect interference signals in the first ranging period of the ranging sensor equal to the second ranging period of the reference interference ranging sensor.
  • the length of time to obtain the ranging results ensures that the length of the ranging cycle of the ranging sensor and the reference interference ranging sensor is consistent, and that the ranging sensor can also detect the interference signal when processing the signal according to the ranging cycle, so that it can pass subsequent processing Suppress co-channel interference between multiple ranging sensors.
  • an electronic device including a ranging sensor when it detects an interference signal through the ranging sensor at the first moment, it can: control the ranging sensor to process the signal according to the first ranging cycle.
  • the second signal is received by the ranging sensor at the first time, it is determined that the second signal is the interference signal, wherein the first time is the time used in the first ranging period. at any time when interfering signals are detected.
  • the ranging sensor is used to detect the interference signal at any time in the first ranging cycle. After receiving the first signal, it can be determined that the first signal received by the ranging sensor is not the signal emitted by the ranging sensor that is reflected back when it encounters the target, but a signal emitted by the interfering ranging sensor, that is, it is determined
  • the first signal is an interference signal, and then it is determined that the reference interference ranging sensor of the ranging sensor has not changed. According to the moment when the ranging sensor detects the interference signal emitted by the reference interference ranging sensor, the ranging sensor can be allocated in real time. time slot of the next ranging cycle, thereby suppressing co-channel interference between multiple ranging sensors.
  • the electronic device including the ranging sensor when it detects an interference signal at the first moment through the ranging sensor, it may also: control the ranging sensor to process according to the first ranging cycle. signal, if the second signal is not received by the ranging sensor at the first moment, control the ranging sensor to stop processing the signal according to the first ranging cycle, and pass the ranging sensor Receive at least one signal; determine that a third signal in the at least one signal received at the third time is the interference signal, wherein the third time is later than the reception of other signals in the at least one signal. time; control the ranging sensor to process signals according to the first ranging cycle at the fourth time, wherein the time length between the fourth time and the third time is equal to the time used in the first ranging cycle. The duration of transmitting and receiving signals.
  • the ranging sensor is used to detect the interference signal at any time in the first ranging cycle. If the first signal is not received, it can be determined that the interfering ranging sensor that generates co-frequency interference to the ranging sensor has changed, and then it can be determined that the interfering ranging sensor that emits the third signal is the new reference interference measuring sensor of the ranging sensor.
  • distance sensor according to the moment when the distance measurement sensor detects the interference signal emitted by the new reference interference distance sensor, it allocates the time slot of the next distance measurement cycle to the distance measurement sensor in real time, thereby suppressing the interference between multiple distance measurement sensors. co-channel interference.
  • the time period used to detect interference signals in the first ranging period is equal to four times the maximum clock offset value of the ranging sensor in one ranging period.
  • the ranging sensor and the interfering ranging sensor that generates co-frequency interference to the ranging sensor may be at the same time. If a clock offset occurs in one direction, the duration used to detect interference signals in the first ranging cycle can be determined as four times the maximum clock offset value of the ranging sensor in a ranging cycle to ensure that it can be detected in the first ranging cycle.
  • the interference signal emitted by the unchanged reference interference ranging sensor is detected at any time during the period used to detect interference signals, so that co-frequency interference between multiple ranging sensors can be suppressed through subsequent processing.
  • the duration between the moment when the interference signal starts to be detected in the first ranging period and the moment when the signal is processed at the end of the first ranging period is equal to the first duration, wherein the first The duration is the sum of twice the maximum clock offset value of the ranging sensor in one ranging cycle and the duration used to transmit signals and receive signals in the first ranging cycle.
  • the electronic device including the ranging sensor can determine the time length between the time when the interference signal starts to be detected in the first ranging period and the time when the signal is processed at the end of the first ranging period, which is the time when the ranging sensor starts to detect the interference signal in a ranging period.
  • the sum of twice the maximum clock offset value in the period and the time used to transmit and receive signals in the first ranging period ensures that the interference signal can be detected at any time in the first ranging period.
  • the unchanged reference interferes with the interference signal emitted by the ranging sensor, thereby being able to suppress co-frequency interference between multiple ranging sensors through subsequent processing.
  • the time period used for transmitting signals in the first ranging period is equal to the time period used for transmitting signals during the second ranging period.
  • the duration of the signal, the duration used to receive the signal in the first ranging period is equal to the duration used to receive the signal in the second ranging period.
  • an electronic device including a ranging sensor may determine that a duration for transmitting or receiving a signal within a first ranging period of the ranging sensor is equal to a reference of the ranging sensor interfering with a second ranging of the ranging sensor.
  • the length of time used to transmit or receive signals within the cycle thereby ensuring that the ranging sensor is consistent with the length of the ranging cycle of the reference interference ranging sensor of the ranging sensor, ensuring that it can be used to detect interference in the first ranging cycle
  • the interference signal emitted by the unchanged reference interference ranging sensor is detected at any moment of the signal, so that the co-frequency interference between multiple ranging sensors can be suppressed through subsequent processing.
  • 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 an interference signal at the first moment
  • the processor is configured to control the ranging sensor to process signals according to a first ranging cycle at a second moment, wherein the duration between the second moment and the first moment is equal to the first ranging period.
  • the processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference.
  • the ranging sensor is configured to detect an interference signal at the first moment in the following manner: before processing the signal according to the first ranging cycle, receive at least one signal; determine the at least one The first signal received at the first time among the signals is the interference signal, wherein the first time is later than the reception time of other signals in the at least one signal.
  • the processor is further configured to determine the first ranging period according to the second ranging period of the interfering ranging sensor that emits the interference signal, wherein the first ranging period The time period used to obtain the ranging result and detect the interference signal in the ranging period is equal to the time period used to obtain the ranging result in the second ranging period.
  • the ranging sensor is used to detect the interference signal at the first moment in the following manner: when processing the signal according to the first ranging cycle, if the first ranging sensor is received at the first moment Two signals, the second signal is determined to be the interference signal, wherein the first time is any time used to detect the interference signal within the first ranging period.
  • the ranging sensor is also configured to stop processing signals according to the first ranging cycle if the second signal is not received at the first moment.
  • the first ranging cycle processes signals and receives at least one signal; determining that the third signal received at the third time among the at least one signal is the interference signal, wherein the third time is later than the The receiving time of other signals in at least one signal; processing the signal according to the first ranging period at a fourth time, wherein the duration between the fourth time and the third time is equal to the first ranging period The length of time used to transmit and receive signals within the cycle.
  • the time period used to detect interference signals in the first ranging period is equal to four times the maximum clock offset value of the ranging sensor in one ranging period.
  • the duration between the moment when the interference signal starts to be detected in the first ranging period and the moment when the signal is processed at the end of the first ranging period is equal to the first duration, wherein the first The duration is the sum of twice the maximum clock offset value of the ranging sensor in one ranging cycle and the duration used to transmit signals and receive signals in the first ranging cycle.
  • the time period used for transmitting signals in the first ranging period is equal to the time period used for transmitting signals during the second ranging period, and the time period used for receiving signals during the first ranging period
  • the duration is equal to the duration used to receive signals in the second ranging period.
  • 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, comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible design of the first aspect.
  • Figure 1 is a schematic diagram of an application scenario of a ranging sensor provided by an embodiment of the present application
  • Figure 2 is a schematic diagram of the working principle of a ranging sensor provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a 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 the co-frequency interference range of a ranging sensor provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a co-frequency interference scenario of a ranging sensor provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of the co-frequency interference principle of a ranging sensor provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of the principle of continuous co-frequency interference of a ranging sensor provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of the ranging cycle of another ranging sensor provided by an embodiment of the present application.
  • Figure 11 is a schematic diagram of the ranging cycle of yet another ranging sensor provided by an embodiment of the present application.
  • Figure 12(1) is a schematic diagram of the interference suppression principle of a ranging sensor provided by an embodiment of the present application.
  • Figure 12(2) is a schematic diagram of the interference suppression principle of a ranging sensor 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 better and more clearly describe and understand the embodiments of the present application, 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 target position or distance. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. The working principle is that a signal of a certain frequency 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. The ranging sensor calculates The phase difference or time difference between the sent and received signals can determine the distance between the ranging sensor and the target.
  • 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 those with touch Laptops with sensitive surfaces (such as touch panels), etc.
  • 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).
  • Figure 1 is a schematic diagram of an application scenario of a ranging sensor provided by an embodiment of the present application.
  • Figure 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 at the smart door lock 1 of door 1, the smart door lock 2 of door 2 and Smart door lock 3 on door 3.
  • 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 the working principle of a ranging sensor provided by an embodiment of the present application.
  • the ranging sensor is an ultrasonic ranging sensor (also called ultrasonic equipment).
  • an ultrasonic signal is transmitted through a transmitting device
  • an ultrasonic signal reflected by the target is received through a receiving device.
  • the ranging result of the target can be obtained.
  • 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 a 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 phase is used for the ranging sensor to receive signals.
  • the ranging sensor can receive signals and record the strength of the received signals.
  • 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 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.
  • Co-frequency interference When electromagnetic waves or ultrasonic waves are used for distance measurement, they do not carry coded information. Therefore, after receiving the signal, the distance sensors cannot distinguish whether the signal is a reflection of the signal emitted by themselves or a signal emitted by other distance sensors.
  • the field of view of the distance sensor that uses electromagnetic waves or ultrasonic waves for distance measurement has a wide coverage range. Therefore, when there are multiple distance sensors with the same signal frequency in a certain space, co-frequency interference is likely to occur.
  • the signal received by the receiving device of any distance sensor may be a reflection of the signal emitted by the transmitting device of the distance sensor, but it may also be a signal emitted by the transmitting device of other distance sensors with the same signal frequency, resulting in a large error in the distance measurement result.
  • the signal frequencies of distance sensor 1, distance sensor 2 and distance sensor 3 are the same, then there will be a serious co-frequency interference problem, and co-frequency interference will frequently wake up the smart door lock to start face recognition, thereby causing the smart door lock to have a reduced battery life.
  • the co-frequency interference range of the ranging sensor is related to the ranging range of the ranging sensor.
  • O is The spatial position of the ranging sensor
  • r is the detection distance of the ranging sensor.
  • the ranging sensor has a co-frequency interference range r max , where r max >2r, other ranging sensors within r max can receive to the signal emitted by the ranging sensor, that is, if there is more than one ranging sensor within r max , there must be the same frequency interference.
  • Figure 6 is a schematic diagram of a co-frequency interference scenario of a ranging sensor provided by an embodiment of the present application. If the ultrasonic signals emitted by ultrasonic equipment 1, ultrasonic equipment 2 and ultrasonic equipment 3 have the same signal frequency, as shown in Figure As shown in 6, r max is the same-frequency interference range of the ultrasonic equipment 1. The signal strength of the ultrasonic signal emitted by the ultrasonic equipment 1 will gradually attenuate as the distance from the ultrasonic equipment 1 increases until it is within the range between the ultrasonic equipment 1 and the ultrasonic equipment 1. It is completely attenuated at a distance of r max .
  • ultrasonic equipment 1 will not cause co-frequency interference to ultrasonic equipment 2 whose distance from ultrasonic equipment 1 is greater than r max , but will interfere with ultrasonic equipment 2 whose distance from ultrasonic equipment 1 is not greater than r max . 3 produces co-channel interference.
  • FIG. 7 is a schematic diagram of the co-frequency interference principle 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. 8 is a schematic diagram of the principle of continuous co-frequency interference of a ranging sensor provided by an 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 8, 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 8). At this time, the ranging sensor 2 is in the receiving stage in the first ranging cycle, then the ranging sensor 2 will The signal emitted by 1 is regarded as the emitted signal of the signal emitted 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 8). At this time, the ranging sensor 2 is in the receiving stage in 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.
  • multiple signal generation modules can be set up in the ranging sensor.
  • the alternative signal can be switched to suppress the same-frequency interference between multiple ranging sensors.
  • This solution requires changing the hardware structure of the ranging sensor and increasing the hardware complexity of the ranging sensor.
  • the ranging sensor can be dynamically allocated access physical channel time slots based on the moment of the interference signal detected by the ranging sensor. Through orderly and dynamic access time slots, it can suppress Co-channel interference between multiple ranging sensors. However, in order to avoid time slot aliasing due to device clock deviation, this solution requires clock synchronization between multiple ranging sensors. However, the clock synchronization algorithm is too complex, which affects the computing power and hardware complexity of the ranging sensors. High requirements. In addition, this solution statically divides time slots.
  • the electronic device including the ranging sensor detects an interference signal at the first moment through the ranging sensor, it can be determined that there is an interfering ranging sensor that causes co-frequency interference to the ranging sensor.
  • the signal is processed according to the first ranging cycle, so that the interference signal from the interfering ranging sensor It will not affect the normal reception of the signal emitted by the ranging sensor. That is, from the perspective of the time domain, the ranging sensor is dynamically allocated access to physical channel time slots based on the moment of the interference signal detected by the ranging sensor.
  • Multiple ranging can be avoided through orderly and dynamic access time slots. Co-frequency interference between sensors. Moreover, the embodiment of the present application dynamically allocates time slots without fixing the time slot interval, making the time slot division flexible, thereby increasing the number of ranging sensors that can exist in a space and emitting signals with the same frequency. Time slots are reallocated to the ranging sensor according to changes in the interfering ranging sensor. In addition, the method provided by the embodiment of the present application does not require clock synchronization between multiple ranging sensors.
  • 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 the USB standard specification, and may 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 charging management module 140 and the 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.
  • 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 (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 emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED 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 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 .
  • the components shown in FIG9 do not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may also include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently.
  • the combination/connection relationship between the components in FIG9 may also be adjusted and modified.
  • the signal processing method provided by the embodiment of the present application may include two stages: interference detection and interference suppression. The progress of each stage is described below. Line introduction.
  • the ranging sensor may have two states: detection state and ranging state.
  • the ranging sensor in the detection state may not transmit signals but only receive signals in the corresponding detection period.
  • the detection period can be used for the ranging sensor to receive signals.
  • the ranging sensor can receive signals and record the strength of the received signals.
  • the ranging sensor in the ranging state can transmit signals, receive signals, obtain ranging results, and detect interference signals within the corresponding ranging period.
  • the ranging period includes the ranging period in the normal mode and the ranging period in the interference mode.
  • the ranging cycle in the normal mode can be used for the ranging sensor to transmit signals, receive signals and obtain ranging results.
  • a ranging cycle can include a transmitting phase, a receiving phase and a data processing phase. these three stages.
  • the ranging sensor can emit signals.
  • the ranging sensor receives the signal and also records the strength of the received signal.
  • the ranging sensor may neither transmit nor receive signals, may process the signals received in the receiving stage to obtain ranging results, or may not process the signals received in the receiving stage. Therefore, this data processing stage can also be called an idle stage.
  • the following description takes the data processing stage as an example.
  • the ranging period in the interference mode can be used for the ranging sensor to transmit signals, receive signals, obtain ranging results, and detect interference signals.
  • Figure 10 is a diagram of the ranging period of another ranging sensor provided by an embodiment of the present application. Schematically, as shown in Figure 10, a ranging cycle may include four stages: a transmitting stage, a receiving stage, a data processing stage, and an interference detection stage.
  • the interference detection phase divides the data processing phase into two parts.
  • the ranging sensor receives the signal and records the strength of the received signal.
  • the duration of the data processing phase and the detection interference phase in the ranging cycle in the interference mode shown in Figure 10 is equal to the duration of the data processing phase in the ranging cycle in the normal mode shown in Figure 3 .
  • the electronic device including the ranging sensor as shown in Figure 9 can control the ranging sensor before controlling the ranging sensor to process the signal according to the ranging period in the normal mode or the ranging period in the interference mode.
  • the sensor enters the detection state and maintains one or more detection cycles.
  • 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 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.
  • the electronic device can determine that there is no measurement in the environment that causes co-frequency interference to the ranging sensor. distance sensor, which can then control the ranging sensor to enter the ranging state and process the signal according to the ranging cycle in the normal mode; or, if the ranging sensor receives at least one signal within one or more detection cycles, and the received If the strength of at least one signal is not less than the set threshold, the electronic device can determine that there is at least one ranging sensor in the environment that generates co-frequency interference to the ranging sensor, and then can control the ranging sensor to enter the ranging state according to the interference mode.
  • the ranging cycle processes the signal.
  • a ranging sensor that generates co-frequency interference to the ranging sensor may be called an interference ranging sensor.
  • the electronic device may also select a reference interference ranging sensor of the ranging sensor from the above-mentioned at least one interference ranging sensor, wherein the sequence of the reference interference ranging sensor starting to process the signal according to the ranging cycle of the reference interference ranging sensor is in the sequence. The previous digit of the ranging sensor. Specifically, the electronic device may determine that the first signal received at the first time among the above-mentioned at least one signal is an interference signal, wherein the first time is later than the reception time of other signals in the at least one signal, that is, the first signal is the latest signal. The signal received later is then determined to be the interference ranging sensor that emits the first signal as the reference interference ranging sensor of the ranging sensor.
  • the electronic device may also determine the ranging period in the interference mode of the ranging sensor based on the ranging period in the normal mode of the reference interference ranging sensor, wherein the ranging period in the interference mode of the ranging sensor is used for
  • the duration of transmitting signals is equal to the duration used to transmit signals in the normal mode during the ranging period of the reference interference ranging sensor, and the duration used to receive signals during the ranging period in the interference mode of the ranging sensor is equal to the reference interference ranging.
  • the time used to obtain ranging results and detect interference signals during the ranging period of the ranging sensor in the interference mode is equal to the ordinary time of the reference interference ranging sensor.
  • the length of time used to obtain ranging results within the ranging cycle in mode can query the model of the reference interference ranging sensor, and then obtain the reference interference ranging sensor corresponding to the model of the reference interference ranging sensor, which is used to transmit signals, receive signals, and obtain ranging during the ranging period.
  • the duration of the result for example, the model of the reference interference ranging sensor is model A, and the duration for transmitting signals, receiving signals, and obtaining ranging results in the ranging cycle corresponding to model A are 6ms, 14ms, and 130ms respectively; or, You can also query the length of the ranging cycle of the reference interference ranging sensor, and then obtain the range period of the reference interference ranging sensor that corresponds to the length of the ranging cycle of the reference interference ranging sensor for transmitting signals and receiving signals. And the time to obtain the ranging results.
  • the length of the ranging period of the reference interference ranging sensor is 100ms, and the ranging period corresponding to 100ms is used to transmit signals,
  • the time to receive the signal and obtain the ranging results is 2ms, 8ms and 90ms respectively.
  • the embodiments of the present application do not impose any limitation on this.
  • the ranging sensor 1 and the ranging sensor 2 in Figure 1 are respectively arranged on the smart door lock 1 of the household door 1 and the smart door lock 2 of the household door 2, and the ranging sensor 1 and the ranging sensor 2 have the same signal frequency, which is 75KHz, for example.
  • the duration of the ranging cycle of the ranging sensor 1 in the normal mode is 100ms, and the duration for transmitting signals, receiving signals and obtaining ranging results in the ranging cycle of the ranging sensor 1 in the normal mode is 2ms, 8ms and 90ms respectively.
  • Smart door lock 1 needs to detect whether someone is approaching within a preset distance around smart door lock 1.
  • Smart door lock 1 can control the power on of distance sensor 1, and after controlling the power on of distance sensor 1, control the distance sensor 1 to enter. Detection status and maintain a detection period such as 10s. For example, if the ranging sensor 1 does not receive a signal within these 10 seconds, the smart door lock 1 can determine that there is no interference with the ranging sensor 1 in the environment, and then the smart door lock 1 can control the ranging sensor 1 to enter the ranging state. And maintain one or more ranging cycles in the normal mode, and determine whether anyone is approaching within a preset distance around the smart door lock 1 based on the ranging results of the ranging sensor 1 .
  • the smart door lock 2 needs to detect whether someone is approaching within a preset distance around the smart door lock 2.
  • the smart door lock 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 Enter the detection state and maintain a detection period such as 10s.
  • the ranging sensor 2 received three signals within these 10 seconds, namely signal 0 received at time T 0 , signal 1 received at time T 1 , and signal 2 received at time T 2 .
  • the smart door lock 2 can determine that signal 0, signal 1 and signal 2 are signals emitted by the same ranging sensor, and then It can be determined that there is one interfering ranging sensor of ranging sensor 2.
  • the time between T 0 and T 1 is not equal to the time between T 1 and T 2 , then the smart door lock 2 can determine that signal 0, signal 1 and signal 2 are signals emitted by different ranging sensors, Furthermore, it can be determined that there are three interfering ranging sensors of the ranging sensor 2 .
  • the smart door lock 2 determines that there is an interfering ranging sensor of the ranging sensor 2
  • the smart door lock can determine that the signal 2 received at time T2 is an interfering signal, and further can determine that the interfering ranging sensor that transmits the signal 2 is
  • the reference of the ranging sensor 2 interferes with the ranging sensor, and based on the reference of the ranging sensor 2 interfering with the ranging cycle of the ranging sensor, the ranging cycle of the ranging sensor 2 in the interference mode is determined.
  • the smart door lock can determine that the length of the ranging cycle of the ranging sensor 2 in the interference mode is 2 ms, for The duration of receiving the signal is 8ms, and the duration of obtaining the ranging results and detecting the interference signal is 90ms.
  • the smart door lock 2 can control the ranging sensor 2 to enter the ranging state and maintain one or more ranging cycles in the interference mode, and determine whether there is anyone within a preset distance around the smart door lock 2 based on the ranging results of the ranging sensor 2 near.
  • the electronic device determines that there is an interfering ranging sensor of the ranging sensor in the environment, 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, it can be based on the The moment when the interfering signal is detected by the ranging sensor, the access physical channel time slot is dynamically allocated to the ranging sensor, that is, the starting time of signal processing is dynamically allocated to multiple ranging sensors according to the ranging cycle in the interference mode, so that multiple ranging sensors can The time when each ranging sensor transmits and receives signals is staggered, thereby suppressing co-channel interference between multiple ranging sensors.
  • the electronic device after the above-mentioned electronic device enters the detection state through the ranging sensor and detects the interference signal emitted by the reference interference ranging sensor at the first moment, it can control the ranging sensor to enter the ranging state at the second moment according to
  • the ranging period of the ranging sensor in the interference mode processes the signal, wherein the time length between the second moment and the first moment is equal to the distance used for transmitting signals and receiving signals during the ranging period of the ranging sensor in the interference mode. duration.
  • the electronic device controls the ranging sensor to enter the ranging state and processes the signal according to the ranging cycle in the interference mode of the ranging sensor, it can determine whether the second signal is received by the ranging sensor at the third moment, The third time is any time used to detect interference signals within the ranging period of the ranging sensor in the interference mode. If the second signal is received by the ranging sensor at the third moment, the electronic device can determine that the interference to the ranging sensor has not changed, determine that the second signal is an interference signal, and control the ranging sensor to The signal is processed at the fourth moment according to the ranging period in the interference mode of the ranging sensor, wherein the time length between the fourth moment and the third moment is equal to the ranging period used to transmit the signal in the interference mode of the ranging sensor. and the duration of receiving the signal;
  • the electronic device may determine that the interference ranging sensor of the ranging sensor has changed, and it is necessary to re-determine the reference interference ranging of the ranging sensor. sensor. Specifically, the electronic device can control the ranging sensor to exit the ranging state, stop processing signals according to the ranging cycle in the interference mode of the ranging sensor, and control the ranging sensor to re-enter the detection state and maintain one or more detection cycles. .
  • the electronic device can determine to The third signal received at the fifth time among the less than one signal is an interference signal, wherein the fifth time is later than the reception time of other signals among the at least one signal, that is, the third signal is the latest received signal and will be transmitted.
  • the third signal interferes with the ranging sensor as a new reference of the ranging sensor and interferes with the ranging sensor.
  • the electronic device may also control the ranging sensor to perform ranging according to the interference mode of the ranging sensor at the sixth moment after the ranging sensor detects the interference signal emitted by the new reference interference ranging sensor at the fifth moment.
  • the signal is processed periodically, wherein the duration between the sixth moment and the fifth moment is equal to the duration used for transmitting and receiving signals within the ranging period in the interference mode of the ranging sensor.
  • the electronic device enters the detection state through the ranging sensor and detects the interference signal emitted by the reference interference ranging sensor at the first moment, and controls the ranging sensor to enter the ranging state at the second moment according to the measurement.
  • the electronic device can detect the interference signal emitted by the reference interference ranging sensor again at the seventh moment through the ranging sensor.
  • the duration between the seventh moment and the first moment is equal to the duration of the ranging cycle in the interference mode of the ranging sensor (that is, the duration of the ranging cycle of the ranging sensor's reference interference ranging sensor).
  • the seventh moment The length of time between the end of the ranging period of the ranging sensor in the interference mode and the time when the signal is processed is equal to the length of time used for transmitting and receiving signals during the ranging period of the ranging sensor in the interference mode.
  • the ranging sensor and the reference interference ranging sensor may have clock offsets in the same direction.
  • is the maximum clock offset value of the ranging sensor in a ranging cycle.
  • the clock offset The range of may be (-2 ⁇ T, 2 ⁇ T), so in fact the electronic device can detect the interference signal emitted by the reference interference ranging sensor again within the time range of adding 2 ⁇ T or subtracting 2 ⁇ T through the ranging sensor at the seventh moment.
  • the electronic device may determine that the duration used to detect the interference signal within the ranging cycle in the interference mode of the ranging sensor is equal to four times the maximum clock offset value of the ranging sensor within one ranging cycle, and the ranging sensor
  • the time length between the time when the interference signal starts to be detected in the ranging cycle in the interference mode and the time when the ranging cycle in the interference mode of the ranging sensor ends processing the signal is equal to the first time length, where the first time length is the measurement time.
  • FIG. 11 is a schematic diagram of the ranging cycle of another ranging sensor provided by the embodiment of the present application.
  • 4 ⁇ T is the time period during which the interference signal starts to be detected in the ranging cycle of the ranging sensor in the interference mode.
  • the time when the interference signal starts to be detected in the ranging cycle of the ranging sensor in the interference mode t start T-(S+R+2 ⁇ T), where T is the end of the signal processing of the ranging cycle in the interference mode of the ranging sensor
  • S is the time period for transmitting signals in the ranging period of the ranging sensor in the interference mode
  • R is the time period for receiving signals during the ranging period of the ranging sensor in the interference mode
  • is the measuring period.
  • FIG. 12(1) and FIG. 12(2) are schematic diagrams of the interference suppression principle of a ranging sensor provided by an embodiment of the present application. As shown in FIG. 12(1) and FIG. 12(2), FIG. 12(1) and the ranging sensor 1, the ranging sensor 2 and the ranging sensor 3 in Figure 12(2) have the same signal frequency, and the signal frequency is, for example, 75KHz. Initially, ranging sensor 1, ranging sensor 2 and ranging sensor 3 are not powered on.
  • the electronic device for example, the electronic device 1 including the ranging sensor 1 controls the ranging sensor 1 to enter the detection state and maintain a detection period. For example, if the ranging sensor 1 does not receive a signal within the detection period, the electronic device 1 can determine that there is no interfering ranging sensor in the environment, and then the electronic device 1 can control the ranging sensor 1 to enter the ranging state and Maintain one or more ranging periods T1 in normal mode.
  • the time period used to transmit signals in the ranging period T1 is S
  • the time period used in the ranging period T1 to receive signals is R
  • the time period used in the ranging period T1 to obtain the ranging results is N.
  • the electronic device 1 can control the ranging sensor 1 to transmit the signal a at time A within the first ranging period T1 of the ranging sensor 1, and to transmit the signal b at time B within the second ranging period T1 of the ranging sensor 1,
  • the signal c is emitted at time C within the third ranging period T1 of the ranging sensor 1 .
  • the electronic device e.g., electronic device 2
  • the electronic device controls the ranging sensor 2 to enter a detection state and maintain a detection cycle.
  • the ranging sensor 2 receives three signals in the detection cycle, namely, signal a received at time A1, signal b received at time B1, and signal c received at time C1.
  • the electronic device 2 can determine that the signals a, b, and c are signals emitted by the same ranging sensor, such as the ranging sensor 1, and further determine that there is an interfering ranging sensor of the ranging sensor 2.
  • the electronic device 2 can also determine that the signal c received at time C1 is an interference signal, and the interfering ranging sensor, such as the ranging sensor 1, that emits the signal c is a reference interfering ranging sensor of the ranging sensor 2, and determine the ranging cycle T2 of the ranging sensor 2 in the interference mode according to the ranging cycle T1 of the reference interfering ranging sensor of the ranging sensor 2, such as the ranging sensor 1 in the normal mode.
  • the duration for transmitting the signal in the ranging cycle T2 is S
  • the duration for receiving the signal is R
  • the duration for obtaining the ranging result and detecting the interference signal is N
  • the duration for detecting the interference signal is 4 ⁇ .
  • the electronic device 2 can also control the ranging sensor 2 to detect the interference signal at time D1 according to the ranging sensor.
  • the electronic device 2 processes the signal during the ranging period T2 in the interference mode of the ranging sensor 2, wherein the duration between the time D1 and the time C1 is equal to the duration for transmitting and receiving signals in the ranging period T2 in the interference mode of the ranging sensor 2, such as S+R.
  • the electronic device 2 can control the ranging sensor 2 to transmit the signal d at the time D1 in the first ranging period T2 of the ranging sensor 2.
  • the electronic device (for example, the electronic device 3 ) including the ranging sensor 3 controls the ranging sensor 3 to enter a detection state and maintain a detection period.
  • the ranging sensor 3 receives four signals during the detection period, including signal a received at time A2, signal b received at time B2, signal c received at time C2, and signal received at time D2.
  • the signal d arrives.
  • the duration between A2 moment and B2 moment is equal to the duration between B2 moment and C2 moment
  • the duration between A2 moment and B2 moment is equal to the duration between B2 moment and D2 moment
  • the duration between A2 moment and C2 moment is equal to the duration between B2 moment and C2 moment.
  • the electronic device 2 can determine that signal a, signal b and signal c are the same ranging sensor
  • the signal emitted by the ranging sensor 1 the signal d is the signal emitted by other ranging sensors such as the ranging sensor 2, and then it can be determined that there are two interfering ranging sensors of the ranging sensor 3.
  • the electronic device 3 can also determine that the signal d received at time D2 is an interference signal, and the interference ranging sensor that transmits the signal d, such as the ranging sensor 2, is the reference interference ranging sensor of the ranging sensor 3, and according to the interference ranging sensor of the ranging sensor 3
  • the ranging period T3 in the interference mode of the ranging sensor 3 is determined with reference to the ranging period T2 in the interference mode of the interfering ranging sensor, such as the ranging sensor 2 .
  • the time period for transmitting signals in the ranging period T3 is S
  • the time period for receiving signals is R
  • the time period for obtaining ranging results and detecting interference signals is N
  • the time period for detecting interference signals is 4 ⁇ T.
  • the electronic device 3 can also control the ranging sensor 3 to process the signal according to the ranging period T3 in the interference mode of the ranging sensor 3 at the E2 moment, where the time length between the E2 moment and the D2 moment is equal to the ranging sensor 3 in the interference mode.
  • the duration used for transmitting signals and receiving signals within the ranging period T3 is, for example, S+R.
  • the electronic device 3 can control the ranging sensor 3 to transmit the signal e at time E2 within the first ranging period T3 of the ranging sensor 3 .
  • the electronic device 2 controls the ranging sensor 2 to process the signal according to the ranging period T2 in the interference mode of the ranging sensor 2 at time D1
  • the electronic device 3 controls the ranging sensor 3 to process the signal according to the ranging period T3 in the interference mode of the ranging sensor 3 at time E2
  • the signal transmitted by the ranging sensor 1 reaches the ranging sensor 2 after the time length dt12
  • the time when the signal transmitted by the ranging sensor 1 reaches the ranging sensor 2 is any time in the 4 ⁇ interval used to detect the interference signal in the ranging period T2 in the interference mode of the ranging sensor 2, and the ranging sensor is in the Rx state where the signal can be received.
  • the time when the signal transmitted by the ranging sensor 1 reaches the ranging sensor 3 is not any time in the 4 ⁇ interval used to detect the interference signal in the ranging period T3 in the interference mode of the ranging sensor 3, and the ranging sensor is not in the Rx state where the signal can be received.
  • the distance sensor 2 only receives the signal transmitted by the distance sensor 1 in the 4 ⁇ interval used for detecting interference signals in the distance measurement period T2, and does not receive the signal transmitted by the distance sensor 1 in the interval used for receiving signals in the distance measurement period T2, and the distance sensor 3 does not receive the signal transmitted by the distance sensor 1, that is, the distance sensor 1 does not generate co-frequency interference to the distance sensor 2 and the distance sensor 3.
  • the electronic device 2 can control the distance sensor 2 to wait for the duration S+R of transmitting and receiving signals in the distance measurement period T2 under the interference mode of the distance sensor 2.
  • the signal emitted by the ranging sensor 2 reaches the ranging sensor 1 after a time period of dt 21 , and reaches the ranging sensor 3 after a time period of dt 23.
  • dt 12 dt 21 .
  • the moment when the signal emitted by the ranging sensor 2 reaches the ranging sensor 1 is not any moment used to receive the signal during the ranging period T2 in the normal mode of the ranging sensor 1, and the ranging sensor is not in the Rx state that can receive the signal.
  • the moment when the signal emitted by the ranging sensor 2 reaches the ranging sensor 3 is any moment in the 4 ⁇ T interval for detecting interference signals within the ranging period T3 in the interference mode of the ranging sensor 3.
  • the ranging sensor is in a position where it can receive the signal. Rx status. Therefore, the ranging sensor 3 only receives the signal emitted by the ranging sensor 2 in the 4 ⁇ T area used to detect interference signals in the ranging period T3, and does not receive the ranging sensor 2 in the area used to receive signals in the ranging period T3.
  • the ranging sensor 1 did not receive the signal emitted by the ranging sensor 2, that is, the ranging sensor 2 did not cause co-channel interference to the ranging sensor 1 and the ranging sensor 3.
  • the electronic device 3 can control the distance sensor 3 to wait for the duration of the distance measurement period T3 in the interference mode of the distance measurement sensor 3 for transmitting and receiving signals.
  • the signal is emitted after S+R.
  • the signal emitted by the ranging sensor 3 reaches the ranging sensor 1 after a time period of dt 31 , and reaches the ranging sensor 3 after a time period of dt 32.
  • the moment when the signal emitted by the ranging sensor 3 reaches the ranging sensor 1 is not any moment used to receive the signal in the ranging period T2 of the ranging sensor 1 in the normal mode, and the ranging sensor is not in the Rx state that can receive the signal.
  • the above scheme dynamically divides a ranging cycle into three time slots and allocates different time slots to ranging sensor 1, ranging sensor 2 and ranging sensor 3, that is, the dynamic range is ranging sensor 1, ranging sensor 1, ranging sensor 2 and ranging sensor 3.
  • Sensing 2 and ranging sensor 3 allocate the starting time of signal processing according to the ranging cycle in interference mode, so that the time of transmitting and receiving signals of ranging sensor 1, ranging sensor 2 and ranging sensor 3 is staggered, thereby suppressing Co-channel interference between ranging sensor 1, ranging sensor 2 and ranging sensor 3.
  • the dynamic range is ranging sensor 1, ranging sensor 2 and ranging sensor 3, since the interval between each time slot does not need to be limited, the number of time slots that can be divided in a ranging cycle increases, and then a The number of ranging sensors that emit signals with the same frequency that can exist in the space also increases.
  • the electronic device can determine the number m of ranging sensors that can exist in a space and emit signals with the same frequency, specifically:
  • tc is the average time for the signal emitted by each ranging sensor to reach other devices.
  • the non-ideal situation tc is related to the co-frequency interference range r max of each ranging sensor.
  • the ranging period of each ranging sensor is T, as shown in Figure 12(2).
  • the occupied time slot is: 2(S+R)+2dt 12 ; if there are three ranging sensors in a space that emit signals with the same frequency, the occupied time slots of these three ranging sensors are: 3(S+R )+dt 12 +dt 23 +dt 31 , and so on, if there are 4 ranging sensors with the same frequency of emitted signals in a space, the time slots occupied by these 4 ranging sensors are: 4(S+R) +dt 12 +dt 23 +dt 34 +dt 41 .
  • this application also provides a signal processing method.
  • the method may be performed by the electronic device including the ranging sensor shown in FIG. 9 .
  • Figure 13 is a flow chart of the signal processing method.
  • the electronic device detects the interference signal at the first moment through the ranging sensor.
  • the electronic device can control the ranging sensor to enter the detection state and maintain one or more detection periods before controlling the ranging sensor to process the signal according to the ranging period in the normal mode or the ranging period in the interference mode. If the ranging sensor is in If a signal is received within one or more detection cycles, and the strength of the received signal is not less than the set threshold, the ranging sensor can determine that the received signal is an interference signal. Alternatively, when controlling the ranging sensor to enter the ranging state and processing the signal according to the ranging cycle in the interference mode of the ranging sensor, the electronic device can determine that the ranging sensor is used in the ranging cycle in the interference mode of the ranging sensor. If a signal is received at any time when the interference signal is detected, the ranging sensor can determine that the received signal is an interference signal.
  • S1302 The electronic device controls the ranging sensor to process the signal according to the first ranging cycle at the second moment.
  • the duration between the second moment and the first moment is equal to the duration used for transmitting and receiving signals in the first ranging period
  • the processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference. item.
  • 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. Memory 1401 is available To store the implementation program of the embodiment of this application.
  • the memory 1401 may also store a network communication program that may 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 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.

Landscapes

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

Abstract

The present application discloses a signal processing method and an electronic device. The method is applied to an electronic device comprising a ranging sensor. The method comprises: detecting an interference signal at a first moment by means of the ranging sensor; and controlling the ranging sensor to process the signal at a second moment according to a first ranging period, wherein a duration between the second moment and the first moment is equal to a duration for transmitting the signal and receiving the signal in the first ranging period, and the processing comprises one or more of transmitting, receiving, obtaining a ranging result, or detecting interference, so that same-frequency interference among a plurality of ranging sensors is suppressed.

Description

一种信号处理方法与电子设备A signal processing method and electronic device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年09月22日提交中国专利局、申请号为202211160335.0、申请名称为“一种信号处理方法与电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on September 22, 2022, with the application number 202211160335.0 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 devices to detect target location or distance. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. Its working principle is to emit a signal of a certain frequency and receive the reflected signal that is reflected back when it encounters the target. By calculating the phase difference or time difference between the sent and received signals, You can determine the distance between the ranging sensor and the target.
但是测距传感器在接收信号之后,无法区分该信号是自身发射的信号的反射信号,还是其他测距传感器发射的信号。因此当某个空间内存在多个所发射的信号的频率相同的测距传感器时,很容易出现同频干扰,导致测距结果误差较大。However, after the ranging sensor receives the signal, it cannot distinguish whether the signal is a reflected signal of the signal emitted by itself or a signal emitted by other ranging sensors. Therefore, when there are multiple ranging sensors emitting signals with the same frequency in a certain space, co-frequency interference is likely to occur, resulting in large errors in ranging results.
发明内容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 an interference signal at a first moment through the ranging sensor; controlling the ranging sensor to The second moment processes the signal according to the first ranging period, wherein the time length between the second moment and the first moment is equal to the time length used to transmit signals and receive signals in the first ranging period, and the Processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference.
在该方法中,如果包括测距传感器的电子设备通过该测距传感器在第一时刻检测到干扰信号,则可以确定存在对该测距传感器产生同频干扰的干扰测距传感器。通过控制该测距传感器在与第一时刻间隔第一测距周期内用于发射信号和接收信号的时长的第二时刻,根据第一测距周期处理信号,使得来自干扰测距传感器的干扰信号不会影响到该测距传感器正常接收自身所发射的信号,即根据该测距传感器检测到的干扰信号的时刻为该测距传感器进行动态分配接入物理信道时隙,从而能够抑制多个测距传感器之间的同频干扰。并且,本申请实施例动态分配时隙,不固定时隙间隔,使得时隙分割变化灵活,从而使得在一个空间内可存在的所发射的信号的频率相同的测距传感器数量变多,还可以根据干扰测距传感器的变化为该测距传感器重新分配时隙,另外,本申请实施例提供的方法不需要多个测距传感器之间进行时钟同步。In this method, if the electronic device including the ranging sensor detects an interference signal through the ranging sensor at the first moment, it can be determined that there is an interfering ranging sensor that generates co-frequency interference to the ranging sensor. By controlling the second time that the ranging sensor uses to transmit signals and receive signals in the first ranging cycle that is separated from the first time, the signal is processed according to the first ranging cycle, so that the interference signal from the interfering ranging sensor It will not affect the normal reception of the signal emitted by the ranging sensor. That is, the ranging sensor is dynamically allocated access to the physical channel time slot according to the time when the interference signal is detected by the ranging sensor, thereby being able to suppress multiple measurements. co-frequency interference between sensors. Moreover, the embodiment of the present application dynamically allocates time slots without fixing the time slot interval, making the time slot division flexible, thereby increasing the number of ranging sensors that can exist in a space and emitting signals with the same frequency. Time slots are reallocated to the ranging sensor according to changes in the interfering ranging sensor. In addition, the method provided by the embodiment of the present application does not require clock synchronization between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备通过所述测距传感器在第一时刻检测到干扰信号时,可以:在控制所述测距传感器根据所述第一测距周期处理信号之前,通过所述测距传感器接收至少一个信号;确定所述至少一个信号中在所述第一时刻接收到的第一信号为所述干扰信号,其中,所述第一时刻晚于所述至少一个信号中的其他信号的接收时刻。In a possible design, when an electronic device including a ranging sensor detects an interference signal through the ranging sensor at the first moment, it can: control the ranging sensor to process the signal according to the first ranging cycle. Before, receiving at least one signal through the ranging sensor; determining that the first signal received at the first time among the at least one signal is the interference signal, wherein the first time is later than the at least The moment of reception of other signals within a signal.
在该方法中,如果包括测距传感器的电子设备在控制该测距传感器根据第一测距周期处理信号之前,通过该测距传感器接收到至少一个信号,则可以确定该测距传感器接收到的至少一个信号不是该测距传感器发射的信号在遇到目标时被反射回来的信号,而是干扰测距传感器发射的信号,进而确定存在至少一个对该测距传感器产生同频干扰的干扰测距传感器。还可以确定至少一个信号中在第一时刻接收到的第一信号(即最晚接收到的信号)为干扰信号,进而确定发射第一信号的干扰测距传感器为该测距传感器的参考干扰测距传感器(即开始根据测距周期处理信号的顺序在该测距传感器的前一位),使得每个测距传感器只需要避免对应的参考干扰测距传感器的同频干扰,就能够避免其他干扰测距传感器的同频干扰,从而能够抑制多个测距传感器之间的同频干扰。In this method, if the electronic device including the ranging sensor receives at least one signal through the ranging sensor before controlling the ranging sensor to process the signal according to the first ranging cycle, it can be determined that the ranging sensor receives At least one signal is not the signal emitted by the ranging sensor that is reflected back when it encounters the target, but interferes with the signal emitted by the ranging sensor, and then it is determined that there is at least one interfering ranging sensor that causes co-frequency interference to the ranging sensor. sensor. It can also be determined that the first signal received at the first moment among the at least one signal (that is, the latest received signal) is an interference signal, and then the interference ranging sensor that transmits the first signal is determined to be the reference interference measurement sensor of the ranging sensor. distance sensor (that is, the order in which the signal is processed according to the ranging cycle is at the previous position of the ranging sensor), so that each ranging sensor only needs to avoid the same-frequency interference of the corresponding reference interference ranging sensor, and can avoid other interference. Co-channel interference between ranging sensors, thereby being able to suppress co-channel interference between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备通过所述测距传感器在第一时刻检测到干扰信号 之后,还可以:根据发射所述干扰信号的干扰测距传感器的第二测距周期,确定所述第一测距周期,其中,所述第一测距周期内用于获得测距结果和检测干扰信号的时长等于所述第二测距周期内用于获得测距结果的时长。In one possible design, the electronic device including the ranging sensor detects the interference signal at the first moment through the ranging sensor. After that, the first ranging period may also be determined according to the second ranging period of the interfering ranging sensor that emits the interference signal, wherein the first ranging period is used to obtain ranging results and detection. The duration of the interference signal is equal to the duration used to obtain the ranging result in the second ranging period.
在该方法中,包括测距传感器的电子设备在确定发射第一信号的干扰测距传感器为该测距传感器的参考干扰测距传感器之后,可以根据参考干扰测距传感器的第二测距周期确定该测距传感器的第一测距周期,使得该测距传感器的第一测距周期内用于获得测距结果和检测干扰信号的时长等于参考干扰测距传感器的第二测距周期内用于获得测距结果的时长,保证该测距传感器与参考干扰测距传感器的测距周期的时长一致,以及该测距传感器在根据测距周期处理信号时也可以检测干扰信号,从而能够通过后续处理抑制多个测距传感器之间的同频干扰。In this method, after the electronic device including the ranging sensor determines that the interfering ranging sensor that emits the first signal is the reference interfering ranging sensor of the ranging sensor, the electronic device may determine based on the second ranging cycle of the reference interfering ranging sensor. The first ranging period of the ranging sensor makes the time period used to obtain ranging results and detect interference signals in the first ranging period of the ranging sensor equal to the second ranging period of the reference interference ranging sensor. The length of time to obtain the ranging results ensures that the length of the ranging cycle of the ranging sensor and the reference interference ranging sensor is consistent, and that the ranging sensor can also detect the interference signal when processing the signal according to the ranging cycle, so that it can pass subsequent processing Suppress co-channel interference between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备通过所述测距传感器在第一时刻检测到干扰信号时,可以:在控制所述测距传感器根据所述第一测距周期处理信号时,如果通过所述测距传感器在所述第一时刻接收到第二信号,确定所述第二信号为所述干扰信号,其中,所述第一时刻为所述第一测距周期内用于检测干扰信号的任一时刻。In a possible design, when an electronic device including a ranging sensor detects an interference signal through the ranging sensor at the first moment, it can: control the ranging sensor to process the signal according to the first ranging cycle. When, if the second signal is received by the ranging sensor at the first time, it is determined that the second signal is the interference signal, wherein the first time is the time used in the first ranging period. at any time when interfering signals are detected.
在该方法中,如果包括测距传感器的电子设备在控制该测距传感器根据第一测距周期处理信号时,通过该测距传感器在第一测距周期内用于检测干扰信号的任一时刻接收到第一信号,则可以确定该测距传感器接收到的第一信号不是该测距传感器发射的信号在遇到目标时被反射回来的信号,而是干扰测距传感器发射的信号,即确定第一信号为干扰信号,进而确定该测距传感器的参考干扰测距传感器未发生变化,可以根据该测距传感器检测到参考干扰测距传感器发射的干扰信号的时刻,实时为该测距传感器分配下一个测距周期的时隙,从而抑制多个测距传感器之间的同频干扰。In this method, if the electronic device including the ranging sensor controls the ranging sensor to process the signal according to the first ranging cycle, the ranging sensor is used to detect the interference signal at any time in the first ranging cycle. After receiving the first signal, it can be determined that the first signal received by the ranging sensor is not the signal emitted by the ranging sensor that is reflected back when it encounters the target, but a signal emitted by the interfering ranging sensor, that is, it is determined The first signal is an interference signal, and then it is determined that the reference interference ranging sensor of the ranging sensor has not changed. According to the moment when the ranging sensor detects the interference signal emitted by the reference interference ranging sensor, the ranging sensor can be allocated in real time. time slot of the next ranging cycle, thereby suppressing co-channel interference between multiple ranging sensors.
在一种可能的设计中,包括测距传感器的电子设备通过所述测距传感器在第一时刻检测到干扰信号时,还可以:在控制所述测距传感器根据所述第一测距周期处理信号时,如果通过所述测距传感器在所述第一时刻未接收到所述第二信号,控制所述测距传感器停止根据所述第一测距周期处理信号,并通过所述测距传感器接收至少一个信号;确定所述至少一个信号中在所述第三时刻接收到的第三信号为所述干扰信号,其中,所述第三时刻晚于所述至少一个信号中的其他信号的接收时刻;控制所述测距传感器在第四时刻根据所述第一测距周期处理信号,其中,所述第四时刻与所述第三时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长。In a possible design, when the electronic device including the ranging sensor detects an interference signal at the first moment through the ranging sensor, it may also: control the ranging sensor to process according to the first ranging cycle. signal, if the second signal is not received by the ranging sensor at the first moment, control the ranging sensor to stop processing the signal according to the first ranging cycle, and pass the ranging sensor Receive at least one signal; determine that a third signal in the at least one signal received at the third time is the interference signal, wherein the third time is later than the reception of other signals in the at least one signal. time; control the ranging sensor to process signals according to the first ranging cycle at the fourth time, wherein the time length between the fourth time and the third time is equal to the time used in the first ranging cycle. The duration of transmitting and receiving signals.
在该方法中,如果包括测距传感器的电子设备在控制该测距传感器根据第一测距周期处理信号时,通过该测距传感器在第一测距周期内用于检测干扰信号的任一时刻未接收到第一信号,则可以确定对该测距传感器产生同频干扰的干扰测距传感器已发生变化,进而可以确定发射第三信号的干扰测距传感器为该测距传感器新的参考干扰测距传感器,根据该测距传感器检测到新的参考干扰测距传感器发射的干扰信号的时刻,实时为该测距传感器分配下一个测距周期的时隙,从而能够抑制多个测距传感器之间的同频干扰。In this method, if the electronic device including the ranging sensor controls the ranging sensor to process the signal according to the first ranging cycle, the ranging sensor is used to detect the interference signal at any time in the first ranging cycle. If the first signal is not received, it can be determined that the interfering ranging sensor that generates co-frequency interference to the ranging sensor has changed, and then it can be determined that the interfering ranging sensor that emits the third signal is the new reference interference measuring sensor of the ranging sensor. distance sensor, according to the moment when the distance measurement sensor detects the interference signal emitted by the new reference interference distance sensor, it allocates the time slot of the next distance measurement cycle to the distance measurement sensor in real time, thereby suppressing the interference between multiple distance measurement sensors. co-channel interference.
在一种可能的设计中,所述第一测距周期内用于检测干扰信号的时长等于所述测距传感器在一个测距周期内的最大时钟偏移值的四倍。In a possible design, the time period used to detect interference signals in the first ranging period is equal to four times the maximum clock offset value of the ranging sensor in one ranging period.
在该方法中,包括测距传感器的电子在确定第一测距周期内用于检测干扰信号的时长时,由于测距传感器和对该测距传感器产生同频干扰的干扰测距传感器可能在同一个方向发生时钟偏移,可以将第一测距周期内用于检测干扰信号的时长确定为测距传感器在一个测距周期内的最大时钟偏移值的四倍,保证能够在第一测距周期内用于检测干扰信号的任一时刻检测到未变化的参考干扰测距传感器发射的干扰信号,从而能够通过后续处理抑制多个测距传感器之间的同频干扰。In this method, when the electronics including the ranging sensor are used to detect the interference signal in the first ranging period, the ranging sensor and the interfering ranging sensor that generates co-frequency interference to the ranging sensor may be at the same time. If a clock offset occurs in one direction, the duration used to detect interference signals in the first ranging cycle can be determined as four times the maximum clock offset value of the ranging sensor in a ranging cycle to ensure that it can be detected in the first ranging cycle. The interference signal emitted by the unchanged reference interference ranging sensor is detected at any time during the period used to detect interference signals, so that co-frequency interference between multiple ranging sensors can be suppressed through subsequent processing.
在一种可能的设计中,所述第一测距周期内开始检测干扰信号的时刻与所述第一测距周期结束处理信号的时刻之间的时长等于第一时长,其中,所述第一时长为所述测距传感器在一个测距周期内的最大时钟偏移值的两倍与所述第一测距周期内用于发射信号和接收信号的时长之和。In a possible design, the duration between the moment when the interference signal starts to be detected in the first ranging period and the moment when the signal is processed at the end of the first ranging period is equal to the first duration, wherein the first The duration is the sum of twice the maximum clock offset value of the ranging sensor in one ranging cycle and the duration used to transmit signals and receive signals in the first ranging cycle.
在该方法中,包括测距传感器的电子设备可以确定第一测距周期内开始检测干扰信号的时刻与第一测距周期结束处理信号的时刻之间的时长,为测距传感器在一个测距周期内的最大时钟偏移值的两倍与第一测距周期内用于发射信号和接收信号的时长之和,保证能够在第一测距周期内用于检测干扰信号的任一时刻检测到未变化的参考干扰测距传感器发射的干扰信号,从而能够通过后续处理抑制多个测距传感器之间的同频干扰。In this method, the electronic device including the ranging sensor can determine the time length between the time when the interference signal starts to be detected in the first ranging period and the time when the signal is processed at the end of the first ranging period, which is the time when the ranging sensor starts to detect the interference signal in a ranging period. The sum of twice the maximum clock offset value in the period and the time used to transmit and receive signals in the first ranging period ensures that the interference signal can be detected at any time in the first ranging period. The unchanged reference interferes with the interference signal emitted by the ranging sensor, thereby being able to suppress co-frequency interference between multiple ranging sensors through subsequent processing.
在一种可能的设计中,所述第一测距周期内用于发射信号的时长等于所述第二测距周期内用于发射 信号的时长,所述第一测距周期内用于接收信号的时长等于所述第二测距周期内用于接收信号的时长。In a possible design, the time period used for transmitting signals in the first ranging period is equal to the time period used for transmitting signals during the second ranging period. The duration of the signal, the duration used to receive the signal in the first ranging period is equal to the duration used to receive the signal in the second ranging period.
在该方法中,包括测距传感器的电子设备可以确定该测距传感器的第一测距周期内用于发射信号或接收信号的时长等于该测距传感器的参考干扰测距传感器的第二测距周期内用于发射信号或接收信号的时长,从而保证该测距传感器与该测距传感器的参考干扰测距传感器的测距周期的时长一致,保证能够在第一测距周期内用于检测干扰信号的任一时刻检测到未变化的参考干扰测距传感器发射的干扰信号,从而能够通过后续处理抑制多个测距传感器之间的同频干扰。In this method, an electronic device including a ranging sensor may determine that a duration for transmitting or receiving a signal within a first ranging period of the ranging sensor is equal to a reference of the ranging sensor interfering with a second ranging of the ranging sensor. The length of time used to transmit or receive signals within the cycle, thereby ensuring that the ranging sensor is consistent with the length of the ranging cycle of the reference interference ranging sensor of the ranging sensor, ensuring that it can be used to detect interference in the first ranging cycle The interference signal emitted by the unchanged reference interference ranging sensor is detected at any moment of the signal, so that the co-frequency interference between multiple ranging sensors can be suppressed through subsequent processing.
第二方面,本申请还提供一种电子设备,包括测距传感器和处理器;所述测距传感器和所述处理器具有实现上述第一方面或者第一方面的任一种可能的设计中方法的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。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 an interference signal at the first moment;
所述处理器,用于控制所述测距传感器在第二时刻根据第一测距周期处理信号,其中,所述第二时刻与所述第一时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长,所述处理包括发射、接收、获得测距结果、或检测干扰中的一项或多项。The processor is configured to control the ranging sensor to process signals according to a first ranging cycle at a second moment, wherein the duration between the second moment and the first moment is equal to the first ranging period. The duration used for transmitting and receiving signals within a cycle. The processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference.
在一种可能的设计中,所述测距传感器用于通过如下方式在第一时刻检测到干扰信号:在根据所述第一测距周期处理信号之前,接收至少一个信号;确定所述至少一个信号中在所述第一时刻接收到的第一信号为所述干扰信号,其中,所述第一时刻晚于所述至少一个信号中的其他信号的接收时刻。In a possible design, the ranging sensor is configured to detect an interference signal at the first moment in the following manner: before processing the signal according to the first ranging cycle, receive at least one signal; determine the at least one The first signal received at the first time among the signals is the interference signal, wherein the first time is later than the reception time of other signals in the at least one signal.
在一种可能的设计中,所述处理器,还用于根据发射所述干扰信号的干扰测距传感器的第二测距周期,确定所述第一测距周期,其中,所述第一测距周期内用于获得测距结果和检测干扰信号的时长等于所述第二测距周期内用于获得测距结果的时长。In a possible design, the processor is further configured to determine the first ranging period according to the second ranging period of the interfering ranging sensor that emits the interference signal, wherein the first ranging period The time period used to obtain the ranging result and detect the interference signal in the ranging period is equal to the time period used to obtain the ranging result in the second ranging period.
在一种可能的设计中,所述测距传感器用于通过如下方式在第一时刻检测到干扰信号:在根据所述第一测距周期处理信号时,如果在所述第一时刻接收到第二信号,确定所述第二信号为所述干扰信号,其中,所述第一时刻为所述第一测距周期内用于检测干扰信号的任一时刻。In a possible design, the ranging sensor is used to detect the interference signal at the first moment in the following manner: when processing the signal according to the first ranging cycle, if the first ranging sensor is received at the first moment Two signals, the second signal is determined to be the interference signal, wherein the first time is any time used to detect the interference signal within the first ranging period.
在一种可能的设计中,所述测距传感器,还用于在根据所述第一测距周期处理信号时,如果在所述第一时刻未接收到所述第二信号,停止根据所述第一测距周期处理信号,并接收至少一个信号;确定所述至少一个信号中在所述第三时刻接收到的第三信号为所述干扰信号,其中,所述第三时刻晚于所述至少一个信号中的其他信号的接收时刻;在第四时刻根据所述第一测距周期处理信号,其中,所述第四时刻与所述第三时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长。In a possible design, the ranging sensor is also configured to stop processing signals according to the first ranging cycle if the second signal is not received at the first moment. The first ranging cycle processes signals and receives at least one signal; determining that the third signal received at the third time among the at least one signal is the interference signal, wherein the third time is later than the The receiving time of other signals in at least one signal; processing the signal according to the first ranging period at a fourth time, wherein the duration between the fourth time and the third time is equal to the first ranging period The length of time used to transmit and receive signals within the cycle.
在一种可能的设计中,所述第一测距周期内用于检测干扰信号的时长等于所述测距传感器在一个测距周期内的最大时钟偏移值的四倍。In a possible design, the time period used to detect interference signals in the first ranging period is equal to four times the maximum clock offset value of the ranging sensor in one ranging period.
在一种可能的设计中,所述第一测距周期内开始检测干扰信号的时刻与所述第一测距周期结束处理信号的时刻之间的时长等于第一时长,其中,所述第一时长为所述测距传感器在一个测距周期内的最大时钟偏移值的两倍与所述第一测距周期内用于发射信号和接收信号的时长之和。In a possible design, the duration between the moment when the interference signal starts to be detected in the first ranging period and the moment when the signal is processed at the end of the first ranging period is equal to the first duration, wherein the first The duration is the sum of twice the maximum clock offset value of the ranging sensor in one ranging cycle and the duration used to transmit signals and receive signals in the first ranging cycle.
在一种可能的设计中,所述第一测距周期内用于发射信号的时长等于所述第二测距周期内用于发射信号的时长,所述第一测距周期内用于接收信号的时长等于所述第二测距周期内用于接收信号的时长。In a possible design, the time period used for transmitting signals in the first ranging period is equal to the time period used for transmitting signals during the second ranging period, and the time period used for receiving signals during the first ranging period The duration is equal to the duration used to receive signals in the second ranging period.
第三方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第一方面的任一可能的设计所描述的方法。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, comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible design of the first aspect.
上述第二方面至第四方面及其可能的设计中的有益效果可以参考上述对第一方面及其任一可能的设计中所述的方法的有益效果的描述。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 the drawings
图1为本申请实施例提供的一种测距传感器的应用场景的示意图;Figure 1 is a schematic diagram of an application scenario of a ranging sensor provided by an embodiment of the present application;
图2为本申请实施例提供的一种测距传感器的工作原理的示意图;Figure 2 is a schematic diagram of the working principle of a ranging sensor provided by an embodiment of the present application;
图3为本申请实施例提供的一种测距传感器的测距周期的示意图;Figure 3 is a schematic diagram of a 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 the co-frequency interference range of a ranging sensor provided by an embodiment of the present application;
图6为本申请实施例提供的一种测距传感器的同频干扰场景的示意图;Figure 6 is a schematic diagram of a co-frequency interference scenario of a ranging sensor provided by an embodiment of the present application;
图7为本申请实施例提供的一种测距传感器的同频干扰原理的示意图;Figure 7 is a schematic diagram of the co-frequency interference principle of a ranging sensor provided by an embodiment of the present application;
图8为本申请实施例提供的一种测距传感器的持续同频干扰原理的示意图;Figure 8 is a schematic diagram of the principle of continuous co-frequency interference of a ranging sensor provided by an embodiment of the present application;
图9为本申请实施例提供的一种电子设备的硬件结构示意图;Figure 9 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图10为本申请实施例提供的另一种测距传感器的测距周期的示意图;Figure 10 is a schematic diagram of the ranging cycle of another ranging sensor provided by an embodiment of the present application;
图11为本申请实施例提供的又一种测距传感器的测距周期的示意图;Figure 11 is a schematic diagram of the ranging cycle of yet another ranging sensor provided by an embodiment of the present application;
图12(1)为本申请实施例提供的一种测距传感器的干扰抑制原理的示意图;Figure 12(1) is a schematic diagram of the interference suppression principle of a ranging sensor provided by an embodiment of the present application;
图12(2)为本申请实施例提供的一种测距传感器的干扰抑制原理的示意图;Figure 12(2) is a schematic diagram of the interference suppression principle of a ranging sensor 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 this application, such as "upper", "lower", "left", "right", "inner", "outer", etc., are only for reference to the directions of the drawings. Therefore, use The orientation terms are used to better and more clearly describe and understand the embodiments of the present application, 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 target position or distance. Ranging sensors usually use electromagnetic waves or ultrasonic waves to measure distance. The working principle is that a signal of a certain frequency 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. The ranging sensor calculates The phase difference or time difference between the sent and received signals can determine the distance between the ranging sensor and the target.
测距传感器已广泛应用在电子设备中,用于检测目标位置或者距离。在本申请一些实施例中,电子设备可以是便携式设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(例如,手表、手环、头盔、耳机等)、车载终端设备、增强现实(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 those with touch Laptops with sensitive surfaces (such as touch panels), etc. 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, Figure 1 is a schematic diagram of an application scenario of a ranging sensor provided by an embodiment of the present application. Figure 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 at the smart door lock 1 of door 1, the smart door lock 2 of door 2 and Smart door lock 3 on 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 the working principle of a ranging sensor provided by an embodiment of the present application. Among them, the ranging sensor is an ultrasonic ranging sensor (also called ultrasonic equipment). At time t 1 , an ultrasonic signal is transmitted through a transmitting device, and at time t 2 , an ultrasonic signal reflected by the target is received through a receiving device. The ranging sensor can determine the time difference between the emitted ultrasonic signal and the reflected ultrasonic signal through a timer as Δt=t 2 -t 1 . Since the propagation speed of the ultrasonic signal in the air is v=340m/s, the ranging sensor The ranging result of the target can be obtained. 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为本申请实施例提供的一种测距传感器的测距周期的示意图。一个测距周期内可以包括三个时长,或者说包括三个阶段,例如一个测距周期内的三个阶段为发射阶段、接收阶段以及数据处理阶段。Exemplarily, FIG. 3 is a schematic diagram of a 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 phase is used for the ranging sensor to receive signals. During the receiving phase, the ranging sensor can receive signals and record the strength of the received signals. 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 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.
(3)同频干扰。电磁波或超声波用于测距时,本身并不携带编码信息,所以测距传感器之间在接收信号之后,无法区分该信号是自身发射的信号的反射信号,还是其他测距传感器发射的信号。而利用电磁波或超声波进行测距的测距传感器的视场角的覆盖范围较广,因此当某个空间内存在多个信号频率相同的测距传感器时,很容易出现同频干扰。例如,任一测距传感器的接收装置接收到的信号可能是该测距传感器的发射装置发射的信号的反射信号,但也可能是其他信号频率相同的测距传感器的发射装置所发射的信号,导致测距结果的误差较大。如图1所示,如果每户均使用信号频率相同的测距传感器,即测距传感器1、测距传感2和测距传感器3的信号频率相同,那么将会出现较严重的同频干扰问题,而同频干扰会频繁的唤醒智能门锁启动人脸识别,从而造成智能门锁启续航下降。(3) Co-frequency interference. When electromagnetic waves or ultrasonic waves are used for distance measurement, they do not carry coded information. Therefore, after receiving the signal, the distance sensors cannot distinguish whether the signal is a reflection of the signal emitted by themselves or a signal emitted by other distance sensors. The field of view of the distance sensor that uses electromagnetic waves or ultrasonic waves for distance measurement has a wide coverage range. Therefore, when there are multiple distance sensors with the same signal frequency in a certain space, co-frequency interference is likely to occur. For example, the signal received by the receiving device of any distance sensor may be a reflection of the signal emitted by the transmitting device of the distance sensor, but it may also be a signal emitted by the transmitting device of other distance sensors with the same signal frequency, resulting in a large error in the distance measurement result. As shown in Figure 1, if each household uses a distance sensor with the same signal frequency, that is, the signal frequencies of distance sensor 1, distance sensor 2 and distance sensor 3 are the same, then there will be a serious co-frequency interference problem, and co-frequency interference will frequently wake up the smart door lock to start face recognition, thereby causing the smart door lock to have a reduced battery life.
其中,测距传感器的同频干扰范围与测距传感器的测距范围相关,例如,如图5所示,为本申请实施例提供的一种测距传感器的同频干扰范围的示意图,O为测距传感器所在的空间位置,r为该测距传感器的探测距离,该测距传感器存在一个同频干扰范围rmax,其中,rmax>2r,在rmax内的其他测距传感器都可以接收到该测距传感器所发射的信号,即在rmax内如果出现一个以上的测距传感器则必然存在同 频干扰。Among them, the co-frequency interference range of the ranging sensor is related to the ranging range of the ranging sensor. For example, as shown in Figure 5, which is a schematic diagram of the co-frequency interference range of a ranging sensor provided by an embodiment of the present application, O is The spatial position of the ranging sensor, r is the detection distance of the ranging sensor. The ranging sensor has a co-frequency interference range r max , where r max >2r, other ranging sensors within r max can receive to the signal emitted by the ranging sensor, that is, if there is more than one ranging sensor within r max , there must be the same frequency interference.
示例性的,图6为本申请实施例提供的一种测距传感器的同频干扰场景的示意图,如果超声设备1、超声设备2和超声设备3所发射的超声波信号的信号频率相同,如图6所示,rmax为超声设备1的同频干扰范围,超声设备1发射的超声波信号的信号强度会随着与超声设备之间的距离变大逐渐衰减,直至在与超声设备1之间的距离为rmax的地方完全衰减,因此超声设备1不会对与超声设备1的距离大于rmax的超声设备2产生同频干扰,而会对与超声设备1的距离不大于rmax的超声设备3产生同频干扰。Exemplarily, Figure 6 is a schematic diagram of a co-frequency interference scenario of a ranging sensor provided by an embodiment of the present application. If the ultrasonic signals emitted by ultrasonic equipment 1, ultrasonic equipment 2 and ultrasonic equipment 3 have the same signal frequency, as shown in Figure As shown in 6, r max is the same-frequency interference range of the ultrasonic equipment 1. The signal strength of the ultrasonic signal emitted by the ultrasonic equipment 1 will gradually attenuate as the distance from the ultrasonic equipment 1 increases until it is within the range between the ultrasonic equipment 1 and the ultrasonic equipment 1. It is completely attenuated at a distance of r max . Therefore, ultrasonic equipment 1 will not cause co-frequency interference to ultrasonic equipment 2 whose distance from ultrasonic equipment 1 is greater than r max , but will interfere with ultrasonic equipment 2 whose distance from ultrasonic equipment 1 is not greater than r max . 3 produces co-channel interference.
图7为本申请实施例提供的测距传感器的一种测距传感器的同频干扰原理的示意图。例如测距传感器1的信号频率和测距传感器2的信号频率相同,如图7所示,测距传感器1在测距周期中的发射阶段发射信号。该信号经过一段时间到达测距传感器2时,因为测距传感器2正处于测距周期中的接收阶段,所以测距传感器2会将测距传感器1发射的信号当作自己发射的信号的反射信号。这可能导致测距传感器2在测距周期中的数据处理阶段得到的测距结果误差较大。FIG. 7 is a schematic diagram of the co-frequency interference principle 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 7, 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.
图8为本申请实施例提供的一种测距传感器的持续同频干扰原理的示意图。例如测距传感器1的信号频率和测距传感器2的信号频率相同,测距传感器1的测距频率和测距传感器2的测距频率也相同。另外,测距传感器1的时钟和测距传感器2的时钟可能并未遵循统一的参考时钟。或者,测距传感器1的时钟和测距传感器2的时钟遵循统一的参考时钟,但随着时间的推移,测距传感器1的时钟和测距传感器2的时钟可能出现偏差。因此这两个传感器的测距周期中的各阶段并非完全同步,测距传感器1会对测距传感器2产生同频干扰,且会持续一段时间。如图8所示,测距传感器1在第一测距周期中的发射阶段发射信号。该信号经过一段时间到达测距传感器2(对应图8中的信号传播过程1),此时测距传感器2正处于第一测距周期中的接收阶段,则测距传感器2会将测距传感器1发射的信号当作自己发射的信号的发射信号。这导致测距传感器2在第一测距周期中的数据处理阶段得到的测距结果误差较大。另外,测距传感器1在第二测距周期中的发射阶段发射信号。该信号经过一段时间到达测距传感器2(对应图8中的信号传播过程2),此时测距传感器2正处于第二测距周期中的接收阶段,则测距传感器2会将测距传感器1发射的信号当作自己发射的信号的反射信号。这测距传感器2导致在第二测距周期中的数据处理阶段也会得到误差较大的测距结果。可见,测距传感器1会持续影响测距传感器2。FIG. 8 is a schematic diagram of the principle of continuous co-frequency interference of a ranging sensor provided by an 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 8, 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 8). At this time, the ranging sensor 2 is in the receiving stage in the first ranging cycle, then the ranging sensor 2 will The signal emitted by 1 is regarded as the emitted signal of the signal emitted 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 8). At this time, the ranging sensor 2 is in the receiving stage in 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 co-channel interference between multiple ranging sensors, corresponding solutions are currently proposed at the hardware level and software level of the ranging sensors.
在硬件层面,可以通过测距传感器中设置多个信号生成模块,在检测到干扰测距传感器发射的干扰信号时,切换备选信号,从而抑制多个测距传感器之间的同频干扰,但是该解决方案需要更改测距传感器的硬件结构,增加测距传感器的硬件复杂度。At the hardware level, multiple signal generation modules can be set up in the ranging sensor. When an interference signal emitted by the ranging sensor is detected, the alternative signal can be switched to suppress the same-frequency interference between multiple ranging sensors. However, This solution requires changing the hardware structure of the ranging sensor and increasing the hardware complexity of the ranging sensor.
在软件层面,可以从时域的角度出发,根据该测距传感器检测到的干扰信号的时刻为该测距传感器进行动态分配接入物理信道时隙,通过有序、动态接入时隙能够抑制多个测距传感器之间的同频干扰。但是为了避免由于设备时钟偏差导致的时隙混叠,该解决方案需要在多个测距传感器之间进行时钟同步,而时钟同步算法过于复杂,对测距传感器的计算能力以及硬件复杂度有较高的要求。另外,该方案静态划分时隙,为了避免在不同时隙发送信号时不发生同频干扰,需要限定每个时隙之间的间隔必须为最大不受干扰的时长,使得一个测距周期内可划分的时隙数量变少,进而一个空间内可存在的所发射的信号的频率相同的测距传感器数量变少,并且,固定且恒定的时隙划分无法根据干扰测距传感器的变化对应进行调整。At the software level, from the perspective of the time domain, the ranging sensor can be dynamically allocated access physical channel time slots based on the moment of the interference signal detected by the ranging sensor. Through orderly and dynamic access time slots, it can suppress Co-channel interference between multiple ranging sensors. However, in order to avoid time slot aliasing due to device clock deviation, this solution requires clock synchronization between multiple ranging sensors. However, the clock synchronization algorithm is too complex, which affects the computing power and hardware complexity of the ranging sensors. High requirements. In addition, this solution statically divides time slots. In order to avoid co-channel interference when transmitting signals in different time slots, it is necessary to limit the interval between each time slot to the maximum interference-free time, so that it can be The number of divided time slots becomes smaller, and thus the number of ranging sensors that emit signals with the same frequency that can exist in a space becomes smaller. Moreover, the fixed and constant time slot division cannot be adjusted according to changes in interfering ranging sensors. .
鉴于此,提供本申请实施例的技术方案。本申请实施例中,如果包括测距传感器的电子设备通过该测距传感器在第一时刻检测到干扰信号,则可以确定存在对该测距传感器产生同频干扰的干扰测距传感器。通过控制该测距传感器在与第一时刻间隔第一测距周期内用于发射信号和接收信号的时长的第二时刻,根据第一测距周期处理信号,使得来自干扰测距传感器的干扰信号不会影响到该测距传感器正常接收自身所发射的信号。即从时域的角度出发,根据该测距传感器检测到的干扰信号的时刻为该测距传感器进行动态分配接入物理信道时隙,通过有序、动态接入时隙能够避免多个测距传感器之间的同频干扰。并且,本申请实施例动态分配时隙,不固定时隙间隔,使得时隙分割变化灵活,从而使得在一个空间内可存在的所发射的信号的频率相同的测距传感器数量变多,还可以根据干扰测距传感器的变化为该测距传感器重新分配时隙,另外,本申请实施例提供的方法不需要多个测距传感器之间进行时钟同步。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 an interference signal at the first moment through the ranging sensor, it can be determined that there is an interfering ranging sensor that causes co-frequency interference to the ranging sensor. By controlling the second time that the ranging sensor uses to transmit signals and receive signals in the first ranging cycle that is separated from the first time, the signal is processed according to the first ranging cycle, so that the interference signal from the interfering ranging sensor It will not affect the normal reception of the signal emitted by the ranging sensor. That is, from the perspective of the time domain, the ranging sensor is dynamically allocated access to physical channel time slots based on the moment of the interference signal detected by the ranging sensor. Multiple ranging can be avoided through orderly and dynamic access time slots. Co-frequency interference between sensors. Moreover, the embodiment of the present application dynamically allocates time slots without fixing the time slot interval, making the time slot division flexible, thereby increasing the number of ranging sensors that can exist in a space and emitting signals with the same frequency. Time slots are reallocated to the ranging sensor according to changes in the interfering ranging sensor. In addition, the method provided by the embodiment of the present application does not require clock synchronization between multiple ranging sensors.
下面对本申请实施例涉及的技术特征进行说明,以便理解本申请实施例。The technical features involved in the embodiments of the present application are described below to facilitate understanding of the embodiments of the present application.
本申请实施例提供的信号处理方法可以应用于包括测距传感器的电子设备中。示例性的,图9为本 申请实施例提供的一种电子设备的硬件结构示意图。如图9所示,电子设备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. For example, Figure 9 is the The application embodiment provides a schematic diagram of the hardware structure of an electronic device. As shown in FIG. 9 , 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 the USB standard specification, and may 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 charging management module 140 and the 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 (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). 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 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 .
可以理解的是,图9所示的部件并不构成对电子设备100的具体限定,电子设备100还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。此外,图9中的部件之间的组合/连接关系也是可以调整修改的。It is understood that the components shown in FIG9 do not constitute a specific limitation on the electronic device 100. The electronic device 100 may also include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently. In addition, the combination/connection relationship between the components in FIG9 may 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 detection and interference suppression. The progress of each stage is described below. Line introduction.
一、干扰探测。1. Interference detection.
在本申请实施例中,测距传感器可以具有两个状态:探测状态和测距状态。In the embodiment of the present application, the ranging sensor may have two states: detection state and ranging state.
其中,处于探测状态的测距传感器在对应的探测周期内可以不发射信号而只接收信号,探测周期可用于测距传感器接收信号,在探测周期内,测距传感器可以接收信号,还可以记录所接收的信号的强度。Among them, the ranging sensor in the detection state may not transmit signals but only receive signals in the corresponding detection period. The detection period can be used for the ranging sensor to receive signals. During the detection period, the ranging sensor can receive signals and record the strength of the received signals.
处于测距状态的测距传感器在对应的测距周期内可以发射信号、接收信号、获得测距结果以及检测干扰信号。可选的,测距周期包括普通模式下的测距周期和干扰模式下的测距周期。其中,普通模式下的测距周期可以用于测距传感器发射信号、接收信号以及获得测距结果,例如,如图3所示的一个测距周期内可以包括发射阶段、接收阶段以及数据处理阶段这三个阶段。在发射阶段内,测距传感器可以发射信号。在接收阶段内,测距传感器可以接收信号,还可以记录所接收的信号的强度。在数据处理阶段内,测距传感器可以既不发射信号也不接收信号,可以对接收阶段所接收的信号进行处理以获得测距结果,也可以不对接收阶段所接收的信号进行处理。所以,该数据处理阶段又可以称为空闲阶段,下文中以数据处理阶段为例进行描述。干扰模式下的测距周期可以用于测距传感器发射信号、接收信号、获得测距结果以及检测干扰信号,例如,图10为本申请实施例提供的另一种测距传感器的测距周期的示意图,如图10所示的一个测距周期内可以包括发射阶段、接收阶段、数据处理阶段以及检测干扰阶段这四个阶段。检测干扰阶段将数据处理阶段划分为两部分。在检测干扰阶段内,测距传感器可以接收信号,还可以记录所接收的信号的强度。图10所示的干扰模式下的测距周期内的数据处理阶段和检测干扰阶段的时长等于图3所示的普通模式下的测距周期内的数据处理阶段的时长。The ranging sensor in the ranging state can transmit signals, receive signals, obtain ranging results, and detect interference signals within the corresponding ranging period. Optionally, the ranging period includes the ranging period in the normal mode and the ranging period in the interference mode. Among them, the ranging cycle in the normal mode can be used for the ranging sensor to transmit signals, receive signals and obtain ranging results. For example, as shown in Figure 3, a ranging cycle can include a transmitting phase, a receiving phase and a data processing phase. these three stages. 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 may neither transmit nor receive signals, may process the signals received in the receiving stage to obtain ranging results, or may not process the signals received in the receiving stage. Therefore, this data processing stage can also be called an idle stage. The following description takes the data processing stage as an example. The ranging period in the interference mode can be used for the ranging sensor to transmit signals, receive signals, obtain ranging results, and detect interference signals. For example, Figure 10 is a diagram of the ranging period of another ranging sensor provided by an embodiment of the present application. Schematically, as shown in Figure 10, a ranging cycle may include four stages: a transmitting stage, a receiving stage, a data processing stage, and an interference detection stage. The interference detection phase divides the data processing phase into two parts. During the interference detection phase, the ranging sensor receives the signal and records the strength of the received signal. The duration of the data processing phase and the detection interference phase in the ranging cycle in the interference mode shown in Figure 10 is equal to the duration of the data processing phase in the ranging cycle in the normal mode shown in Figure 3 .
在本申请实例中,如图9所示的包括测距传感器的电子设备可以在控制该测距传感器根据普通模式下的测距周期或者干扰模式下的测距周期处理信号之前,控制该测距传感器进入探测状态并保持一个或多个探测周期。例如,电子设备可以在该测距传感器上电之后进入测距状态之前,控制该测距传感器进入探测状态并保持一个或多个探测周期;或者,电子设备还可以在该测距传感器结束一个测距周期之后进入下一个测距周期之前,控制该测距传感器进入探测状态并保持一个或多个探测周期,本申请实施例对此不做任何限定。In the example of this application, the electronic device including the ranging sensor as shown in Figure 9 can control the ranging sensor before controlling the ranging sensor to process the signal according to the ranging period in the normal mode or the ranging period in the interference mode. The sensor enters the detection state and maintains one or more detection cycles. 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, the electronic device can determine that there is no measurement in the environment that causes co-frequency interference to the ranging sensor. distance sensor, which can then control the ranging sensor to enter the ranging state and process the signal according to the ranging cycle in the normal mode; or, if the ranging sensor receives at least one signal within one or more detection cycles, and the received If the strength of at least one signal is not less than the set threshold, the electronic device can determine that there is at least one ranging sensor in the environment that generates co-frequency interference to the ranging sensor, and then can control the ranging sensor to enter the ranging state according to the interference mode. The ranging cycle processes the signal. In the embodiment of the present application, a ranging sensor that generates co-frequency interference to the ranging sensor may be called an interference ranging sensor.
电子设备还可以从上述至少一个干扰测距传感器中选择出该测距传感器的参考干扰测距传感器,其中,参考干扰测距传感器开始根据参考干扰测距传感器的测距周期处理信号的顺序在该测距传感器的前一位。具体的,电子设备可以确定上述至少一个信号中在第一时刻接收到的第一信号为干扰信号,其中,第一时刻晚于至少一个信号中的其他信号的接收时刻,即第一信号是最晚接收到的信号,进而确定发射第一信号的干扰测距传感器为该测距传感器的参考干扰测距传感器。The electronic device may also select a reference interference ranging sensor of the ranging sensor from the above-mentioned at least one interference ranging sensor, wherein the sequence of the reference interference ranging sensor starting to process the signal according to the ranging cycle of the reference interference ranging sensor is in the sequence. The previous digit of the ranging sensor. Specifically, the electronic device may determine that the first signal received at the first time among the above-mentioned at least one signal is an interference signal, wherein the first time is later than the reception time of other signals in the at least one signal, that is, the first signal is the latest signal. The signal received later is then determined to be the interference ranging sensor that emits the first signal as the reference interference ranging sensor of the ranging sensor.
电子设备还可以根据参考干扰测距传感器的普通模式下的测距周期,确定该测距传感器的干扰模式下的测距周期,其中,该测距传感器的干扰模式下的测距周期内用于发射信号的时长等于参考干扰测距传感器的测距周期内普通模式下的用于发射信号的时长,该测距传感器的干扰模式下的测距周期内用于接收信号的时长等于参考干扰测距传感器的普通模式下的测距周期内用于接收信号的时长,该测距传感器的干扰模式下的测距周期内用于获得测距结果和检测干扰信号的时长等于参考干扰测距传感器的普通模式下的测距周期内用于获得测距结果的时长。具体的,电子设备可以通过查询参考干扰测距传感器的型号,进而获取得到与参考干扰测距传感器的型号对应的参考干扰测距传感器的测距周期内用于发射信号、接收信号以及获得测距结果的时长,例如,参考干扰测距传感器的型号为型号A,与型号A对应的测距周期内用于发射信号、接收信号以及获得测距结果的时长分别为6ms、14ms和130ms;或者,还可以通过查询参考干扰测距传感器的测距周期的时长,进而获取得到与参考干扰测距传感器的测距周期的时长对应的参考干扰测距传感器的测距周期内用于发射信号、接收信号以及获得测距结果的时长,例如,参考干扰测距传感器的测距周期的时长为100ms,与100ms对应的测距周期内用于发射信号、 接收信号以及获得测距结果的时长分别为2ms、8ms和90ms。本申请实施例对此不做任何限定。The electronic device may also determine the ranging period in the interference mode of the ranging sensor based on the ranging period in the normal mode of the reference interference ranging sensor, wherein the ranging period in the interference mode of the ranging sensor is used for The duration of transmitting signals is equal to the duration used to transmit signals in the normal mode during the ranging period of the reference interference ranging sensor, and the duration used to receive signals during the ranging period in the interference mode of the ranging sensor is equal to the reference interference ranging. The length of time used to receive signals during the ranging period of the sensor in the normal mode. The time used to obtain ranging results and detect interference signals during the ranging period of the ranging sensor in the interference mode is equal to the ordinary time of the reference interference ranging sensor. The length of time used to obtain ranging results within the ranging cycle in mode. Specifically, the electronic device can query the model of the reference interference ranging sensor, and then obtain the reference interference ranging sensor corresponding to the model of the reference interference ranging sensor, which is used to transmit signals, receive signals, and obtain ranging during the ranging period. The duration of the result, for example, the model of the reference interference ranging sensor is model A, and the duration for transmitting signals, receiving signals, and obtaining ranging results in the ranging cycle corresponding to model A are 6ms, 14ms, and 130ms respectively; or, You can also query the length of the ranging cycle of the reference interference ranging sensor, and then obtain the range period of the reference interference ranging sensor that corresponds to the length of the ranging cycle of the reference interference ranging sensor for transmitting signals and receiving signals. And the time to obtain the ranging results. For example, the length of the ranging period of the reference interference ranging sensor is 100ms, and the ranging period corresponding to 100ms is used to transmit signals, The time to receive the signal and obtain the ranging results is 2ms, 8ms and 90ms respectively. The embodiments of the present application do not impose any limitation on this.
示例性的,如图1所示的智能门锁场景,图1中的测距传感器1和测距传感器2分别设置在户门1的智能门锁1和户门2的智能门锁2,测距传感器1和测距传感2具有相同的信号频率,该信号频率例如为75KHz,测距传感器1的普通模式下的测距周期的时长为100ms,测距传感器1的普通模式下的测距周期内用于发射信号、接收信号以及获得测距结果的时长分别为2ms、8ms和90ms。Exemplarily, in the smart door lock scenario shown in Figure 1, the ranging sensor 1 and the ranging sensor 2 in Figure 1 are respectively arranged on the smart door lock 1 of the household door 1 and the smart door lock 2 of the household door 2, and the ranging sensor 1 and the ranging sensor 2 have the same signal frequency, which is 75KHz, for example. The duration of the ranging cycle of the ranging sensor 1 in the normal mode is 100ms, and the duration for transmitting signals, receiving signals and obtaining ranging results in the ranging cycle of the ranging sensor 1 in the normal mode is 2ms, 8ms and 90ms respectively.
智能门锁1需要检测智能门锁1周围的预设距离内是否有人靠近,智能门锁1可以控制测距传感器1上电,并在控制测距传感器1上电之后,控制测距传感器1进入探测状态并保持一个探测周期例如10s。例如测距传感器1在这10s内未接收到信号,则智能门锁1可以确定环境中不存在测距传感器1的干扰测距传感器,进而智能门锁1可以控制测距传感器1进入测距状态并保持一个或多个普通模式下的测距周期,根据测距传感器1的测距结果确定智能门锁1周围的预设距离内是否有人靠近。Smart door lock 1 needs to detect whether someone is approaching within a preset distance around smart door lock 1. Smart door lock 1 can control the power on of distance sensor 1, and after controlling the power on of distance sensor 1, control the distance sensor 1 to enter. Detection status and maintain a detection period such as 10s. For example, if the ranging sensor 1 does not receive a signal within these 10 seconds, the smart door lock 1 can determine that there is no interference with the ranging sensor 1 in the environment, and then the smart door lock 1 can control the ranging sensor 1 to enter the ranging state. And maintain one or more ranging cycles in the normal mode, and determine whether anyone is approaching within a preset distance around the smart door lock 1 based on the ranging results of the ranging sensor 1 .
智能门锁2需要检测智能门锁2周围的预设距离内是否有人靠近,智能门锁2可以控制测距传感器2上电,并在控制测距传感器2上电之后,可以控制测距传感器2进入探测状态并保持一个探测周期例如10s。例如测距传感器2在这10s内接收到了三个信号,分别为在T0时刻接收到的信号0,在T1时刻接收到的信号1,以及在T2时刻接收到的信号2。例如T0时刻与T1时刻之间的时长等于T1时刻与T2时刻之间的时长,则智能门锁2可以确定信号0、信号1和信号2是同一测距传感器发射的信号,进而可以确定存在1个测距传感器2的干扰测距传感器。例如T0时刻与T1时刻之间的时长不等于T1时刻与T2时刻之间的时长,则智能门锁2可以确定信号0、信号1和信号2是不同测距传感器发射的信号,进而可以确定存在3个测距传感器2的干扰测距传感器。如果智能门锁2确定存在1个测距传感器2的干扰测距传感器,则智能门锁可以确定在T2时刻接收到的信号2为干扰信号,进而可以确定发射信号2的干扰测距传感器为测距传感器2的参考干扰测距传感器,并根据测距传感器2的参考干扰测距传感器的测距周期,确定测距传感器2的干扰模式下的测距周期。例如测距传感器2的参考干扰测距传感器的测距周期的时长为100ms,则智能门锁可以确定测距传感器2的干扰模式下的测距周期内用于发射信号的时长为2ms,用于接收信号的时长为8ms,获得测距结果和检测干扰信号的时长为90ms。智能门锁2可以控制测距传感器2进入测距状态并保持一个或多个干扰模式下的测距周期,根据测距传感器2的测距结果确定智能门锁2周围的预设距离内是否有人靠近。The smart door lock 2 needs to detect whether someone is approaching within a preset distance around the smart door lock 2. The smart door lock 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 Enter the detection state and maintain a detection period such as 10s. For example, the ranging sensor 2 received three signals within these 10 seconds, namely signal 0 received at time T 0 , signal 1 received at time T 1 , and signal 2 received at time T 2 . For example, the time between T 0 and T 1 is equal to the time between T 1 and T 2 , then the smart door lock 2 can determine that signal 0, signal 1 and signal 2 are signals emitted by the same ranging sensor, and then It can be determined that there is one interfering ranging sensor of ranging sensor 2. For example, the time between T 0 and T 1 is not equal to the time between T 1 and T 2 , then the smart door lock 2 can determine that signal 0, signal 1 and signal 2 are signals emitted by different ranging sensors, Furthermore, it can be determined that there are three interfering ranging sensors of the ranging sensor 2 . If the smart door lock 2 determines that there is an interfering ranging sensor of the ranging sensor 2, the smart door lock can determine that the signal 2 received at time T2 is an interfering signal, and further can determine that the interfering ranging sensor that transmits the signal 2 is The reference of the ranging sensor 2 interferes with the ranging sensor, and based on the reference of the ranging sensor 2 interfering with the ranging cycle of the ranging sensor, the ranging cycle of the ranging sensor 2 in the interference mode is determined. For example, the length of the ranging cycle of the reference interference ranging sensor of the ranging sensor 2 is 100 ms, then the smart door lock can determine that the length of the ranging cycle of the ranging sensor 2 in the interference mode is 2 ms, for The duration of receiving the signal is 8ms, and the duration of obtaining the ranging results and detecting the interference signal is 90ms. The smart door lock 2 can control the ranging sensor 2 to enter the ranging state and maintain one or more ranging cycles in the interference mode, and determine whether there is anyone within a preset distance around the smart door lock 2 based on the ranging results of the ranging sensor 2 near.
二、干扰抑制。2. Interference suppression.
如果电子设备确定环境中存在该测距传感器的干扰测距传感器,由于干扰测距传感器发射的信号与该测距传感器发射的信号的反射信号在时间和/或频率上无法区分,因此可以根据该测距传感器检测到的干扰信号的时刻为该测距传感器进行动态分配接入物理信道时隙,即动态为多个测距传感器分配根据干扰模式下的测距周期处理信号的开始时刻,使得多个测距传感器发射信号和接收信号的时间错开,从而抑制多个测距传感器之间的同频干扰。If the electronic device determines that there is an interfering ranging sensor of the ranging sensor in the environment, 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, it can be based on the The moment when the interfering signal is detected by the ranging sensor, the access physical channel time slot is dynamically allocated to the ranging sensor, that is, the starting time of signal processing is dynamically allocated to multiple ranging sensors according to the ranging cycle in the interference mode, so that multiple ranging sensors can The time when each ranging sensor transmits and receives signals is staggered, thereby suppressing co-channel interference between multiple ranging sensors.
在本申请实施例中,上述电子设备通过该测距传感器进入探测状态在第一时刻检测到参考干扰测距传感器发射的干扰信号之后,可以控制该测距传感器在第二时刻进入测距状态根据该测距传感器的干扰模式下的测距周期处理信号,其中,第二时刻与第一时刻之间的时长等于该测距传感器的干扰模式下的测距周期内用于发射信号和接收信号的时长。In the embodiment of the present application, after the above-mentioned electronic device enters the detection state through the ranging sensor and detects the interference signal emitted by the reference interference ranging sensor at the first moment, it can control the ranging sensor to enter the ranging state at the second moment according to The ranging period of the ranging sensor in the interference mode processes the signal, wherein the time length between the second moment and the first moment is equal to the distance used for transmitting signals and receiving signals during the ranging period of the ranging sensor in the interference mode. duration.
具体的,电子设备在控制该测距传感器进入测距状态根据该测距传感器的干扰模式下的测距周期处理信号时,可以确定通过该测距传感器在第三时刻是否接收到第二信号,其中,第三时刻为该测距传感器的干扰模式下的测距周期内用于检测干扰信号的任一时刻。如果通过该测距传感器在第三时刻接收到第二信号,则电子设备可以确定对该测距传感器的干扰测距传感器未发生变化,并确定第二信号为干扰信号,控制该测距传感器在第四时刻根据该测距传感器的干扰模式下的测距周期处理信号,其中,第四时刻与第三时刻之间的时长等于该测距传感器的干扰模式下的测距周期内用于发射信号和接收信号的时长;Specifically, when the electronic device controls the ranging sensor to enter the ranging state and processes the signal according to the ranging cycle in the interference mode of the ranging sensor, it can determine whether the second signal is received by the ranging sensor at the third moment, The third time is any time used to detect interference signals within the ranging period of the ranging sensor in the interference mode. If the second signal is received by the ranging sensor at the third moment, the electronic device can determine that the interference to the ranging sensor has not changed, determine that the second signal is an interference signal, and control the ranging sensor to The signal is processed at the fourth moment according to the ranging period in the interference mode of the ranging sensor, wherein the time length between the fourth moment and the third moment is equal to the ranging period used to transmit the signal in the interference mode of the ranging sensor. and the duration of receiving the signal;
或者,如果通过该测距传感器在第三时刻未接收到第二信号,则电子设备可以确定对该测距传感器的干扰测距传感器已发生变化,需要重新确定该测距传感器的参考干扰测距传感器。具体的,电子设备可以控制该测距传感器退出测距状态停止根据该测距传感器的干扰模式下的测距周期处理信号,并控制该测距传感器重新进入探测状态并保持一个或多个探测周期。如果通过该测距传感器在一个或多个探测周期内接收到至少一个信号,且接收到的至少一个信号的强度不小于设定阈值,则电子设备可以确定至 少一个信号中在第五时刻接收到的第三信号为干扰信号,其中,第五时刻晚于至少一个信号中的其他信号的接收时刻,即第三信号是最晚接收到的信号,将发射第三信号的干扰测距传感器作为该测距传感器新的参考干扰测距传感器。电子设备还可以在通过该测距传感器在第五时刻检测到新的参考干扰测距传感器发射的干扰信号之后,控制该测距传感器在第六时刻根据该测距传感器的干扰模式下的测距周期处理信号,其中,第六时刻与第五时刻之间的时长等于该测距传感器的干扰模式下的测距周期内用于发射信号和接收信号的时长。Alternatively, if the second signal is not received by the ranging sensor at the third moment, the electronic device may determine that the interference ranging sensor of the ranging sensor has changed, and it is necessary to re-determine the reference interference ranging of the ranging sensor. sensor. Specifically, the electronic device can control the ranging sensor to exit the ranging state, stop processing signals according to the ranging cycle in the interference mode of the ranging sensor, and control the ranging sensor to re-enter the detection state and maintain one or more detection cycles. . If at least one signal is received through the ranging sensor within one or more detection periods, and the intensity of the at least one received signal is not less than the set threshold, the electronic device can determine to The third signal received at the fifth time among the less than one signal is an interference signal, wherein the fifth time is later than the reception time of other signals among the at least one signal, that is, the third signal is the latest received signal and will be transmitted The third signal interferes with the ranging sensor as a new reference of the ranging sensor and interferes with the ranging sensor. The electronic device may also control the ranging sensor to perform ranging according to the interference mode of the ranging sensor at the sixth moment after the ranging sensor detects the interference signal emitted by the new reference interference ranging sensor at the fifth moment. The signal is processed periodically, wherein the duration between the sixth moment and the fifth moment is equal to the duration used for transmitting and receiving signals within the ranging period in the interference mode of the ranging sensor.
在本申请实施例中,电子设备通过该测距传感器进入探测状态在第一时刻检测到参考干扰测距传感器发射的干扰信号,并控制该测距传感器在第二时刻进入测距状态根据该测距传感器的干扰模式下的测距周期处理信号之后,理论上电子设备可以通过该测距传感器在第七时刻再次检测到参考干扰测距传感器发射的干扰信号。其中,第七时刻与第一时刻之间的时长等于该测距传感器干扰模式下的测距周期的时长(即该测距传感器的参考干扰测距传感器的测距周期的时长),第七时刻与该测距传感器的干扰模式下的测距周期结束处理信号的时刻之间的时长等于该测距传感器的干扰模式下的测距周期内用于发射信号和接收信号的时长。但是该测距传感器和对该测距传感器的参考干扰测距传感器可能在同一个方向发生时钟偏移,例如δΤ为该测距传感器在一个测距周期内的最大时钟偏移值,时钟偏移的范围可能为(-2δΤ,2δΤ),因此实际上电子设备可以通过该测距传感器在第七时刻加上2δΤ或减去2δΤ这个时间范围内再次检测到参考干扰测距传感器发射的干扰信号。In the embodiment of the present application, the electronic device enters the detection state through the ranging sensor and detects the interference signal emitted by the reference interference ranging sensor at the first moment, and controls the ranging sensor to enter the ranging state at the second moment according to the measurement. After processing the signal in the ranging cycle in the interference mode of the distance sensor, theoretically the electronic device can detect the interference signal emitted by the reference interference ranging sensor again at the seventh moment through the ranging sensor. Among them, the duration between the seventh moment and the first moment is equal to the duration of the ranging cycle in the interference mode of the ranging sensor (that is, the duration of the ranging cycle of the ranging sensor's reference interference ranging sensor). The seventh moment The length of time between the end of the ranging period of the ranging sensor in the interference mode and the time when the signal is processed is equal to the length of time used for transmitting and receiving signals during the ranging period of the ranging sensor in the interference mode. However, the ranging sensor and the reference interference ranging sensor may have clock offsets in the same direction. For example, δΤ is the maximum clock offset value of the ranging sensor in a ranging cycle. The clock offset The range of may be (-2δT, 2δT), so in fact the electronic device can detect the interference signal emitted by the reference interference ranging sensor again within the time range of adding 2δT or subtracting 2δT through the ranging sensor at the seventh moment.
电子设备可以确定该测距传感器的干扰模式下的测距周期内用于检测干扰信号的时长等于该测距传感器在一个测距周期内的最大时钟偏移值的四倍,以及该测距传感器的干扰模式下的测距周期内开始检测干扰信号的时刻与该测距传感器的干扰模式下的测距周期结束处理信号的时刻之间的时长等于第一时长,其中,第一时长为该测距传感器在一个测距周期内的最大时钟偏移值的两倍与该测距传感器的干扰模式下的测距周期内用于发射信号和接收信号的时长之和。示例性的,图11为本申请实施例提供的又一种测距传感器的测距周期的示意图,4δΤ为该测距传感器的干扰模式下的测距周期内开始检测干扰信号的时长,该测距传感器的干扰模式下的测距周期内开始检测干扰信号的时刻tstart=T-(S+R+2δΤ),其中,T为该测距传感器的干扰模式下的测距周期结束处理信号的时刻,S为该测距传感器的干扰模式下的测距周期内用于发射信号的时长,R为该测距传感器的干扰模式下的测距周期内用于接收信号的时长,δΤ为该测距传感器在一个测距周期内的最大时钟偏移值。The electronic device may determine that the duration used to detect the interference signal within the ranging cycle in the interference mode of the ranging sensor is equal to four times the maximum clock offset value of the ranging sensor within one ranging cycle, and the ranging sensor The time length between the time when the interference signal starts to be detected in the ranging cycle in the interference mode and the time when the ranging cycle in the interference mode of the ranging sensor ends processing the signal is equal to the first time length, where the first time length is the measurement time. The sum of twice the maximum clock offset value of the distance sensor within a ranging cycle and the time used to transmit and receive signals within the ranging cycle in interference mode of the ranging sensor. Exemplarily, FIG. 11 is a schematic diagram of the ranging cycle of another ranging sensor provided by the embodiment of the present application. 4δT is the time period during which the interference signal starts to be detected in the ranging cycle of the ranging sensor in the interference mode. The time when the interference signal starts to be detected in the ranging cycle of the ranging sensor in the interference mode t start =T-(S+R+2δT), where T is the end of the signal processing of the ranging cycle in the interference mode of the ranging sensor At the moment, S is the time period for transmitting signals in the ranging period of the ranging sensor in the interference mode, R is the time period for receiving signals during the ranging period of the ranging sensor in the interference mode, and δΤ is the measuring period. The maximum clock offset value from the sensor within a ranging cycle.
示例性的,图12(1)、图12(2)为本申请实施例提供的一种测距传感器的干扰抑制原理的示意图,如图12(1)、图12(2)所示,图12(1)、图12(2)中的测距传感器1、测距传感2和测距传感器3具有相同的信号频率,该信号频率例如为75KHz。初始时,测距传感器1、测距传感2和测距传感器3都未上电。Exemplarily, FIG. 12(1) and FIG. 12(2) are schematic diagrams of the interference suppression principle of a ranging sensor provided by an embodiment of the present application. As shown in FIG. 12(1) and FIG. 12(2), FIG. 12(1) and the ranging sensor 1, the ranging sensor 2 and the ranging sensor 3 in Figure 12(2) have the same signal frequency, and the signal frequency is, for example, 75KHz. Initially, ranging sensor 1, ranging sensor 2 and ranging sensor 3 are not powered on.
如图12(1)所示,包括测距传感器1的电子设备(例如电子设备1)在控制测距传感器1上电之后,控制测距传感器1进入探测状态并保持一个探测周期。例如测距传感器1在该探测周期内未接收到信号,则电子设备1可以确定环境中不存在测距传感器1的干扰测距传感器,进而电子设备1可以控制测距传感器1进入测距状态并保持一个或多个普通模式下的测距周期T1。其中,测距周期T1内用于发射信号的时长为S,测距周期T1内用于接收信号的时长为R,测距周期T1内用于获得测距结果的时长为N。例如电子设备1可以控制测距传感器1在测距传感器1的第一测距周期T1内的A时刻发射信号a,在测距传感器1的第二测距周期T1内的B时刻发射信号b,在测距传感器1的第三测距周期T1内的C时刻发射信号c。As shown in Figure 12(1), after controlling the ranging sensor 1 to be powered on, the electronic device (for example, the electronic device 1) including the ranging sensor 1 controls the ranging sensor 1 to enter the detection state and maintain a detection period. For example, if the ranging sensor 1 does not receive a signal within the detection period, the electronic device 1 can determine that there is no interfering ranging sensor in the environment, and then the electronic device 1 can control the ranging sensor 1 to enter the ranging state and Maintain one or more ranging periods T1 in normal mode. Among them, the time period used to transmit signals in the ranging period T1 is S, the time period used in the ranging period T1 to receive signals is R, and the time period used in the ranging period T1 to obtain the ranging results is N. For example, the electronic device 1 can control the ranging sensor 1 to transmit the signal a at time A within the first ranging period T1 of the ranging sensor 1, and to transmit the signal b at time B within the second ranging period T1 of the ranging sensor 1, The signal c is emitted at time C within the third ranging period T1 of the ranging sensor 1 .
包括测距传感器2的电子设备(例如电子设备2)在控制测距传感器2上电之后,控制测距传感器2进入探测状态并保持一个探测周期。例如测距传感器2在该探测周期内接收到了三个信号,分别为在A1时刻接收到的信号a,在B1时刻接收到的信号b,以及在C1时刻接收到的信号c。例如A1时刻与B1时刻之间的时长等于B1时刻与C1时刻之间的时长,则电子设备2可以确定信号a、信号b和信号c是同一测距传感器例如测距传感器1发射的信号,进而可以确定存在1个测距传感器2的干扰测距传感器。电子设备2还可以确定在C1时刻接收到的信号c为干扰信号,发射信号c的干扰测距传感器例如测距传感器1为测距传感器2的参考干扰测距传感器,并根据测距传感器2的参考干扰测距传感器例如测距传感器1的普通模式下的测距周期T1,确定测距传感器2的干扰模式下的测距周期T2。其中,测距周期T2内用于发射信号的时长为S,用于接收信号的时长为R,获得测距结果和检测干扰信号的时长为N,检测干扰信号的时长为4δΤ。电子设备2还可以控制测距传感器2在D1时刻根据测距传感 器2的干扰模式下的测距周期T2处理信号,其中,D1时刻与C1时刻之间的时长等于测距传感器2的干扰模式下的测距周期T2内用于发射信号和接收信号的时长例如S+R。例如电子设备2可以控制测距传感器2在测距传感器2的第一测距周期T2内的D1时刻发射信号d。After controlling the ranging sensor 2 to be powered on, the electronic device (e.g., electronic device 2) including the ranging sensor 2 controls the ranging sensor 2 to enter a detection state and maintain a detection cycle. For example, the ranging sensor 2 receives three signals in the detection cycle, namely, signal a received at time A1, signal b received at time B1, and signal c received at time C1. For example, if the duration between time A1 and time B1 is equal to the duration between time B1 and time C1, the electronic device 2 can determine that the signals a, b, and c are signals emitted by the same ranging sensor, such as the ranging sensor 1, and further determine that there is an interfering ranging sensor of the ranging sensor 2. The electronic device 2 can also determine that the signal c received at time C1 is an interference signal, and the interfering ranging sensor, such as the ranging sensor 1, that emits the signal c is a reference interfering ranging sensor of the ranging sensor 2, and determine the ranging cycle T2 of the ranging sensor 2 in the interference mode according to the ranging cycle T1 of the reference interfering ranging sensor of the ranging sensor 2, such as the ranging sensor 1 in the normal mode. The duration for transmitting the signal in the ranging cycle T2 is S, the duration for receiving the signal is R, the duration for obtaining the ranging result and detecting the interference signal is N, and the duration for detecting the interference signal is 4δΤ. The electronic device 2 can also control the ranging sensor 2 to detect the interference signal at time D1 according to the ranging sensor. The electronic device 2 processes the signal during the ranging period T2 in the interference mode of the ranging sensor 2, wherein the duration between the time D1 and the time C1 is equal to the duration for transmitting and receiving signals in the ranging period T2 in the interference mode of the ranging sensor 2, such as S+R. For example, the electronic device 2 can control the ranging sensor 2 to transmit the signal d at the time D1 in the first ranging period T2 of the ranging sensor 2.
包括测距传感器3的电子设备(例如电子设备3)在控制测距传感器3上电之后,控制测距传感器3进入探测状态并保持一个探测周期。例如测距传感器3在该探测周期内接收到了四个信号,分别为在A2时刻接收到的信号a,在B2时刻接收到的信号b,在C2时刻接收到的信号c,以及在D2时刻接收到的信号d。例如A2时刻与B2时刻之间的时长等于B2时刻与C2时刻之间的时长,A2时刻与B2时刻之间的时长等于B2时刻与D2时刻之间的时长,A2时刻与C2时刻之间的时长等于C2时刻与D2时刻之间的时长,B2时刻与C2时刻之间的时长等于C2时刻与D2时刻之间的时长,则电子设备2可以确定信号a、信号b和信号c是同一测距传感器例如测距传感器1发射的信号,信号d是其他测距传感器例如测距传感器2发射的信号,进而可以确定存在2个测距传感器3的干扰测距传感器。电子设备3还可以确定在D2时刻接收到的信号d为干扰信号,发射信号d的干扰测距传感器例如测距传感器2为测距传感器3的参考干扰测距传感器,并根据测距传感器3的参考干扰测距传感器例如测距传感器2的干扰模式下的测距周期T2,确定测距传感器3的干扰模式下的测距周期T3。其中,测距周期T3内用于发射信号的时长为S,用于接收信号的时长为R,获得测距结果和检测干扰信号的时长为N,检测干扰信号的时长为4δΤ。电子设备3还可以控制测距传感器3在E2时刻根据测距传感器3的干扰模式下的测距周期T3处理信号,其中,E2时刻与D2时刻之间的时长等于测距传感器3的干扰模式下的测距周期T3内用于发射信号和接收信号的时长例如S+R。例如电子设备3可以控制测距传感器3在测距传感器3的第一测距周期T3内的E2时刻发射信号e。After controlling the ranging sensor 3 to be powered on, the electronic device (for example, the electronic device 3 ) including the ranging sensor 3 controls the ranging sensor 3 to enter a detection state and maintain a detection period. For example, the ranging sensor 3 receives four signals during the detection period, including signal a received at time A2, signal b received at time B2, signal c received at time C2, and signal received at time D2. The signal d arrives. For example, the duration between A2 moment and B2 moment is equal to the duration between B2 moment and C2 moment, the duration between A2 moment and B2 moment is equal to the duration between B2 moment and D2 moment, and the duration between A2 moment and C2 moment. is equal to the time length between C2 time and D2 time, and the time length between B2 time and C2 time is equal to the time length between C2 time and D2 time, then the electronic device 2 can determine that signal a, signal b and signal c are the same ranging sensor For example, the signal emitted by the ranging sensor 1, the signal d is the signal emitted by other ranging sensors such as the ranging sensor 2, and then it can be determined that there are two interfering ranging sensors of the ranging sensor 3. The electronic device 3 can also determine that the signal d received at time D2 is an interference signal, and the interference ranging sensor that transmits the signal d, such as the ranging sensor 2, is the reference interference ranging sensor of the ranging sensor 3, and according to the interference ranging sensor of the ranging sensor 3 The ranging period T3 in the interference mode of the ranging sensor 3 is determined with reference to the ranging period T2 in the interference mode of the interfering ranging sensor, such as the ranging sensor 2 . Among them, the time period for transmitting signals in the ranging period T3 is S, the time period for receiving signals is R, the time period for obtaining ranging results and detecting interference signals is N, and the time period for detecting interference signals is 4δT. The electronic device 3 can also control the ranging sensor 3 to process the signal according to the ranging period T3 in the interference mode of the ranging sensor 3 at the E2 moment, where the time length between the E2 moment and the D2 moment is equal to the ranging sensor 3 in the interference mode. The duration used for transmitting signals and receiving signals within the ranging period T3 is, for example, S+R. For example, the electronic device 3 can control the ranging sensor 3 to transmit the signal e at time E2 within the first ranging period T3 of the ranging sensor 3 .
如图12(2)所示,当电子设备2控制测距传感器2在D1时刻根据测距传感器2的干扰模式下的测距周期T2处理信号,电子设备3控制测距传感器3在E2时刻根据测距传感器3的干扰模式下的测距周期T3处理信号之后,测距传感器1发射的信号经过时长dt12到达测距传感器2,经过时长dt13到达测距传感器3。测距传感器1发射的信号到达测距传感器2的时刻是测距传感器2的干扰模式下的测距周期T2内用于检测干扰信号的4δΤ区间的任一时刻,测距传感器处于可以接收信号的Rx状态。测距传感器1发射的信号到达测距传感器3的时刻不是测距传感器3的干扰模式下的测距周期T3内用于检测干扰信号的4δΤ区间的任一时刻,测距传感器未处于可以接收信号的Rx状态。因此测距传感器2只在测距周期T2内用于检测干扰信号的4δΤ区间接收到测距传感器1发射的信号,并未在测距周期T2内用于接收信号的区间接收到测距传感器1发射的信号,测距传感器3未接收到测距传感器1发射的信号,即测距传感1未对测距传感器2和测距传感器3产生同频干扰。电子设备2可以在通过测距传感器2接收到测距传感器1发射的信号之后,控制测距传感器2等待测距传感器2的干扰模式下的测距周期T2内用于发射信号和接收信号的时长S+R发射信号。As shown in FIG12 (2), when the electronic device 2 controls the ranging sensor 2 to process the signal according to the ranging period T2 in the interference mode of the ranging sensor 2 at time D1, and the electronic device 3 controls the ranging sensor 3 to process the signal according to the ranging period T3 in the interference mode of the ranging sensor 3 at time E2, the signal transmitted by the ranging sensor 1 reaches the ranging sensor 2 after the time length dt12 , and reaches the ranging sensor 3 after the time length dt13 . The time when the signal transmitted by the ranging sensor 1 reaches the ranging sensor 2 is any time in the 4δΤ interval used to detect the interference signal in the ranging period T2 in the interference mode of the ranging sensor 2, and the ranging sensor is in the Rx state where the signal can be received. The time when the signal transmitted by the ranging sensor 1 reaches the ranging sensor 3 is not any time in the 4δΤ interval used to detect the interference signal in the ranging period T3 in the interference mode of the ranging sensor 3, and the ranging sensor is not in the Rx state where the signal can be received. Therefore, the distance sensor 2 only receives the signal transmitted by the distance sensor 1 in the 4δΤ interval used for detecting interference signals in the distance measurement period T2, and does not receive the signal transmitted by the distance sensor 1 in the interval used for receiving signals in the distance measurement period T2, and the distance sensor 3 does not receive the signal transmitted by the distance sensor 1, that is, the distance sensor 1 does not generate co-frequency interference to the distance sensor 2 and the distance sensor 3. After receiving the signal transmitted by the distance sensor 1 through the distance sensor 2, the electronic device 2 can control the distance sensor 2 to wait for the duration S+R of transmitting and receiving signals in the distance measurement period T2 under the interference mode of the distance sensor 2.
测距传感器2发射的信号经过时长dt21到达测距传感器1,经过时长dt23到达测距传感器3,理论上dt12=dt21。测距传感器2发射的信号到达测距传感器1的时刻不是测距传感器1的普通模式下的测距周期T2内用于接收信号的任一时刻,测距传感器未处于可以接收信号的Rx状态。测距传感器2发射的信号到达测距传感器3的时刻是测距传感器3的干扰模式下的测距周期T3内用于检测干扰信号的4δΤ区间的任一时刻,测距传感器处于可以接收信号的Rx状态。因此测距传感器3只在测距周期T3内用于检测干扰信号的4δΤ区间接收到测距传感器2发射的信号,并未在测距周期T3内用于接收信号的区间接收到测距传感器2发射的信号,测距传感器1未接收到测距传感器2发射的信号,即测距传感2未对测距传感器1和测距传感器3产生同频干扰。电子设备3可以在通过测距传感器3接收到测距传感器2发射的信号之后,控制测距传感器3等待测距传感器3的干扰模式下的测距周期T3内用于发射信号和接收信号的时长S+R之后发射信号。The signal emitted by the ranging sensor 2 reaches the ranging sensor 1 after a time period of dt 21 , and reaches the ranging sensor 3 after a time period of dt 23. Theoretically, dt 12 = dt 21 . The moment when the signal emitted by the ranging sensor 2 reaches the ranging sensor 1 is not any moment used to receive the signal during the ranging period T2 in the normal mode of the ranging sensor 1, and the ranging sensor is not in the Rx state that can receive the signal. The moment when the signal emitted by the ranging sensor 2 reaches the ranging sensor 3 is any moment in the 4δT interval for detecting interference signals within the ranging period T3 in the interference mode of the ranging sensor 3. The ranging sensor is in a position where it can receive the signal. Rx status. Therefore, the ranging sensor 3 only receives the signal emitted by the ranging sensor 2 in the 4δT area used to detect interference signals in the ranging period T3, and does not receive the ranging sensor 2 in the area used to receive signals in the ranging period T3. For the signal emitted, the ranging sensor 1 did not receive the signal emitted by the ranging sensor 2, that is, the ranging sensor 2 did not cause co-channel interference to the ranging sensor 1 and the ranging sensor 3. After receiving the signal transmitted by the distance sensor 2 through the distance sensor 3, the electronic device 3 can control the distance sensor 3 to wait for the duration of the distance measurement period T3 in the interference mode of the distance measurement sensor 3 for transmitting and receiving signals. The signal is emitted after S+R.
测距传感器3发射的信号经过时长dt31到达测距传感器1,经过时长dt32到达测距传感器3,理论上dt31=dt13,dt32=dt23。测距传感器3发射的信号到达测距传感器1的时刻不是测距传感器1的普通模式下的测距周期T2内用于接收信号的任一时刻,测距传感器未处于可以接收信号的Rx状态。测距传感器3发射的信号到达测距传感器2的时刻不是测距传感器2的干扰模式下的测距周期T2内用于检测干扰信号的4δΤ区间的任一时刻,测距传感器未处于可以接收信号的Rx状态。因此测距传感器2未接收到测距传感器3发射的信号,测距传感器1未接收到测距传感器3发射的信号,即测距传感3未对测距传感器1和测距传感器3产生同频干扰。 The signal emitted by the ranging sensor 3 reaches the ranging sensor 1 after a time period of dt 31 , and reaches the ranging sensor 3 after a time period of dt 32. Theoretically, dt 31 = dt 13 and dt 32 = dt 23 . The moment when the signal emitted by the ranging sensor 3 reaches the ranging sensor 1 is not any moment used to receive the signal in the ranging period T2 of the ranging sensor 1 in the normal mode, and the ranging sensor is not in the Rx state that can receive the signal. The moment when the signal emitted by the ranging sensor 3 reaches the ranging sensor 2 is not any moment in the 4δT interval for detecting interference signals within the ranging period T2 in the interference mode of the ranging sensor 2, and the ranging sensor is not in a position to receive the signal. Rx status. Therefore, the ranging sensor 2 does not receive the signal emitted by the ranging sensor 3, and the ranging sensor 1 does not receive the signal emitted by the ranging sensor 3. That is, the ranging sensor 3 does not generate any synchronization between the ranging sensor 1 and the ranging sensor 3. frequency interference.
可见,上述方案通过将一个测距周期动态划分为三个时隙,为测距传感器1、测距传感2和测距传感器3分配不同的时隙,即动态为测距传感器1、测距传感2和测距传感器3分配根据干扰模式下的测距周期处理信号的开始时刻,使得测距传感器1、测距传感2和测距传感器3发射信号和接收信号的时间错开,从而抑制测距传感器1、测距传感2和测距传感器3之间的同频干扰。另外,动态为测距传感器1、测距传感2和测距传感器3时由于可以不限定每个时隙之间的间隔,使得一个测距周期内可划分的时隙数量变多,进而一个空间内可存在的所发射的信号的频率相同的测距传感器数量也变多。It can be seen that the above scheme dynamically divides a ranging cycle into three time slots and allocates different time slots to ranging sensor 1, ranging sensor 2 and ranging sensor 3, that is, the dynamic range is ranging sensor 1, ranging sensor 1, ranging sensor 2 and ranging sensor 3. Sensing 2 and ranging sensor 3 allocate the starting time of signal processing according to the ranging cycle in interference mode, so that the time of transmitting and receiving signals of ranging sensor 1, ranging sensor 2 and ranging sensor 3 is staggered, thereby suppressing Co-channel interference between ranging sensor 1, ranging sensor 2 and ranging sensor 3. In addition, when the dynamic range is ranging sensor 1, ranging sensor 2 and ranging sensor 3, since the interval between each time slot does not need to be limited, the number of time slots that can be divided in a ranging cycle increases, and then a The number of ranging sensors that emit signals with the same frequency that can exist in the space also increases.
在本申请实例中,电子设备可以确定一个空间内可存在的所发射的信号的频率相同的测距传感器的数量m,具体为:
In the example of this application, the electronic device can determine the number m of ranging sensors that can exist in a space and emit signals with the same frequency, specifically:
其中,tc为每个测距传感器发射的信号到达其他设备的平均时间,理想情况tc=0,非理想情况tc与每个测距传感器的同频干扰范围rmax相关。示例性的,每个测距传感器的测距周期为T,如图12(2)所示,如果一个空间内存在2个所发射的信号的频率相同的测距传感器,这2个测距传感器占用时隙为:2(S+R)+2dt12;如果一个空间内存在3个所发射的信号的频率相同的测距传感器,这3个测距传感器占用时隙为:3(S+R)+dt12+dt23+dt31,依次类推,如果一个空间内存在4个所发射的信号的频率相同的测距传感器,这4个测距传感器占用时隙为:4(S+R)+dt12+dt23+dt34+dt41Among them, tc is the average time for the signal emitted by each ranging sensor to reach other devices. The ideal situation is tc=0. The non-ideal situation tc is related to the co-frequency interference range r max of each ranging sensor. For example, the ranging period of each ranging sensor is T, as shown in Figure 12(2). If there are two ranging sensors in a space that emit signals with the same frequency, these two ranging sensors The occupied time slot is: 2(S+R)+2dt 12 ; if there are three ranging sensors in a space that emit signals with the same frequency, the occupied time slots of these three ranging sensors are: 3(S+R )+dt 12 +dt 23 +dt 31 , and so on, if there are 4 ranging sensors with the same frequency of emitted signals in a space, the time slots occupied by these 4 ranging sensors are: 4(S+R) +dt 12 +dt 23 +dt 34 +dt 41 .
基于以上实施例,本申请还提供一种信号处理方法。该方法可以由图9所示的包括了测距传感器的电子设备执行。请参考图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. 9 . Please refer to Figure 13, which is a flow chart of the signal processing method.
S1301:电子设备通过测距传感器在第一时刻检测到干扰信号。S1301: The electronic device detects the interference signal at the first moment through the ranging sensor.
对于S1301,可参考前文中对于干扰检测过程和干扰抑制过程的介绍。例如电子设备可以在控制测距传感器根据普通模式下的测距周期或者干扰模式下的测距周期处理信号之前,控制测距传感器进入探测状态并保持一个或多个探测周期,如果测距传感器在一个或多个探测周期内接收到信号,并且接收到的信号的强度不小于设定阈值,则测距传感器可以确定接收到的信号是干扰信号。或者,电子设备可以在控制测距传感器进入测距状态根据测距传感器的干扰模式下的测距周期处理信号时,确定通过该测距传感器在测距传感器的干扰模式下的测距周期内用于检测干扰信号的任一时刻接收到信号,则测距传感器可以确定接收到的信号是干扰信号。For S1301, please refer to the introduction of the interference detection process and interference suppression process in the previous article. For example, the electronic device can control the ranging sensor to enter the detection state and maintain one or more detection periods before controlling the ranging sensor to process the signal according to the ranging period in the normal mode or the ranging period in the interference mode. If the ranging sensor is in If a signal is received within one or more detection cycles, and the strength of the received signal is not less than the set threshold, the ranging sensor can determine that the received signal is an interference signal. Alternatively, when controlling the ranging sensor to enter the ranging state and processing the signal according to the ranging cycle in the interference mode of the ranging sensor, the electronic device can determine that the ranging sensor is used in the ranging cycle in the interference mode of the ranging sensor. If a signal is received at any time when the interference signal is detected, the ranging sensor can determine that the received signal is an interference signal.
S1302:电子设备控制测距传感器在第二时刻根据第一测距周期处理信号。S1302: The electronic device controls the ranging sensor to process the signal according to the first ranging cycle at the second moment.
其中,第二时刻与第一时刻之间的时长等于第一测距周期内用于发射信号和接收信号的时长,处理包括发射、接收、获得测距结果、或检测干扰中的一项或多项。Wherein, the duration between the second moment and the first moment is equal to the duration used for transmitting and receiving signals in the first ranging period, and the processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference. item.
对于S1302,可参考前文中对于干扰抑制过程的介绍。For S1302, please refer to the introduction to the interference suppression process in the previous article.
上述步骤的具体执行可参照上述实施例中的相关介绍,本实例中不再赘述。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. Memory 1401 is available To store the implementation program of the embodiment of this application. The memory 1401 may also store a network communication program that may 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 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. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (18)

  1. 一种信号处理方法,其特征在于,应用于包括测距传感器的电子设备,所述方法包括:A signal processing method, characterized in that it is applied to an electronic device including a ranging sensor, the method comprising:
    通过所述测距传感器在第一时刻检测到干扰信号;An interference signal is detected at the first moment by the ranging sensor;
    控制所述测距传感器在第二时刻根据第一测距周期处理信号,其中,所述第二时刻与所述第一时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长,所述处理包括发射、接收、获得测距结果、或检测干扰中的一项或多项。Control the ranging sensor to process signals according to the first ranging cycle at a second moment, wherein the time length between the second moment and the first moment is equal to the sum of the signals used to transmit signals in the first ranging period and The duration of receiving a signal, and the processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference.
  2. 如权利要求1所述的方法,其特征在于,所述通过所述测距传感器在第一时刻检测到干扰信号,所述方法包括:The method of claim 1, wherein the interference signal is detected by the ranging sensor at the first moment, and the method includes:
    在控制所述测距传感器根据所述第一测距周期处理信号之前,通过所述测距传感器接收至少一个信号;before controlling the ranging sensor to process signals according to the first ranging cycle, receiving at least one signal through the ranging sensor;
    确定所述至少一个信号中在所述第一时刻接收到的第一信号为所述干扰信号,其中,所述第一时刻晚于所述至少一个信号中的其他信号的接收时刻。The first signal received at the first time among the at least one signal is determined to be the interference signal, wherein the first time is later than the reception time of other signals among the at least one signal.
  3. 如权利要求2所述的方法,其特征在于,所述通过所述测距传感器在第一时刻检测到干扰信号之后,所述方法还包括:The method of claim 2, wherein after the interference signal is detected by the ranging sensor at the first moment, the method further includes:
    根据发射所述干扰信号的干扰测距传感器的第二测距周期,确定所述第一测距周期,其中,所述第一测距周期内用于获得测距结果和检测干扰信号的时长等于所述第二测距周期内用于获得测距结果的时长。The first ranging period is determined according to the second ranging period of the interfering ranging sensor that emits the interfering signal, wherein the time period used to obtain the ranging result and detect the interfering signal in the first ranging period is equal to The duration used to obtain ranging results in the second ranging period.
  4. 如权利要求1所述的方法,其特征在于,所述通过所述测距传感器在第一时刻检测到干扰信号,所述方法包括:The method of claim 1, wherein the interference signal is detected by the ranging sensor at the first moment, and the method includes:
    在控制所述测距传感器根据所述第一测距周期处理信号时,如果通过所述测距传感器在所述第一时刻接收到第二信号,确定所述第二信号为所述干扰信号,其中,所述第一时刻为所述第一测距周期内用于检测干扰信号的任一时刻。When controlling the ranging sensor to process signals according to the first ranging cycle, if a second signal is received by the ranging sensor at the first moment, it is determined that the second signal is the interference signal, Wherein, the first time is any time used for detecting interference signals within the first ranging period.
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    在控制所述测距传感器根据所述第一测距周期处理信号时,如果通过所述测距传感器在所述第一时刻未接收到所述第二信号,控制所述测距传感器停止根据所述第一测距周期处理信号,并通过所述测距传感器接收至少一个信号;When controlling the ranging sensor to process signals according to the first ranging cycle, if the ranging sensor does not receive the second signal at the first moment, the ranging sensor is controlled to stop processing the signal according to the first ranging period. The first ranging cycle processes signals and receives at least one signal through the ranging sensor;
    确定所述至少一个信号中在所述第三时刻接收到的第三信号为所述干扰信号,其中,所述第三时刻晚于所述至少一个信号中的其他信号的接收时刻;Determining that the third signal received at the third time among the at least one signal is the interference signal, wherein the third time is later than the reception time of other signals among the at least one signal;
    控制所述测距传感器在第四时刻根据所述第一测距周期处理信号,其中,所述第四时刻与所述第三时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长。Controlling the ranging sensor to process signals according to the first ranging period at a fourth moment, wherein the duration between the fourth moment and the third moment is equal to the time used for transmitting in the first ranging period signal and the duration of receiving the signal.
  6. 如权利要求1-5任一所述的方法,其特征在于,所述第一测距周期内用于检测干扰信号的时长等于所述测距传感器在一个测距周期内的最大时钟偏移值的四倍。The method according to any one of claims 1 to 5, characterized in that the duration used to detect interference signals in the first ranging period is equal to the maximum clock offset value of the ranging sensor in one ranging period. four times.
  7. 如权利要求1-6任一所述的方法,其特征在于,所述第一测距周期内开始检测干扰信号的时刻与所述第一测距周期结束处理信号的时刻之间的时长等于第一时长,其中,所述第一时长为所述测距传感器在一个测距周期内的最大时钟偏移值的两倍与所述第一测距周期内用于发射信号和接收信号的时长之和。The method according to any one of claims 1 to 6, characterized in that the time length between the time when the interference signal starts to be detected in the first ranging period and the time when the signal processing ends in the first ranging period is equal to the first ranging period. A time length, wherein the first time length is twice the maximum clock offset value of the ranging sensor in a ranging period and the time length used to transmit signals and receive signals in the first ranging period. and.
  8. 如权利要求3-7任一所述的方法,其特征在于,所述第一测距周期内用于发射信号的时长等于所述第二测距周期内用于发射信号的时长,所述第一测距周期内用于接收信号的时长等于所述第二测距周期内用于接收信号的时长。The method according to any one of claims 3 to 7, characterized in that the duration used to transmit signals in the first ranging period is equal to the duration used to transmit signals in the second ranging period, and the The time period used to receive signals in one ranging period is equal to the time period used to receive signals in the second ranging period.
  9. 一种电子设备,其特征在于,包括测距传感器和处理器,其中,An electronic device, characterized by including a ranging sensor and a processor, wherein,
    所述测距传感器,用于在第一时刻检测到干扰信号;The ranging sensor is used to detect the interference signal at the first moment;
    所述处理器,用于控制所述测距传感器在第二时刻根据第一测距周期处理信号,其中,所述第二时刻与所述第一时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长,所述处理包括发射、接收、获得测距结果、或检测干扰中的一项或多项。The processor is configured to control the ranging sensor to process signals according to a first ranging cycle at a second moment, wherein the duration between the second moment and the first moment is equal to the first ranging period. The duration used for transmitting and receiving signals within a cycle. The processing includes one or more of transmitting, receiving, obtaining ranging results, or detecting interference.
  10. 如权利要求9所述的电子设备,其特征在于,所述测距传感器用于通过如下方式在第一时刻检测到干扰信号:The electronic device of claim 9, wherein the ranging sensor is configured to detect an interference signal at the first moment in the following manner:
    在根据所述第一测距周期处理信号之前,接收至少一个信号; receiving at least one signal before processing the signal according to the first ranging period;
    确定所述至少一个信号中在所述第一时刻接收到的第一信号为所述干扰信号,其中,所述第一时刻晚于所述至少一个信号中的其他信号的接收时刻。The first signal received at the first time among the at least one signal is determined to be the interference signal, wherein the first time is later than the reception time of other signals among the at least one signal.
  11. 如权利要求10所述的电子设备,其特征在于,The electronic device according to claim 10, characterized in that:
    所述处理器,还用于根据发射所述干扰信号的干扰测距传感器的第二测距周期,确定所述第一测距周期,其中,所述第一测距周期内用于获得测距结果和检测干扰信号的时长等于所述第二测距周期内用于获得测距结果的时长。The processor is further configured to determine the first ranging period according to the second ranging period of the interfering ranging sensor that emits the interference signal, wherein the first ranging period is used to obtain the ranging period. The result and the duration of detecting the interference signal are equal to the duration used to obtain the ranging result in the second ranging period.
  12. 如权利要求9所述的电子设备,其特征在于,所述测距传感器用于通过如下方式在第一时刻检测到干扰信号:The electronic device of claim 9, wherein the ranging sensor is configured to detect an interference signal at the first moment in the following manner:
    在根据所述第一测距周期处理信号时,如果在所述第一时刻接收到第二信号,确定所述第二信号为所述干扰信号,其中,所述第一时刻为所述第一测距周期内用于检测干扰信号的任一时刻。When processing signals according to the first ranging cycle, if a second signal is received at the first time, it is determined that the second signal is the interference signal, wherein the first time is the first Used to detect interference signals at any time within the ranging period.
  13. 如权利要求12所述的电子设备,其特征在于,The electronic device as claimed in claim 12, characterized in that:
    所述测距传感器,还用于在根据所述第一测距周期处理信号时,如果在所述第一时刻未接收到所述第二信号,停止根据所述第一测距周期处理信号,并接收至少一个信号;The ranging sensor is also configured to stop processing signals according to the first ranging cycle if the second signal is not received at the first moment when processing signals according to the first ranging cycle, and receive at least one signal;
    确定所述至少一个信号中在所述第三时刻接收到的第三信号为所述干扰信号,其中,所述第三时刻晚于所述至少一个信号中的其他信号的接收时刻;Determine that a third signal among the at least one signal received at the third time is the interference signal, wherein the third time is later than a reception time of other signals among the at least one signal;
    在第四时刻根据所述第一测距周期处理信号,其中,所述第四时刻与所述第三时刻之间的时长等于所述第一测距周期内用于发射信号和接收信号的时长。The signal is processed according to the first ranging period at a fourth moment, wherein the duration between the fourth moment and the third moment is equal to the duration for transmitting and receiving signals in the first ranging period. .
  14. 如权利要求9-13任一所述的电子设备,其特征在于,所述第一测距周期内用于检测干扰信号的时长等于所述测距传感器在一个测距周期内的最大时钟偏移值的四倍。The electronic device according to any one of claims 9 to 13, wherein the duration used to detect interference signals in the first ranging period is equal to the maximum clock offset of the ranging sensor in one ranging period. four times the value.
  15. 如权利要求9-14任一所述的电子设备,其特征在于,所述第一测距周期内开始检测干扰信号的时刻与所述第一测距周期结束处理信号的时刻之间的时长等于第一时长,其中,所述第一时长为所述测距传感器在一个测距周期内的最大时钟偏移值的两倍与所述第一测距周期内用于发射信号和接收信号的时长之和。The electronic device according to any one of claims 9 to 14, characterized in that the duration between the moment when the interference signal is detected in the first ranging cycle and the moment when the signal processing is finished in the first ranging cycle is equal to a first duration, wherein the first duration is the sum of twice the maximum clock offset value of the ranging sensor in one ranging cycle and the duration used to transmit and receive signals in the first ranging cycle.
  16. 如权利要求11-15任一所述的电子设备,其特征在于,所述第一测距周期内用于发射信号的时长等于所述第二测距周期内用于发射信号的时长,所述第一测距周期内用于接收信号的时长等于所述第二测距周期内用于接收信号的时长。The electronic device according to any one of claims 11 to 15, characterized in that the time period used for transmitting signals in the first ranging period is equal to the time period used for transmitting signals during the second ranging period, and The time period used for receiving signals in the first ranging period is equal to the time period used for receiving signals during the second ranging period.
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-8中任一项所述的方法。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-8. method described in the item.
  18. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1-8中任一项所述的方法。 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 execute the method described in any one of claims 1-8.
PCT/CN2023/117503 2022-09-22 2023-09-07 Signal processing method and electronic device WO2024061015A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211160335.0 2022-09-22
CN202211160335.0A CN117741602A (en) 2022-09-22 2022-09-22 Signal processing method and electronic equipment

Publications (2)

Publication Number Publication Date
WO2024061015A1 true WO2024061015A1 (en) 2024-03-28
WO2024061015A9 WO2024061015A9 (en) 2024-05-02

Family

ID=90253284

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117503 WO2024061015A1 (en) 2022-09-22 2023-09-07 Signal processing method and electronic device

Country Status (2)

Country Link
CN (1) CN117741602A (en)
WO (1) WO2024061015A1 (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5652489A (en) * 1994-08-26 1997-07-29 Minolta Co., Ltd. Mobile robot control system
CN101127536A (en) * 2007-09-27 2008-02-20 华为技术有限公司 A method, device and system for eliminating interference in random access
CN101815342A (en) * 2009-02-25 2010-08-25 北京信威通信技术股份有限公司 Method and device for ranging in wireless communication system
CN201654231U (en) * 2010-03-26 2010-11-24 北京物资学院 Dynamic distance measuring system based on ultrasonic waves
CN104407622A (en) * 2014-06-24 2015-03-11 嘉兴市德宝威微电子有限公司 Robot tracking method and system
WO2015039581A1 (en) * 2013-09-18 2015-03-26 华为技术有限公司 Positioning method based on visible light source, mobile terminal and controller
CN105093210A (en) * 2014-05-14 2015-11-25 光宝科技股份有限公司 Ultrasonic detection device and detection method thereof
JP2018084434A (en) * 2016-11-21 2018-05-31 株式会社東京精密 Measurement device and measurement method
CN108267740A (en) * 2018-01-03 2018-07-10 纳恩博(北京)科技有限公司 Information processing method, ultrasonic unit, mobile equipment and storage medium
WO2019056760A1 (en) * 2017-09-22 2019-03-28 华为技术有限公司 Electronic apparatus and acoustic distance measurement method thereof
CN112596069A (en) * 2020-12-04 2021-04-02 Oppo(重庆)智能科技有限公司 Distance measuring method and system, computer readable medium and electronic device
CN113820695A (en) * 2021-09-17 2021-12-21 深圳市睿联技术股份有限公司 Ranging method and apparatus, terminal system, and computer-readable storage medium
US20220229177A1 (en) * 2019-06-10 2022-07-21 Suzhou Phaserise Technology Co., Ltd. Air-coupled ultrasonic interferometry method
CN115004054A (en) * 2020-02-29 2022-09-02 华为技术有限公司 Anti-interference distance measuring device and method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5652489A (en) * 1994-08-26 1997-07-29 Minolta Co., Ltd. Mobile robot control system
CN101127536A (en) * 2007-09-27 2008-02-20 华为技术有限公司 A method, device and system for eliminating interference in random access
CN101815342A (en) * 2009-02-25 2010-08-25 北京信威通信技术股份有限公司 Method and device for ranging in wireless communication system
CN201654231U (en) * 2010-03-26 2010-11-24 北京物资学院 Dynamic distance measuring system based on ultrasonic waves
WO2015039581A1 (en) * 2013-09-18 2015-03-26 华为技术有限公司 Positioning method based on visible light source, mobile terminal and controller
CN105093210A (en) * 2014-05-14 2015-11-25 光宝科技股份有限公司 Ultrasonic detection device and detection method thereof
CN104407622A (en) * 2014-06-24 2015-03-11 嘉兴市德宝威微电子有限公司 Robot tracking method and system
JP2018084434A (en) * 2016-11-21 2018-05-31 株式会社東京精密 Measurement device and measurement method
WO2019056760A1 (en) * 2017-09-22 2019-03-28 华为技术有限公司 Electronic apparatus and acoustic distance measurement method thereof
CN108267740A (en) * 2018-01-03 2018-07-10 纳恩博(北京)科技有限公司 Information processing method, ultrasonic unit, mobile equipment and storage medium
US20220229177A1 (en) * 2019-06-10 2022-07-21 Suzhou Phaserise Technology Co., Ltd. Air-coupled ultrasonic interferometry method
CN115004054A (en) * 2020-02-29 2022-09-02 华为技术有限公司 Anti-interference distance measuring device and method
CN112596069A (en) * 2020-12-04 2021-04-02 Oppo(重庆)智能科技有限公司 Distance measuring method and system, computer readable medium and electronic device
CN113820695A (en) * 2021-09-17 2021-12-21 深圳市睿联技术股份有限公司 Ranging method and apparatus, terminal system, and computer-readable storage medium

Also Published As

Publication number Publication date
CN117741602A (en) 2024-03-22
WO2024061015A9 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
WO2021047435A1 (en) Electronic device and sensor control method
KR102208433B1 (en) Method and apparatus for selecting at least one communication method
WO2021227976A1 (en) Data transmission method for electronic device, and medium and electronic device thereof
CN113115439B (en) Positioning method and related equipment
CN111835458B (en) Information transmission and receiving method, terminal and network side equipment
CN114125789B (en) Communication method, terminal device and storage medium
CN112637758B (en) Equipment positioning method and related equipment thereof
EP4171135A1 (en) Device control method, and related apparatus
WO2021238387A1 (en) Application execution method and apparatus
WO2021197071A1 (en) Wireless communication system and method
US20230048312A1 (en) Downlink reception triggering method, terminal, and network-side device
KR102513979B1 (en) Electronic device and method for communicating thereof
CN111147195B (en) Data transmission method, receiving method, terminal and network equipment
CN110719647B (en) Random access method, terminal and network equipment
CN110636533B (en) Scheduling transmission method and terminal
WO2024061015A1 (en) Signal processing method and electronic device
CN110944402B (en) Transmission control method and terminal equipment
WO2024022171A9 (en) Signal processing method, and electronic device
WO2022057476A1 (en) Method for generating calibration signal, electronic device, and computer storage medium
CN113722260A (en) Protection circuit, serial bus system, circuit protection method and mobile terminal
WO2021046696A1 (en) Antenna switching method and apparatus
WO2024146350A1 (en) Device wake-up method, electronic device and communication system
CN117278372B (en) Signal transmission method and communication device
WO2023226645A9 (en) Communication method, communication system, and electronic device
WO2023072109A1 (en) Orientation information determination method and electronic device

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

Country of ref document: EP

Kind code of ref document: A1