Electronic device, ranging method, and computer readable medium
Patent Information
- Application Number
- CN202510529421.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2045-04-24
AI Technical Summary
然而,相关技术中的电子设备测距时性能不够好,还有待提升的空间
Smart Images

Figure CN120405565B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an electronic device, a ranging method, and a computer-readable medium. Background Technology
[0002] With technological advancements, mobile phones and other electronic devices with ranging capabilities are becoming increasingly widespread and powerful. These devices typically include antenna components to enable ranging functionality. However, the ranging performance of these devices in current technologies is not yet optimal and requires further improvement. Summary of the Invention
[0003] In a first aspect, embodiments of this application provide an electronic device, the electronic device comprising: Antenna assembly, the antenna assembly comprising: The first antenna is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna, and the first antenna is used to emit a detection signal. The second antenna is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna. A transceiver module, electrically connected to the first antenna and the second antenna, is used to receive a target-reflected signal that is reflected by the target object and received through one of the first antenna and the second antenna; and The processing module, if the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, adopts a first processing strategy to obtain the distance between the electronic device and the target object; if the circular polarization attribute of the target reflected signal is the same as the circular polarization attribute of the detection signal, the processing module adopts a second processing strategy to obtain the distance between the electronic device and the target object, wherein the second processing strategy includes eliminating interference caused by the cavity of the target object.
[0004] Secondly, this application provides a ranging method, the ranging method comprising: The first antenna transmits a detection signal, wherein the first antenna is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna; Receive the target reflected signal from the target object and received by one of the first antenna and the second antenna; If the circular polarization attribute of the target reflected signal is different from that of the detection signal, a first processing strategy is used to obtain the distance between the electronic device and the target object. If the circular polarization attribute of the target reflected signal is the same as that of the detection signal, a second processing strategy is used to obtain the distance between the electronic device and the target object. The second processing strategy includes eliminating interference caused by the cavity of the target object.
[0005] Thirdly, this application provides a computer-readable medium for storing a computer program that, when executed, performs the ranging method as described in the second aspect.
[0006] The electronic device provided in this application, if the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, the processing module uses a first processing strategy to obtain the distance between the electronic device and the target object; if the circular polarization attribute of the target reflected signal is the same as the circular polarization attribute of the detection signal, the processing module uses a second processing strategy to obtain the distance between the electronic device and the target object, wherein the second processing strategy includes eliminating interference caused by the cavity of the target object, thereby improving the accuracy of measuring the distance between the electronic device and the target object. Attached Figure Description
[0007] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Figure 1 A schematic diagram of an electronic device provided in one embodiment of the application measuring the distance to a target object; Figure 2 for Figure 1 The circuit block diagram of the electronic device shown; Figure 3 This is a schematic diagram of distance measurement between an electronic device and a target object after one reflection, according to one embodiment. Figure 4 This is a schematic diagram of distance measurement between an electronic device and a target object after two reflections, according to one embodiment. Figure 5 Detailed circuit block diagram of an electronic device provided in one embodiment of this application; Figure 6 for Figure 4 The diagram shows the phase change when the electronic device measures the distance to the target object. Figure 7A schematic diagram of an electronic device measuring the distance to a target object according to another embodiment; Figure 8 A flowchart of a ranging method provided in one embodiment of this application; Figure 9 A flowchart of a ranging method provided for another embodiment of this application. Detailed Implementation
[0008] The technical solution of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the embodiments described in this application are only a part of the embodiments, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without creative effort are within the protection scope of this application.
[0009] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment to other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0010] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a particular order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, an assembly or device comprising one or more components is not limited to the one or more components listed, but may optionally also include one or more components not listed but inherent to the exemplified product, or one or more components that it should have based on the described function.
[0011] Please see Figure 1 and Figure 2 , Figure 1 A schematic diagram of an electronic device provided in one embodiment of the application measuring the distance to a target object; Figure 2 for Figure 1The circuit block diagram of the electronic device shown is illustrated. The electronic device 1 can be, but is not limited to, a mobile phone, tablet computer, personal computer, laptop computer (PC), earphones, watch, or wearable device with ranging capabilities. Because the electronic device 1 has ranging capabilities, it is also called a ranging device. In this embodiment, a mobile phone is used as an example for illustration; however, this should not be construed as a limitation on the electronic device 1 provided in this embodiment. The electronic device 1 is used to measure the distance between itself and a target object 3. The electronic device 1 includes an antenna assembly 110, a transceiver module 120, and a processing module 130. The antenna assembly 110 includes a first antenna 111 and a second antenna 112. The first antenna 111 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna, and is used to emit a detection signal. The second antenna 112 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna. The transceiver module 120 is electrically connected to the first antenna 111 and the second antenna 112 to receive the target reflected signal reflected by the target object 3 and received by one of the first antenna 111 and the second antenna 112. If the circular polarization attribute of the target reflected signal is different from that of the detection signal, the processing module 130 uses a first processing strategy to obtain the distance between the electronic device 1 and the target object 3; if the circular polarization attribute of the target reflected signal is the same as that of the detection signal, the processing module 130 uses a second processing strategy to obtain the distance between the electronic device 1 and the target object 3, wherein the second processing strategy includes eliminating interference caused by the cavity 310 of the target object 3.
[0012] In one embodiment, both the first antenna 111 and the second antenna 112 are antennas supporting Ultra Wide Band (UWB) technology. It should be noted that this application does not limit the specific form of the first antenna 111 and the second antenna 112, nor does it limit their positions within the electronic device 1, nor does it limit their operating frequency bands. Furthermore, the electronic device 1 provided in this application does not limit the number of first antennas 111 or the number of second antennas 112.
[0013] The first antenna 111 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna, and the second antenna 112 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna. In other words, the circular polarization attributes of the first antenna 111 and the second antenna 112 are different. Specifically, when the first antenna 111 is a left-hand circularly polarized antenna, the second antenna 112 is a right-hand circularly polarized antenna; when the first antenna 111 is a right-hand circularly polarized antenna, the second antenna 112 is a left-hand circularly polarized antenna. In this embodiment, the first antenna 111 emits a detection signal; therefore, the first antenna 111 is a transmitting antenna. In this embodiment, the example of the first antenna 111 being a left-hand circularly polarized antenna will be used for explanation.
[0014] A left-hand circularly polarized electromagnetic wave signal, after being reflected an object an odd number of times (e.g., once, three times), becomes a right-hand circularly polarized electromagnetic wave signal. A left-hand circularly polarized electromagnetic wave signal, after being reflected an object an even number of times (e.g., twice, four times), remains a left-hand circularly polarized electromagnetic wave signal. Similarly, a right-hand circularly polarized electromagnetic wave signal, after being reflected an object an odd number of times (e.g., once, three times), becomes a left-hand circularly polarized electromagnetic wave signal. A right-hand circularly polarized electromagnetic wave signal, after being reflected an object an even number of times (e.g., twice, four times), remains a right-hand circularly polarized electromagnetic wave signal.
[0015] A left-hand circularly polarized antenna can receive left-hand circularly polarized electromagnetic wave signals, but cannot receive right-hand circularly polarized electromagnetic wave signals. Conversely, a right-hand circularly polarized antenna can receive right-hand circularly polarized electromagnetic wave signals, but cannot receive left-hand circularly polarized electromagnetic wave signals.
[0016] Therefore, when the first antenna 111 is a left-hand circularly polarized antenna and the second antenna 112 is a right-hand circularly polarized antenna, the first antenna 111 can receive left-hand circularly polarized electromagnetic waves, and the second antenna 112 can receive right-hand circularly polarized electromagnetic waves. Correspondingly, when the first antenna 111 is a right-hand circularly polarized antenna and the second antenna 112 is a left-hand circularly polarized antenna, the first antenna 111 can receive right-hand circularly polarized electromagnetic waves, and the second antenna 112 can receive left-hand circularly polarized electromagnetic waves.
[0017] For example, when the first antenna 111 is a left-hand circularly polarized antenna and the second antenna 112 is a right-hand circularly polarized antenna, the detection signal emitted by the first antenna 111 is a left-hand circularly polarized signal (also called a left-hand circularly polarized wave), or a left-hand circularly polarized detection signal, or a left-hand circularly polarized electromagnetic wave. After the left-hand circularly polarized electromagnetic wave signal encounters an object and undergoes an odd number of reflections (e.g., once, three times, etc.), it becomes a right-hand circularly polarized electromagnetic wave signal. Since the first antenna 111 is a left-hand circularly polarized antenna and the second antenna 112 is a right-hand circularly polarized antenna, the right-hand circularly polarized electromagnetic wave signal cannot be received by the first antenna 111 but can be received by the second antenna 112.
[0018] The detection signal is transmitted to the target object 3 and reflected by the target object 3 to obtain the target reflected signal. If the circular polarization attribute of the target reflected signal is the same as that of the detection signal, then the target reflected signal can be received by the first antenna 111 and transmitted to the transceiver module 120. If the circular polarization attribute of the target reflected signal is different from that of the detection signal, then the target reflected signal can be received by the second antenna 112 and transmitted to the transceiver module 120.
[0019] The statement that the circular polarization attribute of the target reflected signal is the same as that of the detection signal means that: when the detection signal is left-hand circularly polarized, the target reflected signal is also left-hand circularly polarized; when the detection signal is right-hand circularly polarized, the target reflected signal is also right-hand circularly polarized. In this embodiment, when the first antenna 111 is a left-hand circularly polarized antenna, the detection signal is left-hand circularly polarized. If the target reflected signal is left-hand circularly polarized, it indicates that the circular polarization attribute of the target reflected signal is the same as that of the detection signal. If the target transmitted signal is right-hand circularly polarized, it indicates that the circular polarization attribute of the target reflected signal is different from that of the detection signal.
[0020] Generally speaking, odd-numbered reflections of the detection signal by the target object 3 are usually a single reflection; while even-numbered reflections are usually a double reflection. The following is a detailed description of the cases where the target object 3 reflects the detection signal once and twice.
[0021] Please see Figure 3 , Figure 3This is a schematic diagram illustrating distance measurement between an electronic device and a target object after one reflection, according to one embodiment. If the circular polarization property of the target reflected signal is different from that of the detection signal, it indicates that the detection signal has undergone an odd number of reflections to obtain the target reflected signal. If the circular polarization property of the target reflected signal is different from that of the detection signal, the processing module 130 uses a first processing strategy to obtain the distance between the electronic device 1 and the target object 3. The first processing strategy will be described in detail later.
[0022] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating distance measurement between an electronic device and a target object after two reflections, according to one embodiment. Figure 4 In the device, the surface of the target object 3 facing the electronic device 1 has a cavity 310. The cavity 310 includes one or more of the following: a receiving cavity, a hole, an angle, a pit, etc.
[0023] If the circular polarization property of the target reflected signal is the same as that of the detection signal, it indicates that the detection signal has undergone an even number of reflections to obtain the target reflected signal. Normally, when the detection signal illuminates the cavity 310 on the surface of the target object 3, the presence of the cavity 310 causes the detection signal to undergo an even number of reflections to obtain the reflected signal. Therefore, if the processing module 130 ignores the influence of the cavity 310 on the surface of the target object 3 when calculating the distance between the electronic device 1 and the target object 3, the calculated distance between the electronic device 1 and the target object 3 will be inaccurate.
[0024] The electronic device 1 provided in this application, if the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, the processing module 130 uses a first processing strategy to obtain the distance between the electronic device 1 and the target object 3; if the circular polarization attribute of the target reflected signal is the same as the circular polarization attribute of the detection signal, the processing module 130 uses a second processing strategy to obtain the distance between the electronic device 1 and the target object 3. The second processing strategy includes eliminating interference caused by the cavity 310 of the target object 3, thereby improving the accuracy of measuring the distance between the electronic device 1 and the target object 3.
[0025] Please refer to the following: Figure 3 and Figure 5 , Figure 5This is a detailed circuit block diagram of an electronic device provided according to one embodiment of this application. In this embodiment, the processing module 130 includes a first sub-processing module 131. The first sub-processing module 131 uses the first processing strategy to obtain the distance D between the electronic device 1 and the target object 3. D satisfies: D=c T / 2. Where c is the flight speed of the detection signal, and T is the time interval between the transceiver module 120 receiving the target reflected signal and the first antenna 111 emitting the detection signal.
[0026] In this embodiment, c is the flight speed of the detection signal, a known number, equal to or approximately equal to the speed of light. In this embodiment, the time when the first antenna 111 emits the detection signal is T0, and the time when it reaches the target object 3 is T1. Therefore, the time it takes for the detection signal to travel from the first antenna 111 to the target object 3 is T1-T0. The time when the transceiver module 120 receives the target reflected signal is T2. Therefore, the time it takes for the reflected signal to travel from the target object 3 to the transceiver module 120 is T2-T1. T0 and T2 are known, and T2-T1 = T1-T0. Therefore, the time interval T from the first antenna 111 to the target object 3 is T = (T2-T0). Then, when the first sub-processing module 131 calculates the distance D between the electronic device 1 and the target object 3 using the first processing strategy, D = c. T / 2=c (T2-T0) / 2=c TOF. Wherein, TOF = (T2 - T0) / 2, and TOF is also called time of flight.
[0027] The electronic device 1 provided in this application, when the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, the processing module 130 uses a first processing strategy to obtain the distance D between the electronic device 1 and the target object 3, where D satisfies: D=c T / 2. Where c is the flight speed of the detection signal, and T is the time interval between the transceiver module 120 receiving the target reflected signal and the first antenna 111 emitting the detection signal. Therefore, it can be seen that the electronic device 1 provided in this embodiment can calculate the distance between the electronic device 1 and the target object 3 relatively accurately even when the circular polarization properties of the target reflected signal and the detection signal are different.
[0028] Please refer to the following: Figure 4 , Figure 5 and Figure 6 , Figure 6 for Figure 4 The diagram shows the phase change when the electronic device measures the distance to a target object. In this embodiment, the processing module 130 further includes a second sub-processing module 132. The second sub-processing module 132 uses the second processing strategy to obtain the distance between the electronic device 1 and the target object 3 based on the flight speed, the time interval, the phase of the detection signal, and the phase of the target reflected signal.
[0029] When the detection signal emitted by the first antenna 111 reaches the target object 3, the phase of the detection signal changes. The target object 3 reflects the detection signal, and the phase of the reflected signal also changes during transmission.
[0030] Therefore, the second processing strategy obtains the distance between the electronic device 1 and the target object 3 based on the flight speed, the time interval, the phase of the detection signal, and the phase of the target reflection signal, thereby eliminating the interference caused by the cavity 310 of the target object 3 and improving the accuracy of the distance between the electronic device 1 and the target object 3 calculated using the second processing strategy.
[0031] Further, please refer to Figure 4 , Figure 6 The phase change of the detection signal at the first reflection point of the target object 3 is φ1, the phase change of the detection signal from the first reflection point to the last reflection point is φ2, and the phase change of the detection signal from the last reflection point to the transceiver module 120 is φ3. The distance D between the electronic device 1 and the target object 3 satisfies: D = c TOF-Δd / 2. Among them, TOF=T / 2, Δd=Δφ λ / 2π, Δφ=(φ2+φ3)-φ1. c is the flight speed of the detection signal, TOF is the flight time of the detection signal from the first antenna 111 to the target object 3, T is the time interval between the transceiver module 120 receiving the target reflected signal and the first antenna 111 emitting the detection signal, and λ is the wavelength of the detection signal.
[0032] In this embodiment, c is the speed of the detection signal, a known number, equal to or approximately equal to the speed of light. In this embodiment, the time when the detection signal is emitted by the first antenna 111 is denoted as T0, and the time when it reaches the first emission point of the target object 3 is denoted as T1. Therefore, the time it takes for the detection signal to travel from the first antenna 111 to the target object 3 is T1-T0. The time it takes for the detection signal to be reflected from the first emission point to the last reflection point (in this schematic diagram, the last reflection point is the second reflection point) is denoted as T2, and the time when the transceiver module 120 receives the reflected target signal is denoted as T3. Therefore, the time interval T from the first antenna 111 to the target object 3 and received by the transceiver module 120 is T = (T3-T0).
[0033] Furthermore, in this embodiment, when the electronic device 1 calculates the distance between the electronic device 1 and the target object 3, it also uses the phase change of the detection signal during transmission as a basis, thereby improving the accuracy of calculating the distance between the electronic device 1 and the target object 3.
[0034] Further, please refer to Figure 7 , Figure 7 This is a schematic diagram of an electronic device performing distance measurement on a target object according to another embodiment. In one embodiment, the transceiver module 120 receives multiple reflected signals from the target object 3 in response to the detection signal. The processing module 130 retains the reflected signal with the strongest signal strength as the target reflected signal and discards the remaining reflected signals based on the signal strength of the multiple reflected signals.
[0035] When the detection signal emitted by the first antenna 111 of the electronic device 1 reaches the target object 3, it may reach multiple parts of the target object 3 in certain situations. Each of these multiple parts reflects the detection signal, resulting in multiple reflected signals. The distance between the part closest to the first antenna 111 and the first antenna 111 is the distance between the electronic device 1 and the target object 3. The data obtained from the parts other than the part closest to the first antenna 111 are pseudorange points.
[0036] For example, in the schematic diagram of the implementation method, the distance between electronic device 1 and point A of target object 3 is the shortest, and the distance between electronic device 1 and point B of target object 3 is greater than the distance between electronic device 1 and point A of target object 3. After the detection signal emitted by electronic device 1 reaches point A of target object 3, it is reflected back to electronic device 1 by point A. After the detection signal emitted by electronic device 1 reaches point B of target object 3, it is reflected back to point C of target object 3 by point B, and then received by electronic device 1. Suppose the distance between electronic device 1 and point B of target object 3 is d1, the distance between point B of target object 3 and point C of target object 3 is d2, and the distance between point C of target object 3 and electronic device 1 is d3. Then, the distance between electronic device 1 and target object 3 obtained from the detection signal emitted by electronic device 1 to point B of target object 3 and the reflected signal reflected back to electronic device 1 by point C is (d1+d2+d3) / 2. Therefore, point B' at a distance of (d1+d2+d3) / 2 to electronic device 1 is not actually a point of target object 3. Therefore, point B' is also called a pseudo-range point.
[0037] The distance between other parts of the target object 3 and the first antenna 111 is greater than the distance between the part closest to the first antenna 111 among the plurality of parts. Generally, signal strength decreases with increasing distance. Therefore, the processing module 130 can retain the strongest reflected signal as the target reflected signal based on the signal strength of the plurality of reflected signals, while discarding the remaining reflected signals, thereby improving the accuracy of measuring the distance between the electronic device 1 and the target object 3 based on the target signal obtained from the plurality of reflected signals.
[0038] Understandably, the plurality of reflected signals include both the reflected signals obtained by the target object 3 reflecting the detection signal an odd number of times and the reflected signals obtained by the target object 3 reflecting the detection signal an even number of times. Of the plurality of reflected signals, only the reflected signal with the strongest signal strength is retained as the target reflected signal, while the remaining reflected signals are discarded. This improves the accuracy of measuring the distance between the electronic device 1 and the target object 3 based on the target signal obtained from the plurality of reflected signals.
[0039] In conjunction with the electronic device 1 provided in any of the preceding embodiments, in one embodiment, when the electronic device 1 measures the distance between itself and the target object 3, the first antenna 111 emits multiple detection signals. Correspondingly, the transceiver module 120 receives multiple target reflection signals. If the circular polarization attributes of the multiple target reflection signals are different from those of the detection signals, the processing module 130 uses a first strategy to obtain the distance between the electronic device 1 and the target object 3 based on the multiple target reflection signals. If the circular polarization attributes of the target reflection signals are the same as those of the detection signals, the processing module 130 uses a second processing strategy to obtain the distance between the electronic device 1 and the target object 3 based on the multiple target reflection signals.
[0040] For example, in one embodiment, the processing module 130 (e.g., the first sub-processing module 131 of the processing module 130) obtains a distance value based on each target reflection signal, and the processing module 130 obtains multiple distance values based on the multiple target reflection signals, and determines the distance between the electronic device 1 and the target object 3 based on the multiple distance values. For example, in one embodiment, the average of the multiple distance values is the distance between the electronic device 1 and the target object 3. This improves the accuracy of the distance measurement between the electronic device 1 and the target object 3.
[0041] In another embodiment, the processing module 130 (e.g., a second sub-processing module 132 of the processing module 130) obtains a distance value based on each target reflection signal, and the processing module 130 obtains multiple distance values based on the multiple target reflection signals, and determines the distance between the electronic device 1 and the target object 3 based on the multiple distance values. For example, in one embodiment, the average of the multiple distance values is the distance between the electronic device 1 and the target object 3. This improves the accuracy of the distance measurement between the electronic device 1 and the target object 3.
[0042] In conjunction with the electronic device 1 provided in any of the preceding embodiments, the distance between the first antenna 111 and the second antenna 112 may be less than or equal to a preset distance. For example, in one embodiment, the preset distance may be, but is not limited to, 10 cm. In another embodiment, the preset distance may be, but is not limited to, 2 cm. Alternatively, in other embodiments, the preset distance may be, but is not limited to, a few millimeters, such as 5 mm.
[0043] When the distance between the first antenna 111 and the second antenna 112 is less than or equal to a preset distance, the accuracy and precision of the distance measurement between the electronic device 1 and the target object 3 can be improved.
[0044] This application also provides a ranging method that can be applied to the electronic device 1 provided in any of the preceding embodiments. Accordingly, the electronic device 1 described above can execute the ranging method provided in any of the preceding embodiments.
[0045] Please see Figure 8 , Figure 8 This is a flowchart of a ranging method provided according to an embodiment of the present application. The ranging method includes S110, S120 and S130, which are described in detail below.
[0046] S110, the first antenna 111 transmits a detection signal, wherein the first antenna 111 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna.
[0047] S120: Receive the target reflected signal from the target object 3 and received by one of the first antenna 111 and the second antenna 112. In one embodiment, S120 can be performed by the transceiver module 120 in the electronic device 1.
[0048] S130: If the circular polarization attribute of the target reflected signal is different from that of the detection signal, a first processing strategy is used to obtain the distance between the electronic device 1 and the target object 3. If the circular polarization attribute of the target reflected signal is the same as that of the detection signal, a second processing strategy is used to obtain the distance between the electronic device 1 and the target object 3. The second processing strategy includes eliminating interference from the cavity 310 of the target object 3. In one embodiment, S130 can be executed by the processing module 130 in the electronic device 1.
[0049] In one embodiment, both the first antenna 111 and the second antenna 112 are antennas supporting Ultra Wide Band (UWB) technology. The first antenna 111 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna, and the second antenna 112 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna. Specifically, when the first antenna 111 is a left-hand circularly polarized antenna, the second antenna 112 is a right-hand circularly polarized antenna; when the first antenna 111 is a right-hand circularly polarized antenna, the second antenna 112 is a left-hand circularly polarized antenna. In this embodiment, the first antenna 111 emits a detection signal; therefore, the first antenna 111 is a transmitting antenna. In this embodiment, the example of the first antenna 111 being a left-hand circularly polarized antenna will be used for explanation.
[0050] A left-hand circularly polarized electromagnetic wave signal, after being reflected an object an odd number of times (e.g., once, three times), becomes a right-hand circularly polarized electromagnetic wave signal. A left-hand circularly polarized electromagnetic wave signal, after being reflected an object an even number of times (e.g., twice, four times), remains a left-hand circularly polarized electromagnetic wave signal. Similarly, a right-hand circularly polarized electromagnetic wave signal, after being reflected an object an odd number of times (e.g., once, three times), becomes a left-hand circularly polarized electromagnetic wave signal. A right-hand circularly polarized electromagnetic wave signal, after being reflected an object an even number of times (e.g., twice, four times), remains a right-hand circularly polarized electromagnetic wave signal.
[0051] A left-hand circularly polarized antenna can receive left-hand circularly polarized electromagnetic wave signals, but cannot receive right-hand circularly polarized electromagnetic wave signals. Conversely, a right-hand circularly polarized antenna can receive right-hand circularly polarized electromagnetic wave signals, but cannot receive left-hand circularly polarized electromagnetic wave signals.
[0052] Therefore, when the first antenna 111 is a left-hand circularly polarized antenna and the second antenna 112 is a right-hand circularly polarized antenna, the first antenna 111 can receive left-hand circularly polarized electromagnetic waves, and the second antenna 112 can receive right-hand circularly polarized electromagnetic waves. Correspondingly, when the first antenna 111 is a right-hand circularly polarized antenna and the second antenna 112 is a left-hand circularly polarized antenna, the first antenna 111 can receive right-hand circularly polarized electromagnetic waves, and the second antenna 112 can receive left-hand circularly polarized electromagnetic waves.
[0053] For example, when the first antenna 111 is a left-hand circularly polarized antenna and the second antenna 112 is a right-hand circularly polarized antenna, the detection signal emitted by the first antenna 111 is a left-hand circularly polarized signal (also called a left-hand circularly polarized wave), or a left-hand circularly polarized detection signal, or a left-hand circularly polarized electromagnetic wave. After the left-hand circularly polarized electromagnetic wave signal encounters an object and undergoes an odd number of reflections (e.g., once, three times, etc.), it becomes a right-hand circularly polarized electromagnetic wave signal. Since the first antenna 111 is a left-hand circularly polarized antenna and the second antenna 112 is a right-hand circularly polarized antenna, the right-hand circularly polarized electromagnetic wave signal cannot be received by the first antenna 111, but is received by the second antenna 112.
[0054] The detection signal is transmitted to the target object 3 and reflected by the target object 3 to obtain the target reflected signal. If the circular polarization attribute of the target reflected signal is the same as that of the detection signal, then the target reflected signal can be received by the first antenna 111 and transmitted to the transceiver module 120. If the circular polarization attribute of the target reflected signal is different from that of the detection signal, then the target reflected signal can be received by the second antenna 112 and transmitted to the transceiver module 120.
[0055] The statement that the circular polarization attribute of the target reflected signal is the same as that of the detection signal means that: when the detection signal is left-hand circularly polarized, the target reflected signal is also left-hand circularly polarized; when the detection signal is right-hand circularly polarized, the target reflected signal is also right-hand circularly polarized. In this embodiment, when the first antenna 111 is a left-hand circularly polarized antenna, the detection signal is left-hand circularly polarized. If the target reflected signal is left-hand circularly polarized, it indicates that the circular polarization attribute of the target reflected signal is the same as that of the detection signal. If the target transmitted signal is right-hand circularly polarized, it indicates that the circular polarization attribute of the target reflected signal is different from that of the detection signal.
[0056] Generally speaking, odd-numbered reflections of the detection signal by the target object 3 are usually a single reflection; while even-numbered reflections are usually a double reflection. The following is a detailed description of the cases where the target object 3 reflects the detection signal once and twice.
[0057] Please refer to the following: Figure 3 and Figure 4 If the circular polarization attribute of the target reflected signal is different from that of the detection signal, it indicates that the detection signal has undergone an odd number of reflections to obtain the target reflected signal. If the circular polarization attribute of the target reflected signal is different from that of the detection signal, the processing module 130 uses a first processing strategy to obtain the distance between the electronic device 1 and the target object 3. The first processing strategy will be described in detail later.
[0058] exist Figure 4 In the device, the surface of the target object 3 facing the electronic device 1 has a cavity 310. The cavity 310 includes one or more of the following: a receiving cavity, a hole, an angle, a pit, etc.
[0059] If the circular polarization property of the target reflected signal is the same as that of the detection signal, it indicates that the detection signal has undergone an even number of reflections to obtain the target reflected signal. Normally, when the detection signal illuminates the cavity 310 on the surface of the target object 3, the presence of the cavity 310 causes the detection signal to undergo an even number of reflections to obtain the reflected signal. Therefore, if the processing module 130 ignores the influence of the cavity 310 on the surface of the target object 3 when calculating the distance between the electronic device 1 and the target object 3, the calculated distance between the electronic device 1 and the target object 3 will be inaccurate.
[0060] The ranging method provided in this application, if the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, adopts a first processing strategy to obtain the distance between the electronic device 1 and the target object 3; if the circular polarization attribute of the target reflected signal is the same as the circular polarization attribute of the detection signal, adopts a second processing strategy to obtain the distance between the electronic device 1 and the target object 3. The second processing strategy includes eliminating interference caused by the cavity 310 of the target object 3, thereby improving the accuracy of measuring the distance between the electronic device 1 and the target object 3.
[0061] Further, in one embodiment, the first processing strategy includes: obtaining the distance D between the electronic device 1 and the target object 3 based on the flight speed of the detected signal and the flight time, satisfying: D=c T / 2; where c is the flight speed of the detection signal, and T is the time interval between the electronic device 1 receiving the target reflected signal and the first antenna 111 emitting the detection signal.
[0062] In one embodiment, the first processing strategy is executed by the first sub-processing module 131 of the electronic device 1. In this embodiment, c is the flight speed of the detection signal, a known number, equal to or approximately equal to the speed of light. In this embodiment, the time point at which the first antenna 111 emits the detection signal is T0, and the time point at which it arrives at the target object 3 is T1. Then, the time it takes for the detection signal to travel from the first antenna 111 to the target object 3 is T1-T0. The time point at which the transceiver module 120 receives the target reflected signal is T2. Then, the time it takes for the reflected signal to travel from the target object 3 to the transceiver module 120 is T2-T1. Wherein, T0 and T2 are known, and T2-T1=T1-T0. Therefore, the time interval T from the first antenna 111 to the target object 3 is T=(T2-T0). Then, when the first sub-processing module 131 calculates the distance D between the electronic device 1 and the target object 3 using the first processing strategy, D=c. T / 2=c (T2-T0) / 2=c TOF. TOF = (T2 - T0) / 2.
[0063] The ranging method provided in this application, when the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, employs a first processing strategy to obtain the distance D between the electronic device 1 and the target object 3, where D satisfies: D=c T / 2. Where c is the flight speed of the detection signal, and T is the time interval between the transceiver module 120 receiving the target reflected signal and the first antenna 111 emitting the detection signal. Therefore, it can be seen that the electronic device 1 provided in this embodiment can calculate the distance between the electronic device 1 and the target object 3 relatively accurately even when the circular polarization properties of the target reflected signal and the detection signal are different.
[0064] Furthermore, in one embodiment, the second processing strategy includes: obtaining the distance between the electronic device 1 and the target object 3 based on the flight speed, the time interval, the phase of the detection signal, and the phase of the target reflected signal.
[0065] In one embodiment, the second processing strategy is executed by the second sub-processing module 132 of the electronic device 1.
[0066] When the detection signal emitted by the first antenna 111 reaches the target object 3, the phase of the detection signal changes. The target object 3 reflects the detection signal, and the phase of the reflected signal also changes during transmission.
[0067] Therefore, the second processing strategy obtains the distance between the electronic device 1 and the target object 3 based on the flight speed, the time interval, the phase of the detection signal, and the phase of the target reflection signal, thereby eliminating the interference caused by the cavity 310 of the target object 3 and improving the accuracy of the distance between the electronic device 1 and the target object 3 calculated using the second processing strategy.
[0068] Furthermore, the phase change of the detection signal at the first reflection point of the target object 3 is φ1, the phase change of the detection signal from the first reflection point to the last reflection point is φ2, and the phase change of the detection signal from the last reflection point to the transceiver module 120 is φ3. The distance D between the electronic device 1 and the target object 3 satisfies: D = c TOF - Δd / 2; where Δd = Δφ λ / 2π, Δφ=(φ2+φ3)-φ1; c is the flight speed of the detection signal, T is the time interval between the transceiver module 120 receiving the target reflected signal and the first antenna 111 emitting the detection signal, and λ is the wavelength of the detection signal.
[0069] In this embodiment, c represents the speed of the detection signal, a known value, equal to or approximately equal to the speed of light. In this embodiment, the time when the detection signal is emitted by the first antenna 111 is denoted as T0, and the time when it reaches the first point of the target object 3 is denoted as T1. Therefore, the time it takes for the detection signal to travel from the first antenna 111 to the target object 3 is T1-T0. The time when the detection signal is reflected from the first point to the second point and reaches the second point is denoted as T2, and the time when the transceiver module 120 receives the reflected signal from the second point is denoted as T3. Therefore, the time interval T between the detection signal and the target object 3 is T = (T3-T0).
[0070] In this embodiment, when the ranging method calculates the distance between the electronic device 1 and the target object 3, it also utilizes the phase change of the detection signal during transmission, thereby improving the accuracy of calculating the distance between the electronic device 1 and the target object 3.
[0071] Please refer to the following: Figure 7 and Figure 9 , Figure 9 This is a flowchart of a ranging method provided in another embodiment of this application. The ranging method includes S110, S120, and S130, which are described in detail below.
[0072] S110, the first antenna 111 transmits a detection signal, wherein the first antenna 111 is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna.
[0073] S120: Receive the target reflected signal from the target object 3 and received by one of the first antenna 111 and the second antenna 112. In one embodiment, S120 can be performed by the transceiver module 120 in the electronic device 1.
[0074] S130: If the circular polarization attribute of the target reflected signal is different from that of the detection signal, a first processing strategy is used to obtain the distance between the electronic device 1 and the target object 3. If the circular polarization attribute of the target reflected signal is the same as that of the detection signal, a second processing strategy is used to obtain the distance between the electronic device 1 and the target object 3. The second processing strategy includes eliminating interference from the cavity 310 of the target object 3. In one embodiment, S130 can be executed by the processing module 130 in the electronic device 1.
[0075] Please refer to the previous descriptions for S110 and S130, which will not be repeated here.
[0076] S120 includes S121 and S122, which are described in detail below.
[0077] S121, Receive multiple reflected signals reflected by the target object 3 in response to the detection signal.
[0078] In S121, the first antenna 111 receives a reflected signal whose circular polarization property is the same as that of the detection signal, and the second antenna 112 receives a reflected signal whose circular polarization property is different from that of the detection signal.
[0079] S122, based on the signal strength of the plurality of reflected signals, retain the reflected signal with the strongest signal strength as the target reflected signal, and discard the remaining reflected signals among the plurality of reflected signals.
[0080] When the detection signal emitted by the first antenna 111 of the electronic device 1 reaches the target object 3, it may reach multiple parts of the target object 3 in certain situations. Each of these multiple parts reflects the detection signal, resulting in multiple reflected signals. The distance between the part closest to the first antenna 111 and the first antenna 111 is the distance between the electronic device 1 and the target object 3. The data obtained from the parts other than the part closest to the first antenna 111 are pseudorange points.
[0081] For example, in the schematic diagram of the implementation method Figure 7 In the diagram, the distance between electronic device 1 and point A of target object 3 is the shortest, while the distance between electronic device 1 and point B of target object 3 is greater than the distance between electronic device 1 and point A of target object 3. The detection signal emitted by electronic device 1 reaches point A of target object 3 and is reflected back to electronic device 1 from point A. The detection signal emitted by electronic device 1 reaches point B of target object 3 and is reflected back to point C of target object 3, where it is then received by electronic device 1. If the distance between electronic device 1 and point B of target object 3 is d1, the distance between point B and point C of target object 3 is d2, and the distance between point C and electronic device 1 is d3, then the distance between electronic device 1 and target object 3, obtained from the detection signal emitted by electronic device 1 to point B of target object 3 and the reflected signal reflected back to electronic device 1 from point C, is (d1+d2+d3) / 2. Therefore, point B', located at a distance of (d1+d2+d3) / 2 from electronic device 1, is not actually a point on target object 3; hence, point B' is also called a pseudorange point.
[0082] The distance between other parts of the target object 3 and the first antenna 111 is greater than the distance between the part closest to the first antenna 111 among the plurality of parts. Generally, signal strength decreases with increasing distance. Therefore, the processing module 130 can retain the strongest reflected signal as the target reflected signal based on the signal strength of the plurality of reflected signals, while discarding the remaining reflected signals, thereby improving the accuracy of measuring the distance between the electronic device 1 and the target object 3 based on the target signal obtained from the plurality of reflected signals.
[0083] Understandably, the plurality of reflected signals include both the reflected signals obtained by the target object 3 reflecting the detection signal an odd number of times and the reflected signals obtained by the target object 3 reflecting the detection signal an even number of times. Of the plurality of reflected signals, only the reflected signal with the strongest signal strength is retained as the target reflected signal, while the remaining reflected signals are discarded. This improves the accuracy of measuring the distance between the electronic device 1 and the target object 3 based on the target signal obtained from the plurality of reflected signals.
[0084] In conjunction with the ranging method provided in any of the preceding embodiments, in one embodiment, when measuring the distance between the electronic device 1 and the target object 3, in S110, the first antenna 111 emits multiple detection signals. Correspondingly, in S120, multiple target reflection signals are received. In S130, if the circular polarization attributes of the multiple target reflection signals are different from those of the detection signals, the processing module 130 uses a first strategy to obtain the distance between the electronic device 1 and the target object 3 based on the multiple target reflection signals. If the circular polarization attributes of the target reflection signals are the same as those of the detection signals, the processing module 130 uses a second processing strategy to obtain the distance between the electronic device 1 and the target object 3 based on the multiple target reflection signals.
[0085] For example, in one embodiment, in S130, a distance value is obtained based on each target reflection signal, multiple distance values are obtained based on the multiple target reflection signals, and the distance between the electronic device 1 and the target object 3 is obtained based on the multiple distance values. For example, in one embodiment, the average of the multiple distance values is the distance between the electronic device 1 and the target object 3. This improves the accuracy of the distance measurement between the electronic device 1 and the target object 3.
[0086] In another embodiment, in S130, a distance value is obtained based on each target reflection signal, multiple distance values are obtained based on the multiple target reflection signals, and the distance between the electronic device 1 and the target object 3 is obtained based on the multiple distance values. For example, in one embodiment, the average of the multiple distance values is the distance between the electronic device 1 and the target object 3. This improves the accuracy of the distance measurement between the electronic device 1 and the target object 3.
[0087] Furthermore, the application also provides a computer-readable medium. The computer-readable medium stores a computer program that, when executed, performs the ranging method as described in any of the preceding embodiments.
[0088] The computer-readable medium can be, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0089] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0090] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0091] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0092] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0094] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0095] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0096] The above description represents some embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications are also considered to be within the scope of protection of this application.
Claims
1. An electronic device, characterized in that, The electronic device includes: Antenna assembly, the antenna assembly comprising: The first antenna is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna, and the first antenna is used to emit a detection signal. The second antenna is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna. A transceiver module, electrically connected to the first antenna and the second antenna, is used to receive a target-reflected signal that is reflected by the target object and received through one of the first antenna and the second antenna; and The processing module, if the circular polarization attribute of the target reflected signal is different from the circular polarization attribute of the detection signal, uses a first processing strategy to obtain the distance between the electronic device and the target object; if the circular polarization attribute of the target reflected signal is the same as the circular polarization attribute of the detection signal, the processing module uses a second processing strategy to obtain the distance between the electronic device and the target object, wherein the second processing strategy includes eliminating interference caused by the cavity of the target object; Wherein, the phase change of the detection signal at the first reflection point of the target object is φ1, the phase change of the detection signal from the first reflection point to the last reflection point is φ2, and the phase change of the detection signal from the last reflection point to the transceiver module is φ3. The distance D between the electronic device and the target object obtained using the second processing strategy satisfies: D=c TOF-Δd / 2; Where, TOF=T / 2, Δd=Δφ λ / 2π, Δφ=(φ2+φ3)-φ1; c is the flight speed of the detection signal, T is the time interval between the transceiver module receiving the target reflected signal and the first antenna emitting the detection signal, and λ is the wavelength of the detection signal.
2. The electronic device as claimed in claim 1, characterized in that, The processing module includes: The first sub-processing module uses the first processing strategy to obtain the distance D between the electronic device and the target object, and D satisfies: D=c T / 2; Where c is the flight speed of the detection signal, and T is the time interval between the transceiver module receiving the target reflected signal and the first antenna emitting the detection signal.
3. The electronic device as described in claim 2, characterized in that, The processing module includes: The second sub-processing module uses the second processing strategy to obtain the distance between the electronic device and the target object based on the flight speed, the time interval, the phase of the detection signal, and the phase of the target reflection signal.
4. The electronic device as claimed in claim 1, characterized in that, The transceiver module receives multiple reflected signals from the target object in response to the detection signal; The processing module retains the reflection signal with the strongest signal strength as the target reflection signal based on the signal strength of the plurality of reflection signals, and discards the remaining reflection signals among the plurality of reflection signals.
5. A distance measurement method, characterized in that, The ranging method includes: The first antenna transmits a detection signal, wherein the first antenna is either a left-hand circularly polarized antenna or a right-hand circularly polarized antenna; Receive the target reflected signal from the target object and received by one of the first antenna and the second antenna; If the circular polarization property of the target reflected signal is different from that of the detection signal, a first processing strategy is used to obtain the distance between the electronic device and the target object. If the circular polarization property of the target reflected signal is the same as that of the detection signal, a second processing strategy is used to obtain the distance between the electronic device and the target object. The second processing strategy includes eliminating interference caused by the cavity of the target object. Wherein, the phase change of the detection signal at the first reflection point of the target object is φ1, the phase change of the detection signal from the first reflection point to the last reflection point is φ2, and the phase change of the detection signal from the last reflection point to the transceiver module is φ3. The distance D between the electronic device and the target object obtained using the second processing strategy satisfies: D=c TOF-Δd / 2; Where, TOF=T / 2, Δd=Δφ λ / 2π, Δφ=(φ2+φ3)-φ1; c is the flight speed of the detection signal, T is the time interval between the transceiver module receiving the target reflected signal and the first antenna emitting the detection signal, and λ is the wavelength of the detection signal.
6. The ranging method as described in claim 5, characterized in that, The first processing strategy includes: The distance D between the electronic device and the target object is obtained based on the flight speed and time interval of the detected signal, satisfying the following: D=c T / 2; Where c is the flight speed of the detection signal, and T is the time interval between the electronic device receiving the target reflected signal and the first antenna emitting the detection signal.
7. The ranging method as described in claim 6, characterized in that, The second processing strategy includes: The distance between the electronic device and the target object is obtained based on the flight speed, the time interval, the phase of the detection signal, and the phase of the target reflected signal.
8. The ranging method as described in claim 6, characterized in that, The target reflected signal, which is received by the target object reflecting the detection signal and received through one of the first antenna and the second antenna, includes: Receive multiple reflected signals from the target object in response to the detection signal; and Based on the signal strength of the plurality of reflected signals, the reflected signal with the strongest signal strength is retained as the target reflected signal, and the remaining reflected signals are discarded.
9. A computer-readable medium, characterized in that, The computer-readable medium is used to store a computer program, which, when executed, runs the ranging method as described in any one of claims 5-8.
Citation Information
Patent Citations
Positioning method and device, electronic equipment and computer readable storage medium
CN112637951A
Onboard radar apparatus
JP2002296348A