Distance determination methods, apparatus, equipment and storage media

CN117280236BActive Publication Date: 2026-09-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180097907.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2026-09-01
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

[0004]但是,由于两个通信设备之间可能存在障碍物,该障碍物会对载波信号进行折射,导致传输路径发生改变,进而导致基于相位差所确定的距离不能准确反映两个通信设备之间的距离

Benefits of technology

[0020]本申请实施例提供的确定距离的方案中,第一通信设备获取第一距离后,根据至少一个第一载波信号对应的振幅和第一相位差确定信道冲击响应,由于信道冲击响应指示第一载波信号的传输质量,且该第一载波信号的传输质量受载波信号的传输路径的影响,因此基于信道冲击响应对第一距离进行修正,可以消除由于障碍物对载波信号的折射对第一距离的影响,提高了确定的第一通信设备与第二通信设备之间的距离的准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117280236B_ABST
    Figure CN117280236B_ABST
Patent Text Reader

Abstract

A distance determination method, apparatus, device, and storage medium relate to the field of mobile communications. The method includes: acquiring a first distance between a first communication device and a second communication device, the first distance being determined based on at least one first phase difference, each first phase difference being determined by a first carrier signal received by the first communication device and a local clock signal of the first communication device, the first carrier signal being transmitted by the second communication device; determining a channel impulse response based on the amplitude and first phase difference corresponding to at least one first carrier signal; and correcting the first distance based on the channel impulse response to obtain a second distance, eliminating path loss caused by refraction of the carrier signal by obstacles in the first distance, so that the corrected second distance is closer to the actual distance between the two communication devices, thereby improving the accuracy of the determined distance between the first and second communication devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile communications, and in particular to a distance determination method, apparatus, device, and storage medium. Background Technology

[0002] With the rapid development of Bluetooth technology, Bluetooth ranging technology has been widely used. Any two communication devices that support Bluetooth technology can measure the distance between them by sending and receiving carrier signals.

[0003] For two communication devices that have established a connection, either communication device receives a carrier signal sent by the other communication device, determines the phase difference between the received carrier signal and the local clock signal, and can then determine the distance between the two communication devices based on this phase difference.

[0004] However, since there may be obstacles between the two communication devices, these obstacles will refract the carrier signal, causing the transmission path to change. Consequently, the distance determined based on the phase difference cannot accurately reflect the distance between the two communication devices. Summary of the Invention

[0005] This application provides a distance determination method, apparatus, device, and storage medium that eliminates path loss caused by the refraction of carrier signals by obstacles in the first distance, making the corrected second distance closer to the actual distance between two communication devices, thereby improving the accuracy of the determined distance between the first and second communication devices. The technical solution is as follows:

[0006] According to one aspect of this application, a distance determination method is provided, the method being performed by a first communication device, the method comprising:

[0007] A first distance is obtained between the first communication device and the second communication device. The first distance is determined based on at least one first phase difference. Each first phase difference is determined by a first carrier signal received by the first communication device and a local clock signal of the first communication device. The first carrier signal is sent by the second communication device.

[0008] Based on the amplitude and first phase difference corresponding to at least one of the first carrier signals, a channel impulse response is determined, wherein the channel impulse response indicates the transmission quality of at least one of the first carrier signals;

[0009] Based on the channel impulse response, the first distance is corrected to obtain the second distance.

[0010] According to one aspect of this application, a distance determining device is provided, the device comprising:

[0011] The distance acquisition module is used to acquire a first distance between the first communication device and the second communication device. The first distance is determined based on at least one first phase difference. Each first phase difference is determined by a first carrier signal received by the first communication device and a local clock signal of the first communication device. The first carrier signal is sent by the second communication device.

[0012] The determining module is configured to determine the channel impulse response based on the amplitude and a first phase difference corresponding to at least one first carrier signal, wherein the channel impulse response indicates the transmission quality of at least one first carrier signal;

[0013] The correction module is used to correct the first distance based on the channel impulse response to obtain the second distance.

[0014] According to one aspect of this application, a first communication device is provided, the first communication device comprising: a processor; a transceiver connected to the processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to load and execute the executable instructions to implement the distance determination method as described above.

[0015] According to one aspect of this application, a computer-readable storage medium is provided, wherein executable program code is stored therein, the executable program code being loaded and executed by a processor to implement the distance determination method as described above.

[0016] According to one aspect of this application, a chip is provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is operated on a communication device, are used to implement the distance determination method as described above.

[0017] According to one aspect of this application, a computer program product is provided, which, when executed by a processor of a communication device, is used to implement the distance determination method described above.

[0018] According to one aspect of this application, a computer program is provided that is executed by a processor of a communication device to implement the distance determination method described above.

[0019] The technical solutions provided in this application have at least the following beneficial effects:

[0020] In the distance determination scheme provided in this application embodiment, after the first communication device obtains the first distance, it determines the channel impulse response based on the amplitude and first phase difference corresponding to at least one first carrier signal. Since the channel impulse response indicates the transmission quality of the first carrier signal, and the transmission quality of the first carrier signal is affected by the transmission path of the carrier signal, the first distance can be corrected based on the channel impulse response, thereby eliminating the influence of the refraction of the carrier signal by obstacles on the first distance and improving the accuracy of the determined distance between the first communication device and the second communication device. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.

[0022] Figure 1 A block diagram of a communication system provided in an exemplary embodiment of this application is shown.

[0023] Figure 2 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0024] Figure 3 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0025] Figure 4 A flowchart of a channel impulse response determination method provided in an exemplary embodiment of this application is shown.

[0026] Figure 5 A structural diagram of the amplitude corresponding to each first carrier signal provided in an exemplary embodiment of this application is shown.

[0027] Figure 6 A structural diagram of the first phase difference corresponding to each first carrier signal provided in an exemplary embodiment of this application is shown.

[0028] Figure 7 A structural diagram of the channel impulse response provided in an exemplary embodiment of this application is shown.

[0029] Figure 8 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0030] Figure 9 This illustration shows a schematic diagram of the distance between a first communication device and a second communication device provided in an exemplary embodiment of this application.

[0031] Figure 10 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown.

[0032] Figure 11 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown.

[0033] Figure 12 A schematic diagram of the structure of a communication device provided in an exemplary embodiment of this application is shown. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0035] First, the communication system of this application will be described:

[0036] Figure 1 A block diagram of a communication system provided in an exemplary embodiment of this application is shown. The communication system may include: a first communication device 12 and a second communication device 13.

[0037] The first communication device 12 and the second communication device 13 may include an access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, wireless communication device, user agent, or user equipment. Optionally, the terminal device 13 may also be a cellular phone, cordless phone, SIP (Session Initiation Protocol) phone, WLL (Wireless Local Loop) station, PDA (Personal Digital Assistant), handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, vehicle-mounted device, wearable device, terminal device in 5GS (5th Generation System), or terminal device in the future evolved PLMN (Public Land Mobile Network), etc., and this application embodiment is not limited thereto. For ease of description, the devices mentioned above are collectively referred to as communication devices. Furthermore, the first communication device 12 and the second communication device 13 can be connected via Bluetooth.

[0038] The communication system described in this application is intended to more clearly illustrate the technical solutions of this application, and does not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of communication systems, the technical solutions provided in this application are also applicable to similar technical problems.

[0039] Figure 2 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown, which is applied to, for example... Figure 1 In the communication device shown, the method includes at least some of the following:

[0040] Step 201: The first communication device obtains the first distance between the first communication device and the second communication device.

[0041] The first distance is determined based on at least one first phase difference. Each first phase difference is determined by a first carrier signal received by the first communication device and the local clock signal of the first communication device, and the first carrier signal is transmitted by the second communication device. The first carrier signal is an unmodulated carrier signal.

[0042] In this embodiment, a Bluetooth connection is established between the first communication device and the second communication device, and communication between the two devices is based on this Bluetooth connection. For example, the first communication device can send a carrier signal to the second communication device through the Bluetooth connection, or the second communication device can send a second phase difference to the first communication device through the Bluetooth connection, or the first and second communication devices can also transmit other information through the Bluetooth connection. This embodiment does not limit the scope of the invention.

[0043] In this process, the first communication device sends a second carrier signal to the second communication device, the second communication device receives the second carrier signal, determines a second phase difference based on the received second carrier signal and the local clock signal of the second communication device, and sends the second phase difference to the first communication device.

[0044] In this embodiment of the application, the first communication device acquires at least one first phase difference, and the first distance between the first communication device and the second communication device can be determined based on the at least one first phase difference.

[0045] In some embodiments, the first distance is determined based on a first phase difference and a second phase difference. The first communication device acquires at least one first phase difference and at least one second phase difference, and determines the first distance based on the at least one first phase difference and at least one second phase difference.

[0046] The second phase difference is determined by the second carrier signal received by the second communication device and the local clock signal of the second communication device. The second carrier signal is transmitted by the first communication device. The second carrier signal is an unmodulated carrier signal.

[0047] Step 202: The first communication device determines the channel impulse response based on the amplitude and the first phase difference corresponding to at least one first carrier signal.

[0048] The channel impulse response indicates the transmission quality of at least one first carrier signal. After the second communication device transmits the carrier signal, the carrier signal will attenuate during transmission due to the influence of the transmission path, resulting in a decrease in the transmission quality of the carrier signal. Therefore, after the first communication device receives the first carrier signal from the second communication device, the transmission quality of the first carrier signal is reduced, and the amplitude of the first carrier signal will also decrease.

[0049] In this embodiment of the application, the first communication device can obtain the amplitude and first phase difference corresponding to at least one first carrier signal, and by processing the amplitude and first phase difference corresponding to at least one first carrier signal, obtain a channel impulse response indicating the transmission quality of at least one first carrier signal.

[0050] Step 203: The first communication device corrects the first distance based on the channel impulse response to obtain the second distance.

[0051] In this embodiment of the application, the channel impulse response indicates the transmission quality of the first carrier signal. Since the first carrier signal is refracted by obstacles during transmission, the transmission quality of the first carrier signal is affected by the transmission path. Therefore, by correcting the first distance based on the channel impulse response, the influence of the change in the transmission path caused by the refraction of the first carrier signal by obstacles on the first distance can be eliminated, and a second distance can be obtained.

[0052] In the distance determination method provided in this application embodiment, after the first communication device obtains the first distance, it determines the channel impulse response based on the amplitude and the first phase difference corresponding to at least one first carrier signal. Since the channel impulse response indicates the transmission quality of the first carrier signal, and the transmission quality of the first carrier signal is affected by the transmission path of the carrier signal, the first distance can be corrected based on the channel impulse response, thereby eliminating the influence of the refraction of the carrier signal by obstacles on the first distance and improving the accuracy of the determined distance between the first communication device and the second communication device.

[0053] Figure 2 The illustrated embodiment explains how the first communication device corrects for the first distance. While... Figure 2 Based on the illustrated embodiment, the first communication device needs to first determine a first distance between itself and the second communication device. The following explains how the first communication device determines this first distance. Figure 3 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown. See also: Figure 3 The method includes:

[0054] Step 301: The first communication device sends a second carrier signal of the first frequency to the second communication device.

[0055] The phase of the carrier signal at the first frequency is the same as the phase of the local clock signal of the first communication device.

[0056] Step 302: The second communication device receives a second carrier signal at a first frequency and obtains a second phase difference between the received second carrier signal at the first frequency and the local clock signal of the second communication device.

[0057] In this embodiment, the second communication device samples the received second carrier signal at the first frequency and the local clock signal of the second communication device, and determines a second phase difference based on the sampled data. In some embodiments, the second phase difference may also be referred to as a phase compensation value.

[0058] In some embodiments, the sampling method for the received second carrier signal at the first frequency includes IQ (In-phase Quadrature) sampling, intermediate frequency sampling, radio frequency sampling, or other types of sampling methods, which are not limited in the embodiments of this application.

[0059] Step 303: The second communication device sends a first carrier signal of a first frequency to the first communication device.

[0060] The phase of the first carrier signal at the first frequency is the same as the phase of the local clock signal of the second communication device.

[0061] Step 304: The first communication device receives a first carrier signal at a first frequency and obtains a first phase difference between the received first carrier signal at the first frequency and the local clock signal of the first communication device.

[0062] In this embodiment, the first communication device samples a first carrier signal at a first frequency and a local clock signal of the first communication device, and determines a first phase difference based on the sampled data. In some embodiments, this first phase difference may also be referred to as a phase compensation value.

[0063] In some embodiments, the sampling method for the received first carrier signal at the first frequency includes IQ sampling, intermediate frequency sampling, radio frequency sampling, or other types of sampling methods, which are not limited in the embodiments of this application.

[0064] Step 305: The second communication device sends the second phase difference to the first communication device.

[0065] It should be noted that the embodiments of this application are only illustrated by taking the execution of step 303 first and then step 305 as an example. In another embodiment, step 305 can be executed first, and then steps 303-304 can be executed. The embodiments of this application do not limit the execution order of steps 303 and 305.

[0066] Step 306: The first communication device obtains the first sum of the first phase difference and the second phase difference.

[0067] During the transmission of the second carrier signal at the first frequency from the first communication device to the second communication device, the phase of the second carrier signal will be shifted, and the phase of the local clock signal of the first communication device may also be different from that of the local clock signal of the second communication device. Therefore, the second phase difference obtained in this application embodiment includes the phase shift value caused by the transmission of the second carrier signal and the phase shift value of the local clock signal between the first communication device and the second communication device.

[0068] During the transmission of the first carrier signal at the first frequency from the second communication device to the first communication device, the phase of the first carrier signal will be shifted, and the phase of the local clock signal of the first communication device may also be different from the phase of the local clock signal of the second communication device. Therefore, the first phase difference obtained in this application embodiment includes the phase shift value caused by the transmission of the first carrier signal and the phase shift value of the local clock signal between the first communication device and the second communication device.

[0069] In this embodiment of the application, both the first phase difference and the second phase difference include the phase offset value of the local clock signal between the first communication device and the second communication device. Therefore, after obtaining the first sum of the first phase difference and the second phase difference, the phase offset value caused by the different phases of the local clock signal can be eliminated, thereby preventing the accuracy from being affected by the phase offset value of the local clock signal when determining the first distance.

[0070] Step 307: The first communication device adjusts the first frequency according to the frequency interval to obtain the second frequency. The first communication device executes the above steps 301, 304 and 306 according to the second frequency. The second communication device executes the above steps 302, 303 and 305 according to the second frequency.

[0071] In this embodiment, the frequency interval is set by the first communication device, by an operator, or by other means; this embodiment does not limit the setting. For example, the frequency interval may be 0.5 Hz, 1 Hz, or other values; this embodiment does not limit the setting.

[0072] In this process, the first communication device increases the frequency interval based on the first frequency to obtain the second frequency, and then executes steps 301-306 in sequence according to the second frequency.

[0073] Step 308: The first communication device determines the first distance between the first communication device and the second communication device based on the determined multiple first sums, the number of multiple first sums, the frequency interval, and the speed of light.

[0074] In this embodiment of the application, the first communication device obtains multiple first sums based on different frequencies. Based on the ratio of the speed of light to the frequency interval, the difference between any two adjacent first sums can be calculated as a remainder of the ratio of the frequency interval. The first distance between the first communication device and the second communication device is determined based on the average of the sums of the multiple remainders obtained.

[0075] In some embodiments, the first distance between the first communication device and the second communication device is calculated using the following formula:

[0076]

[0077] Where d is the first distance between the first communication device and the second communication device, N is the number of first sums, and f i -f i+1 For frequency intervals, θ i Let be the first sum of the i-th element, and c be the speed of light.

[0078] Figure 2 The illustrated embodiment explains how the first communication device corrects for a first distance. Figure 2 Based on the illustrated embodiment, the first communication device needs to perform an inverse Fourier transform on the amplitude and first phase difference corresponding to at least one first carrier signal to determine the channel impulse response. The following explains how the first communication device determines the channel impulse response. Figure 4 A flowchart of a channel impulse response determination method provided in an exemplary embodiment of this application is shown. See also: Figure 4 The method includes:

[0079] Step 401: The first communication device performs an inverse Fourier transform on the amplitude and the first phase difference of at least one first carrier signal to obtain at least one transform parameter.

[0080] In this embodiment of the application, if the first communication device needs to determine the channel impulse response, it first performs an inverse Fourier transform on the amplitude and the first phase difference corresponding to at least one first carrier signal to obtain at least one transform parameter.

[0081] In some embodiments, before performing an inverse Fourier transform on the amplitude and first phase difference corresponding to at least one first carrier signal, the first communication device first fuses the amplitude and first phase difference corresponding to the same first carrier signal to obtain a signal parameter, and then performs an inverse Fourier transform on the signal parameter corresponding to at least one first carrier signal to obtain at least one transform parameter.

[0082] The signal parameter is used to describe the amplitude and phase difference of the corresponding first carrier signal.

[0083] In some embodiments, the amplitudes and first phase differences corresponding to the multiple first carrier signals are sorted according to their frequencies, and then an inverse Fourier transform is performed on the sorted amplitudes and first phase differences corresponding to the multiple first carrier signals to obtain the channel impulse response.

[0084] Optionally, the array consisting of the amplitudes and first phase differences of the sorted first carrier signals can be called the channel frequency response.

[0085] Optionally, the amplitudes and first phase differences corresponding to the sorted first carrier signals can form an array, and then an inverse Fourier transform can be performed on the array to obtain multiple transform parameters.

[0086] In this embodiment of the application, the amplitudes and first phase differences of multiple first carrier signals are arranged in ascending order of frequency of the first carrier signals. An inverse Fourier transform is performed on the amplitudes and first phase differences of the sorted multiple first carrier signals to obtain multiple transform parameters.

[0087] Among them, each of the multiple first carrier signals has a corresponding frequency. If the amplitude and first phase difference of the first carrier signals are sorted in order of increasing frequency, the multiple first carrier signals can be converted between frequency dimension and time dimension.

[0088] The order of the impulse response components included in the channel impulse response is determined by the order of the amplitudes and first phase differences corresponding to multiple first carrier signals.

[0089] After sorting the amplitudes and phase differences corresponding to multiple first carrier signals, the first communication device determines the channel impulse response based on the amplitudes and phase differences corresponding to multiple first carrier signals. The signal impulse response includes multiple impulse response components arranged in ascending order of time in the time domain.

[0090] Among the multiple impulse response components included in the channel impulse response, a candidate impulse response component is an impulse response component whose amplitude is greater than that of the preceding impulse response component and also greater than that of the following impulse response component.

[0091] The amplitudes of the preceding and following impulse response components of the candidate impulse response component are both the amplitudes generated after the frequency of the first carrier signal shifts. However, the amplitudes of the candidate impulse response components are all greater than the amplitudes of the preceding and following impulse response components. This indicates that the amplitude of the candidate impulse response component is the amplitude generated when the frequency of the first carrier signal does not shift. Therefore, the candidate impulse response component can indicate the transmission path of the carrier signal received by the first communication device from the second communication device.

[0092] Optionally, the first communication device constructs a complex number from the amplitude and the first phase difference corresponding to each of the multiple first carrier signals, sorts the complex numbers of the multiple first carrier signals according to their frequencies, and performs an inverse Fourier transform on the sorted complex numbers of the multiple first carrier signals to obtain multiple transform parameters.

[0093] Step 402: The first communication device performs modulo operation on at least one transformation parameter to obtain the channel impulse response.

[0094] In this embodiment, the first communication device performs an inverse Fourier transform on the amplitude and the first phase difference corresponding to at least one first carrier signal to obtain at least one transform parameter. Each transform parameter incorporates the amplitude and the first phase difference corresponding to each first carrier signal, and the transform parameter indicates the amplitude of the first carrier signal in the time domain. Therefore, the channel impulse response is obtained by taking the modulus of the at least one transform parameter.

[0095] In some embodiments, the first communication device fuses the amplitude and the first phase difference corresponding to the same first carrier signal to obtain a signal parameter, performs an inverse Fourier transform on the signal parameter corresponding to at least one first carrier signal to obtain at least one transform parameter, which indicates the amplitude of the first carrier signal in the time domain. Therefore, by taking the modulus of at least one transform parameter, the channel impulse response can be obtained.

[0096] In some embodiments, the amplitudes and first phase differences corresponding to multiple first carrier signals constitute an array. An inverse Fourier transform is performed on this array to obtain at least one transform parameter. The modulus of the at least one transform parameter is then taken to obtain the channel impulse response.

[0097] In some embodiments, the length of the array after arranging the amplitudes and first phase differences corresponding to the N first carrier signals is N, and the array is represented by X(k), k = 0, 1, ..., N-1;

[0098] Furthermore, performing an inverse Fourier transform on this array X(k) yields another array of channel impulse responses, which is represented by the following formula:

[0099]

[0100] Where N is the number of first carrier signals, and X(k) is the amplitude and first phase difference corresponding to the kth first carrier signal.

[0101] For example, if the first communication device receives 40 first carrier signals and determines the amplitude and first phase difference corresponding to each first carrier signal, such as Figure 5 As shown, the horizontal axis represents frequency, and the vertical axis represents amplitude. Figure 5The amplitude corresponding to the first carrier signal with frequency k is shown. For example... Figure 6 As shown, the horizontal axis represents frequency, and the vertical axis represents amplitude. Figure 6 The first phase difference corresponding to the first carrier signal with frequency k is shown. The first communication device determines the channel impulse response based on the amplitude and first phase difference corresponding to these 40 first carrier signals, as shown in the diagram. Figure 7 As shown, the horizontal axis represents time, and the vertical axis represents amplitude. Figure 7 The channel impulse response is shown to consist of 40 impulse response components, each including time and amplitude.

[0102] In the distance determination method provided in this application embodiment, the first communication device can perform an inverse Fourier transform on the amplitude and first phase difference of at least one first carrier signal to determine the channel impulse response. This allows the first communication device to correct the first distance based on the channel impulse response, eliminating the path loss caused by the refraction of the carrier signal by obstacles in the first distance. This makes the corrected second distance closer to the actual distance between the two communication devices, improving the accuracy of the determined distance between the first and second communication devices.

[0103] Figure 2 The illustrated embodiment explains how the first communication device corrects for a first distance. Figure 2 Based on the illustrated embodiment, the channel impulse response includes multiple impulse response components, each including a time and a corresponding amplitude. The first communication device needs to first acquire the impulse response components that meet the requirements, and then correct the first distance based on these components. The following explains how the first communication device acquires the required impulse response components. Figure 8 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown. See also: Figure 8 The method includes:

[0104] Step 801: The first communication device obtains the target impact response component with an amplitude greater than the first reference threshold from multiple impact response components.

[0105] In this embodiment, the channel impulse response includes multiple impulse response components, and each impulse response component includes a time and a corresponding amplitude. Since the channel impulse response indicates the signal quality of the carrier signal received by any communication device from another communication device, and the signal quality is affected by the transmission path of the carrier signal, a target impulse response component with an amplitude greater than a first reference threshold is obtained from the multiple impulse response components. The first communication device can correct the first distance based on the obtained target impulse response component to eliminate the influence of the first distance on the refraction of the first carrier signal by obstacles.

[0106] In some embodiments, candidate impact response components are obtained based on multiple impact response components. The amplitude of a candidate impact response component is greater than the amplitude of the preceding impact response component and greater than the amplitude of the following impact response component. The candidate impact response component with an amplitude greater than a first reference threshold is determined as the target impact response component.

[0107] In this embodiment, the amplitudes and phase differences of multiple first carrier signals are arranged in ascending order of frequency. After performing an inverse Fourier transform on the amplitudes and phase differences of the sorted multiple first carrier signals, the conversion of the multiple first carrier signals from the frequency dimension to the time dimension is completed. The signal impulse response in the time domain includes multiple impulse response components arranged in ascending order of time.

[0108] Among the multiple impulse response components included in the channel impulse response, a candidate impulse response component is an impulse response component whose amplitude is greater than that of the preceding impulse response component and also greater than that of the following impulse response component. The amplitude of the preceding impulse response component of the candidate impulse response component is the amplitude caused by the frequency shift of the first carrier signal, the amplitude of the following impulse response component of the candidate impulse response component is the amplitude caused by the frequency shift of the first carrier signal, and the amplitude of the candidate impulse response component is the amplitude caused by the frequency not shifting of the first carrier signal. Therefore, the candidate impulse response component can indicate the transmission path of the carrier signal received by the first communication device from the second communication device.

[0109] Step 802: The first communication device corrects the first distance based on the target impact response component to obtain the second distance.

[0110] In this embodiment of the application, after obtaining the target impact response component, the first distance can be corrected to obtain the second distance.

[0111] In some embodiments, the first distance is corrected based on the target impact response components, frequency interval, and number of target impact response components to obtain the second distance.

[0112] The frequency interval is the interval between the frequencies corresponding to every two adjacent first phase differences.

[0113] Optionally, if the target impact response component includes time and amplitude, the first communication device can correct the first distance based on the time and amplitude of the target impact response component to obtain the second distance.

[0114] In this embodiment of the application, multiple target impact response components are sorted in ascending order of their time. Based on the time and amplitude of the sorted multiple target impact response components, the first distance is corrected to obtain the second distance.

[0115] Specifically, the difference between the time of each target impact response component and the time of the first target impact response is obtained. Then, the sum of the products of the amplitude of each target impact response component and the corresponding difference is obtained. The product of the first distance, the obtained sum, the number of target impact response components, the frequency interval, and the amplitude of the first target impact response component is obtained to obtain the second distance, thus completing the correction of the first distance.

[0116] For example, the second distance can be determined using the following formula:

[0117]

[0118] in, d is the second distance, d is the first distance, E(e) is the time of the (e+1)th target impact response component, x(E(e)) is the amplitude of the (e+1)th target impact response component, N is the number of target impact response components, and Δf is the frequency interval.

[0119] For example, such as Figure 9 As shown, there is a wall between the first communication device and the second communication device. The direct transmission path between the first communication device and the second communication device is d0. However, because the wall between the first communication device and the second communication device will refract the carrier signals transmitted and received between the first communication device and the second communication device, there will also be a refracted transmission path d1. That is, the first distance determined by the first communication device includes the influence of both transmission paths d0 and d1. After correcting the first distance using the method in this embodiment, the influence of the refracted transmission path d1 can be eliminated, so that the obtained second distance is the distance of the transmission path d0.

[0120] It should be noted that the embodiments in this application only illustrate the example of directly correcting the first distance based on the target impact response components. In another embodiment, the first communication device needs to first determine whether the number of acquired target impact response components meets the requirements before deciding whether to correct the first distance.

[0121] In some embodiments, if the number of target impact response components is greater than a first preset number, the first distance is corrected based on the target impact response components to obtain a second distance.

[0122] The first preset quantity is set by the first communication device, or by a protocol, or by an operator, or by other means; this embodiment of the application does not limit this. For example, the first preset quantity is 1, 2, or other values.

[0123] If the first communication device determines that the number of target impact response components is greater than the first preset number, it indicates that there is an obstacle between the first communication device and the second communication device. This obstacle will refract the carrier signal transmitted between the first communication device and the second communication device, causing the transmission path of the carrier signal to change. Consequently, the first distance determined by the first communication device is inaccurate, and the first distance needs to be corrected based on the target impact response components to obtain the second distance.

[0124] In other embodiments, the correction of the first distance is stopped when the number of target impact response components is not greater than a first preset number.

[0125] If the first communication device determines that the number of target impact responses is not greater than the first preset number, it indicates that there is no obstacle between the first communication device and the second communication device, and the carrier signal transmitted between the first communication device and the second communication device will not be refracted by the obstacle. The first distance between the first communication device and the second communication device is similar to the distance between the two communication devices, and there is no need to correct the first distance.

[0126] The first preset quantity is set by the first communication device, by the operator, or by other means. For example, the first preset quantity is 1, 2, or other values.

[0127] In other embodiments, when the number of target impact response components is greater than a second preset number, the first reference threshold is increased to obtain an increased second reference threshold. Target impact response components with amplitudes greater than the second reference threshold are obtained from the target impact response components. When the obtained target impact response components are greater than the first preset number but not greater than the second preset number, the first distance is corrected based on the target impact response components to obtain a second distance.

[0128] In this process, if the number of target impact response components is greater than the number of the first preset number, it indicates that the acquired target impact response components may include amplitudes not generated by carrier signals sent by the communication device. Therefore, it is necessary to first increase the first reference threshold to obtain the increased second reference threshold. Then, target impact response components with amplitudes greater than the second reference threshold are acquired from the target impact response components. If the acquired target impact response components are greater than the first preset number but not greater than the second preset number, the first distance is corrected based on the target impact response components to obtain the second distance. If the number of acquired target impact response components with amplitudes greater than the second reference threshold is still greater than the second preset number, the second reference threshold is further increased to obtain the increased reference threshold. This process continues until the number of target impact response components is greater than the first preset number but not greater than the second preset number. Based on the target impact response components, the first distance is corrected to obtain the second distance.

[0129] Optionally, if it is necessary to increase the first reference threshold, a first reference value can be added to the first reference threshold to obtain the second reference threshold. The first reference value is set by the first communication device, or by a protocol, or by an operator, or by other means; this embodiment of the application does not limit this. The first reference value can be 0.5, 1, or other values.

[0130] It should be noted that, in the embodiments of this application, when increasing other reference thresholds, the reference value can be added to the other reference thresholds, which will not be elaborated here.

[0131] In another embodiment, the correction of the first distance is stopped when the number of target impact response components is zero.

[0132] If the number of target impulse response components is zero, it indicates that the amplitude of the impulse response components is too small, the transmission quality of the indicated first carrier signal is poor, and it cannot indicate the transmission path of the first carrier signal. In this case, the first communication device stops correcting the first distance. Furthermore, in this embodiment, the target impulse response components do not meet the requirements, so the first communication device can also determine that the first distance is invalid.

[0133] In another embodiment, when the number of target impulse response components is zero, the first reference threshold is reduced to obtain a reduced third reference threshold. The target impulse response component with an amplitude greater than the reduced third reference threshold is obtained from the impulse response components of the channel impulse response. The step of correcting the first distance based on the target impulse response component to obtain the second distance is performed.

[0134] In this embodiment, if the number of target impulse response components is zero, it indicates that the first reference threshold is set too high, making it impossible to obtain target impulse response components with amplitudes greater than the first reference threshold from multiple impulse response components. Therefore, it is necessary to reduce the first reference threshold to obtain a reduced third reference threshold. Then, target impulse response components with amplitudes greater than the third reference threshold are obtained from the impulse response components of the channel impulse response. Based on the target impulse response components, the first distance is corrected to obtain the second distance.

[0135] If the first communication device still cannot obtain the target impulse response component with an amplitude greater than the third reference threshold from the impulse response component of the channel impulse response, then the third reference threshold is further reduced until the number of obtained target impulse response components is not zero. Based on the target impulse response components, the first distance is corrected to obtain the second distance.

[0136] Optionally, if it is necessary to reduce the first reference threshold, the second reference value can be reduced based on the first reference threshold to obtain the third reference threshold. The second reference value is set by the first communication device, or by a protocol agreement, or by an operator, or by other means; this embodiment of the application does not limit this. The second reference value can be 0.5, 1, or other values.

[0137] It should be noted that the above embodiments can be separated or freely combined, and this application does not limit the separation or combination of the embodiments.

[0138] Figure 10 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown. The apparatus includes:

[0139] The distance acquisition module 1001 is used to acquire a first distance between the first communication device and the second communication device. The first distance is determined based on at least one first phase difference. Each first phase difference is determined by a first carrier signal received by the first communication device and a local clock signal of the first communication device. The first carrier signal is sent by the second communication device.

[0140] The determining module 1002 is used to determine the channel impulse response based on the amplitude and first phase difference corresponding to at least one first carrier signal, wherein the channel impulse response indicates the transmission quality of at least one first carrier signal;

[0141] The correction module 1003 is used to correct the first distance based on the channel impulse response to obtain the second distance.

[0142] In some embodiments, see Figure 11 Module 1002 is defined as including:

[0143] The transformation unit 10021 is used to perform an inverse Fourier transform on the amplitude and the first phase difference of at least one first carrier signal to obtain at least one transformation parameter;

[0144] Modulus-taking unit 10022 is used to take the modulus of at least one transformation parameter to obtain the channel impulse response.

[0145] In some embodiments, the channel impulse response includes multiple impulse response components, each including a time and a corresponding amplitude. The correction module 1003 is used for:

[0146] From multiple impact response components, the target impact response component with an amplitude greater than the first reference threshold is obtained;

[0147] The first distance is corrected based on the target impact response components to obtain the second distance.

[0148] In some embodiments, the amplitudes and first phase differences corresponding to the plurality of first carrier signals are arranged in ascending order of frequency of the first carrier signals, and the order of the plurality of impulse response components is determined by the order of the amplitudes and first phase differences corresponding to the plurality of first carrier signals. The correction module 1003 is used for:

[0149] Based on multiple impact response components, candidate impact response components are obtained. The amplitude of a candidate impact response component is greater than the amplitude of the previous impact response component and the amplitude of the next impact response component.

[0150] Candidate impact response components with amplitudes greater than the first reference threshold are identified as target impact response components.

[0151] In some embodiments, the correction module 1003 is used to correct the first distance based on the target impact response components, the frequency interval, and the number of target impact response components to obtain a second distance.

[0152] The frequency interval is the interval between the frequencies corresponding to every two adjacent first phase differences.

[0153] In some embodiments, the correction module 1003 is used to correct the first distance based on the target impact response components to obtain a second distance when the number of target impact response components is greater than a first preset number.

[0154] In some embodiments, see Figure 11 The device also includes:

[0155] The stop module 1004 is used to stop correcting the first distance when the number of target impact response components is not greater than a first preset number.

[0156] In some embodiments, see Figure 11 The correction module 1003 includes:

[0157] The increasing unit 10031 is used to increase the first reference threshold when the number of target impact response components is greater than the second preset number, so as to obtain the increased second reference threshold, where the second preset number is greater than the first preset number.

[0158] The acquisition unit 10032 is used to acquire the target impact response component with an amplitude greater than the second reference threshold from the target impact response component;

[0159] The correction unit 10033 is used to correct the first distance based on the target impact response components when the obtained target impact response components are greater than a first preset number and not greater than a second preset number, so as to obtain a second distance.

[0160] In some embodiments, see Figure 11 The device also includes:

[0161] The stop module 1004 is used to stop correcting the first distance when the number of target impact response components is zero.

[0162] In some embodiments, see Figure 11 The device also includes:

[0163] The reduction module 1005 is used to reduce the first reference threshold when the number of target impact response components is zero, so as to obtain the reduced third reference threshold.

[0164] The component acquisition module 1006 is used to acquire the target impulse response component with an amplitude greater than the reduced third reference threshold from the impulse response components of the channel impulse response.

[0165] The correction module 1003 is used to perform the step of correcting the first distance based on the target impact response component to obtain the second distance.

[0166] In some embodiments, the first distance is further determined based on at least one second phase difference, each second phase difference being determined by a second carrier signal received by the second communication device and a local clock signal of the second communication device, the second carrier signal being transmitted by the first communication device.

[0167] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0168] Figure 12 The diagram shows a schematic representation of a first communication device provided in an exemplary embodiment of this application. The first communication device includes: a processor 1201, a receiver 1202, a transmitter 1203, a memory 1204, and a bus 1205.

[0169] The processor 1201 includes one or more processing cores. The processor 1201 executes various functional applications and information processing by running software programs and modules.

[0170] The receiver 1202 and the transmitter 1203 can be implemented as a communication component, which can be a communication chip.

[0171] The memory 1204 is connected to the processor 1201 via the bus 1205.

[0172] The memory 1204 can be used to store at least one program code, and the processor 1201 is used to execute the at least one program code to implement the various steps in the above method embodiments.

[0173] The memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disks or optical disks, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM (Erasable Programmable Read Only Memory), SRAM (Static Random Access Memory), ROM (Read Only Memory), magnetic storage, flash memory, and programmable read only memory (PROM).

[0174] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein executable program code is stored in the storage medium, the executable program code being loaded and executed by a processor to implement the distance determination method performed by the communication device provided in the above-described method embodiments.

[0175] In an exemplary embodiment, a chip is provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is run on a communication device, are used to implement the distance determination method as provided in the various method embodiments.

[0176] In an exemplary embodiment, a computer program product is provided, which, when executed by a processor of a communication device, is used to implement the distance determination method provided in the various method embodiments described above.

[0177] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0178] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A distance determination method, characterized in that, The method is performed by a first communication device, and the method includes: A first distance is obtained between the first communication device and the second communication device. The first distance is determined based on at least one first phase difference. Each first phase difference is determined by a first carrier signal received by the first communication device and a local clock signal of the first communication device. The first carrier signal is sent by the second communication device. Based on the amplitude and first phase difference corresponding to at least one first carrier signal, a channel impulse response is determined, wherein the channel impulse response indicates the transmission quality of at least one first carrier signal; the channel impulse response includes multiple impulse response components, wherein each impulse response component includes a time and a corresponding amplitude; From the plurality of impact response components, the target impact response component with an amplitude greater than the first reference threshold is obtained; Based on the target impact response components, the first distance is corrected to obtain the second distance; The step of correcting the first distance based on the target impact response component to obtain the second distance includes: The difference between the time of each target impact response component and the time of the first target impact response component is obtained. The sum of the products of the amplitude of each target impact response component and the corresponding difference is obtained. The second distance is obtained by multiplying the first distance, the sum, the number of target impact response components, the frequency interval, and the amplitude of the first target impact response component. The frequency interval is the interval between the frequencies corresponding to every two adjacent first phase differences.

2. The method according to claim 1, characterized in that, The determination of the channel impulse response based on the amplitude and first phase difference corresponding to at least one of the first carrier signals includes: Perform an inverse Fourier transform on the amplitude and the first phase difference of at least one of the first carrier signals to obtain at least one transform parameter; The channel impulse response is obtained by taking the modulus of at least one of the transformation parameters.

3. The method according to claim 1, characterized in that, The amplitudes and first phase differences corresponding to the plurality of first carrier signals are arranged in ascending order of frequency of the first carrier signals. The order of the plurality of impulse response components is determined by the order of the amplitudes and first phase differences corresponding to the plurality of first carrier signals. The step of obtaining the target impulse response component with an amplitude greater than a first reference threshold from the impulse response components of the channel impulse response includes: Based on the plurality of impact response components, candidate impact response components are obtained, wherein the amplitude of the candidate impact response component is greater than the amplitude of the preceding impact response component and greater than the amplitude of the following impact response component. Candidate impact response components with amplitudes greater than the first reference threshold are determined as the target impact response components.

4. The method according to claim 1 or 3, characterized in that, The step of correcting the first distance based on the target impact response component to obtain the second distance includes: If the number of target impact response components is greater than a first preset number, the first distance is corrected based on the target impact response components to obtain the second distance.

5. The method according to claim 4, characterized in that, The method further includes: If the number of the target impact response components is not greater than the first preset number, the correction of the first distance is stopped.

6. The method according to claim 4, characterized in that, When the number of target impact response components is greater than a first preset number, the first distance is corrected based on the target impact response components to obtain the second distance, including: When the number of target impact response components is greater than the second preset number, the first reference threshold is increased to obtain an increased second reference threshold, where the second preset number is greater than the first preset number. Obtain the target impact response component with an amplitude greater than the second reference threshold from the target impact response component; If the obtained target impact response component is greater than the first preset number and not greater than the second preset number, the first distance is corrected based on the target impact response component to obtain the second distance.

7. The method according to claim 1 or 3, characterized in that, The method further includes: When the number of the target impact response components is zero, the correction of the first distance is stopped.

8. The method according to claim 1 or 3, characterized in that, The method further includes: When the number of the target impact response components is zero, the first reference threshold is reduced to obtain a reduced third reference threshold. From the impulse response components of the channel impulse response, obtain the target impulse response component with an amplitude greater than the reduced third reference threshold; The step of correcting the first distance based on the target impact response component to obtain the second distance is performed.

9. The method according to any one of claims 1 to 3, characterized in that, The first distance is also determined based on at least one second phase difference, each second phase difference being determined by a second carrier signal received by the second communication device and a local clock signal of the second communication device, the second carrier signal being transmitted by the first communication device.

10. A distance determining device, characterized in that, The device includes: A distance acquisition module is used to acquire a first distance between a first communication device and a second communication device. The first distance is determined based on at least one first phase difference. Each first phase difference is determined by a first carrier signal received by the first communication device and a local clock signal of the first communication device. The first carrier signal is sent by the second communication device. The determination module is configured to determine a channel impulse response based on the amplitude and a first phase difference corresponding to at least one first carrier signal, wherein the channel impulse response indicates the transmission quality of at least one first carrier signal; the channel impulse response includes multiple impulse response components, wherein each impulse response component includes a time and a corresponding amplitude; The correction module is used to obtain the target impact response component with an amplitude greater than a first reference threshold from the plurality of impact response components; and to correct the first distance based on the target impact response component to obtain a second distance. Specifically, the correction module is used to obtain the difference between the time of each target impact response component and the time of the first target impact response component, obtain the sum of the product of the amplitude of each target impact response component and the corresponding difference, obtain the product of the first distance, the sum, the number of target impact response components, the frequency interval, and the amplitude of the first target impact response component to obtain the second distance; the frequency interval is the interval between the frequencies corresponding to every two adjacent first phase differences.

11. The apparatus according to claim 10, characterized in that, The determining module includes: The transformation unit is used to perform an inverse Fourier transform on the amplitude and the first phase difference of at least one of the first carrier signals to obtain at least one transformation parameter; A modulus-taking unit is used to take the modulus of at least one of the transformation parameters to obtain the channel impulse response.

12. The apparatus according to claim 10, characterized in that, The amplitudes and first phase differences corresponding to the plurality of first carrier signals are arranged in ascending order of frequency of the first carrier signals. The order of the plurality of impulse response components is determined by the order of the amplitudes and first phase differences corresponding to the plurality of first carrier signals. The correction module is used for: Based on the plurality of impact response components, candidate impact response components are obtained, wherein the amplitude of the candidate impact response component is greater than the amplitude of the preceding impact response component and greater than the amplitude of the following impact response component. Candidate impact response components with amplitudes greater than the first reference threshold are determined as the target impact response components.

13. The apparatus according to claim 10 or 12, characterized in that, The correction module is used to correct the first distance based on the target impact response components when the number of target impact response components is greater than a first preset number, so as to obtain the second distance.

14. The apparatus according to claim 13, characterized in that, The device further includes: The stop module is used to stop correcting the first distance when the number of the target impact response components is not greater than the first preset number.

15. The apparatus according to claim 13, characterized in that, The correction module includes: An increasing unit is used to increase the first reference threshold when the number of the target impact response components is greater than a second preset number, to obtain an increased second reference threshold, wherein the second preset number is greater than the first preset number. The acquisition unit is used to acquire the target impact response component with an amplitude greater than the second reference threshold from the target impact response component; The correction unit is used to correct the first distance based on the target impact response component when the obtained target impact response component is greater than the first preset number and not greater than the second preset number, so as to obtain the second distance.

16. The apparatus according to claim 10 or 12, characterized in that, The device further includes: A stop module is used to stop correcting the first distance when the number of the target impact response components is zero.

17. The apparatus according to claim 10 or 12, characterized in that, The device further includes: The reduction module is used to reduce the first reference threshold when the number of the target impact response components is zero, to obtain a reduced third reference threshold. The component acquisition module is used to acquire, from the impulse response components of the channel impulse response, the target impulse response component with an amplitude greater than the reduced third reference threshold; The correction module is used to perform the step of correcting the first distance based on the target impact response component to obtain the second distance.

18. The apparatus according to any one of claims 10 to 12, characterized in that, The first distance is also determined based on at least one second phase difference, each second phase difference being determined by a second carrier signal received by the second communication device and a local clock signal of the second communication device, the second carrier signal being transmitted by the first communication device.

19. A first communication device, characterized in that, The first communication device includes: processor; A transceiver connected to the processor; Memory for storing the executable program code of the processor; The processor is configured to load and execute the executable program code to implement the distance determination method as described in any one of claims 1-9.

20. A computer-readable storage medium, characterized in that, The readable storage medium stores executable program code, which is loaded and executed by a processor to implement the distance determination method as described in any one of claims 1 to 9.

21. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; the processor of the communication device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the communication device to perform the distance determination method as described in any one of claims 1 to 9.

22. A computer program, characterized in that, The computer program is executed by the processor of the communication device to implement the distance determination method as described in any one of claims 1 to 9.

23. A chip, characterized in that, The chip includes programmable logic circuitry and / or program instructions, which, when the chip is run on a communication device, are used to implement the distance determination method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Distance measurement method and device

    CN107367723A

  • Indoor positioning method combining ranging and fingerprinting based on Wi-Fi network

    CN108650628A