The present invention relates to methods for determining a distance between a first radio frequency devices and a second radio frequency device, and to a radio frequency transceiver device performing the methods.
It is often useful to estimate the distance between two communicating radio frequency nodes. For instance, estimating the distance between two radio frequency devices can be useful for triggering proximity-based actions on one or both of the devices (e.g. to trigger an alert if two devices become too close or too far from one another). This distance can be determined by analysing radio frequency signals traveling between the two nodes.
Conventional approaches to distance estimation using RF signals involve phase based ranging techniques, in which a first radio frequency device, referred to as an initiator, transmits a constant tone using a local oscillator (LO). The second radio frequency device, referred to as a reflector, who has a local oscillator (LO) at the same frequency as the first frequency device measures a first phase difference ψir, between its LO and the constant tone. Then the roles are switched, and reflector sends a constant tone, while the initiator measures a second phase difference ψri. The sum of the two phase-differences is related to the distance between the first radio frequency device and the second radio frequency according to
where f is the shared LO frequency, v is the speed of light in the medium.
By taking phase measurements over at least two frequencies, e.g. f1, f2 it is possible to determine the distance according to:
In order to improve the quality of the distance estimate in the presence of phase error, phase measurements are performed on all possible channels within a frequency band, and the distance is determined using a linear regression solving for the slope of the phase difference as a function of f.
However, due to phase wrapping the determined distance has infinite possible solutions
where k is any integer, which for a 2 MHz channel spacing leads to an ambiguity of multiples of 75 m from the real distance. Thus, with uniform spaced measurements it is limited how far apart it is possible to separate channels as this reduces the maximum resolvable range of the system. However, the frequencies should be separated as far as possible to reduce the influence of the phase estimation error on the distance which scales by l(f1−f2) as shown above. Determining the slope of the phase difference as a function of f requires correct phase unwrapping of the data. Correct phase unwrapping is difficult if phase measurements are missing for certain frequencies or have been corrupted by RF interference.
Phase measurements may be missing for various reasons, such as packet loss due to interference, when using channel hopping schemes, such as the pseudo-random schemes used in Bluetooth Low Energy (BLE), or when protocols restrict use of certain frequencies, such as BLE primary advertising channels. Furthermore, even in the absence of ambiguity and phase unwrapping error, it is desirable to have the slope estimation performed over frequencies as widely separated as possible to provide improved accuracy, but with fewest frequencies as possible to provide minimum measurement latency and energy consumption.
In view of the above it is desirable to provide a method for determining a distance between a first radio frequency devices and a second radio frequency device, and a radio frequency transceiver device, that solves or at least mitigates one or more of the aforementioned problems related to determining the distance between two radio frequency devices.
In a first aspect, the invention provides method for determining a distance between a first radio transceiver device and a second radio transceiver device, the method comprising:
Measuring on non-uniformly spaced channels mitigates problems with measurements on uniform spaced channels, such as limitations on how far it is possible to separate channels for reducing the influence of the phase estimation error on the calculated distance. The method for determining the distance between two radio transceiver devices is tolerant to missing phase measurements. Thus the method is applicable for use in situations where phase measurements is missing, such as packet loss due to interference, when using channel hopping schemes, such as the pseudo-random schemes used in Bluetooth Low Energy (BLE), or when protocols restrict use of certain frequencies, such as BLE primary advertising channels.
In one embodiment, the plurality of radio channels may be a subset of a frequency band comprising of uniformly spaced radio channels.
As the method is tolerant to missing phase measurements, the method only requires to perform phase measurements on a subset of the frequency band, such that distance estimation is performed over frequencies as widely separated as possible to improve accuracy, but with fewest frequencies as possible to provide minimum measurement latency as well as reducing power consumption of the radio transceiver devices.
In one embodiment, the first set of estimate candidates and the second set of candidates comprises candidates of the distance between the first radio transceiver device and the second transceiver device. Thus, the distance between the two radio transceiver devices may be estimated from a limited number of phase measurement.
In one embodiment, the first set of estimate candidates and the second set of candidates may comprise candidates of a time offset between the first radio transceiver device and the second transceiver device, and the step of calculating the distance between the first radio transceiver device and the second radio transceiver device may further comprising
In this manner the time-offset between the two radio transceiver devices may be estimated from a limited number of phase measurement, and the time-offset may be used so that the rest of phase measurements are one way measurements, thus reducing power consumption of the radio transceiver devices.
In one embodiment, the superset of the plurality of radio channels used to calculate the time offset may comprise the frequency band comprising of uniformly spaced radio channels. The frequency band may comprise 75 radio frequencies uniformly spaced at 1 MHz or 37 radio frequencies spaced at 2 MHz.
In a second aspect, the invention provides radio frequency transceiver device arranged to
The second aspect of the invention and the embodiments thereof provides the same advantages as the embodiment of the first aspect of the invention.
In one embodiment of the second aspect, the plurality of radio channels may be a subset of a frequency band comprising of uniformly spaced radio channels.
In one embodiment the second aspect, the first set of estimate candidates and the second set of candidates may comprise candidates of the distance between the first radio transceiver device and the second transceiver device.
In one embodiment the second aspect, the first set of estimate candidates and the second set of candidates may comprise candidates of a time offset between the first radio transceiver device and the second transceiver device, the step of calculating the distance between the first radio transceiver device and the second radio transceiver device may further comprising:
In one embodiment of the second aspect, the superset of the plurality of radio channels used to calculate the time offset may comprise the frequency band comprising of uniformly spaced radio channels. The frequency band may comprise 75 radio frequencies uniformly spaced at 1 MHz or 37 radio frequencies spaced at 2 MHz.
Following drawings are appended to facilitate the understanding of the invention. The drawings show embodiments of the invention, which will now be described by way of example only, where:
In the following, embodiments of the invention will be discussed in more detail with reference to the appended drawings. It should be understood, however, that the drawings are not intended to limit the invention to the subject-matter depicted in the drawings.
In use, the transmitter 102, of the first radio frequency transceiver 100 sequentially transmits radio frequency signals 105 on a plurality of radio channels. Each radio channel being defined by a carrier frequency. The radio frequency signals 105 are received by the receiver 114 of the second radio frequency transceiver device 110. The transmitter 112 of the second radio frequency transceiver device 110 sequentially transmits radio frequency signal 115 on the plurality of radio channels. The radio frequency signals 115 are received by the receiver 104 of the first radio transceiver device 100. The received radio frequency signal 105, 115 is used to estimate the distance d between the first and second radio transceiver devices 100, 110, as described in more detail with reference to
A method 200 of determining the distance, d, between the first radio transceiver device 100 and the second radio transceiver device 110 will now be described with reference to
In this example, in step 201, the first radio transceiver device 100, sequentially transmits, from the first radio transceiver device 100 to the second radio transceiver device 110, radio frequency signals 105 on a plurality of radio channels. Each channel is non-uniformly spaced and representing a distinct continuous tone. The second radio transceiver device 110, in step 202, measures (e.g. using the processor 111) the phase difference of the radio frequency signals 105 on each radio channel received from the first radio transceiver device 100. The second radio transceiver device 110, in this configuration referred to as the reflector, measures the phase difference ψir, between its LO 113 and the received radio frequency signal 105. The distinct continuous tone of the received radio frequency signal is generated by the LO 103 of the first radio transceiver device 100. Both LO's 103, 113 are set to the same frequency.
The plurality of radio channels may be a subset of a frequency band comprising of uniformly spaced radio channels. The frequency band comprising of uniformly spaced radio channels may be defined as f=f0+nΔf, where n is an integer, signifying the channel number, and Δf is the channel spacing. In one embodiment of the present invention, non-uniformly spaced channels are selected by choosing random integers n in a non-linear sequence, such as n=4, 51, 78.
The frequency band comprising of uniformly spaced radio channels may for example comprise 75 radio frequencies uniformly spaced at 1 MHz such as for Bluetooth, or 37 radio frequencies spaced at 2 MHz, such as for Bluetooth Low Energy (BLE). In an exemplary embodiment, f0=2400 MHZ, Δf=1 MHz and n=4, 51, 78, then the three frequencies in use are 2404, 2451 and 2478 MHz.
In step 203, the second radio transceiver device 110, i.e. the second radio transceiver device 110, sequentially transmits, from the second radio transceiver device 110 to the first radio transceiver device 100, radio frequency signals 115 with distinct continuous tones on same channels as those received from the first radio transceiver device 100. The second radio transceiver device 110 also transmits the measured phase difference of the radio frequency signal 105 on each radio channel received from the first radio transceiver device, i.e. ψir(f). The measurement may be transmitted over a separate datalink or via modifying the phase of the reflected signal.
In step 204, the first radio transceiver device 100, measures (e.g. using the processor 101) the phase difference of the radio frequency signals 115 on each radio channel received from the second radio transceiver device 110. The first radio transceiver device 100, in this configuration referred to as the initiator, measures the phase difference ψri, between its LO 103 and the received radio frequency signal 115. The distinct continuous tone of the received radio frequency signal is generated by the LO 113 of the second radio transceiver device 110. Both LO's 103, 113 are set to the same frequency, which are locked for each device 100, 110 during these steps.
The relative phase between signal paths is described above a function of the distance travelled between the first and second radio transceiver devices 100, 110. In addition, there may be an additional phase offset for each frequency, reflecting the delay of the radio signal chain, that may be calibrated to an offset constant over each RF frequency.
The signal received at the second radio transceiver device 110, i.e. the reflector, is then given by
where h(dl) is the real-valued amplitude of the lth path at distance dl; θi(n), θr(n) is the phase of the initiator LO 103 and reflector LO 104 respectively, ψir,0 is a constant phase offset common to each of the second radio transceiver 110 measurements, and vr(n) is a noise term. Similarly, the signal received at the first radio transceiver device 100, i.e. the initiator, is given by
where ψri,0 is a constant phase offset common to each of the first radio transceiver 100 measurements, and vi (n) is a noise term. The resulting relative phase is given by
where η(η) is a noise term and ψ0=ψir+ψri.
The inventor has realized that the method of the present invention may resolve the strongest path even if another strong path is relatively close. It may be assumed that there is a single path and the above equation may be simplified to
where mod[·]γ is the modulo function with a range [0, γ), ψ0 is a system independent constant, ξ(n) is the phase measurement error. Therefore, for a set of values of N values of n, this may be written in vector form as
where ψ∈N×1 is the vector of phase measurements, n∈
N×1 is the vector of channel numbers, 1∈
N×1 consists of all 1's, and ξ.
Defining θ=ω/(2π), ζ=ξ/(2π) α=2Δfd/v and
the above equation may be written as
Defining a metric
then finding the distance estimate may be performed by solving
and then solving for
The expression may be minimized as a function of β giving
Inserting this equation back into the previous equation gives
A lattice AN-1* is defined as the set of points in N as
The distance estimate above may then be rewritten as
This is equivalent to, for each possible value of a, finding the closest lattice point {tilde over (p)} to the point αñ−{tilde over (θ)}.
In step 205, the first radio transceiver device 100 creates a first set of distance estimates candidates
which leads to a set of corresponding a values
Then for each distance estimate candidate
Then in step 206, the first radio transceiver device 100, repeatedly for the set of measured phase differences values of N values of n plurality radio channels, determines an optimal phase unwrapping candidate based on the first set of distance candidates D1 and the measured phase differences of signals received on the first and the second transceiver devices to determine a second set of distance candidates D2. Step 206 may be performed using the following calculation steps:
An optimal value for the vector p, i.e. the unwrapping vector, may be obtained by
Then, for each value of {circumflex over (p)}(
that after some algebraic manipulation gives
and in turn gives
This leads to a new set of α candidates:
and a corresponding set of distance candidates:
Then in step 207, the distance d, i.e.
A third metric M3(
Then all M3(
which is used to obtain the distance estimate.
The above method describes distance estimation using two-way ranging (2WR), where both radio transceiver devices 100, 110, e.g. initiator and reflector, send tones and performs measurements.
In a first step of the simulation, two distinct random channels are chosen from the BLE data channel set. A phase measurement is performed on each channel and then a distance estimate is performed using the method of the present invention. Then in the next steps of the simulation, additional random channels is chosen, distinct from the previously chosen channels, and a new phase measurements is performed. Each channel is selected such that the vector n has a lowest common divisor of 1, otherwise there would be multiple solutions for a. This may be done by for example, regenerating the channel sequence by a common seed for the radio transceiver devices until a set of channels with lowest common divisor of 1 is found. Alternatively, a random sequence of minimum length may be generated, and channels added until a set of channels with lowest common divisor of 1 is found.
shown in the plot. The initial distance candidate is 40.10 m and the new distance estimate 0.88 m.
This illustrates that using the method of the present invention only a handful of frequencies, 3-5 are required to achieve a good estimate of the distance between two radio transceiver devices.
An alternative method 600 of 2WR is asymmetric 2WR, where for a subset of the tones, the tones are sent in two directions is illustrated in
When the first and second radio transceiver devices 100, 110, exhibit phase coherence, i.e. the phase of the transmitted and signal is predictable over all frequency hops, then these 5 channels can be used to resolve the time offset ΔT. The time offset ΔT may then be used to determine the distance, d, between the two radio transceiver devices, 100, 110, using regular 1WR methodologies by calculating the distance estimate directly from the values of ψir(f) or ψri(f) as described below.
Then we can write
Thus, the distance, d, between the two radio transceiver devices, 100, 110, can by calculated directly from the values of ψir(f) or ψri(f) when the value of ΔT is constant over the duration of an event. Constant ΔT can be obtained by precise timing of frequency shifts, e.g. by ensuring the LO phase is shifted by the same amount on both the first radio transceiver device and the second radio transceiver device at the start of each step. For example, by ensuring that the phase is continuous between steps. In addition, any frequency offset Δf between the first and second transceiver devices, 100, 110, for each frequency should be known and corrected for.
The frequency offset may be observed as each RF frequency is derived from a common source, e.g. a crystal oscillator. This may result in a frequency offset given by FFO*f, where FFO is the fractional frequency offset of the crystal oscillator.
Within any step, the effect of the frequency offset of the radio transceiver devices causes both a phase offset in the reflector measurement and the initiator measurement.
The effect of the frequency offset Δf=fi−fr results in a phase error at the reflector ΔϕR. This error is given by
The tone sent by the reflector comes at a time, TD, after the start of the tone sent by the initiator. This may be denoted as the dwell-time. This results in a time difference in the center of both phase measurements, i.e. the dwell time TD=NAPTPM+TRD+TlP1. At the initiator, the phase error at the reflector, Δϕl, is therefore given by
and the combined phase error is
Given that both reflector and initiator before a phase measurement of duration TPM and the initiator starts its phase measurement a time TP later than the reflector, in this case a frequency offset will be
where TPM is the duration of the phase measurement at the reflector and initiator, and
Thus, in this case
When Δf is known, the term −2ππf(TD+TPM) may be removed. Methods of determining Δf comprises in one embodiment performing a precise frequency estimation over a long frequency estimation tone, and estimating the frequency offset, and calculating the FFO based on this. The estimate of the FFO may then be used to correct the values of θ(f). In another embodiment, the initiator may attempt to minimize the frequency offset by tuning it's local oscillator to the value expected from extrapolating the measured FFO.
It may then be assumed that the phase difference between the LOs 103, 113 is a function of the time difference between the first radio transceiver device 100 and the second radio transceiver device 110, e.g.
Repeating that the signal received at the second radio transceiver device 110, i.e. the reflector, is given
and the signal received at the first radio transceiver device 100, i.e. the initiator, is
Meaning that the relative phase angle of yr*(n)yi(n) is given by
that as described above may be simplified to
Replacing the time-of-flight d/c with the time offset ΔT in the above equations gives α=2ΔfΔT and β=2f0ΔT+ψ0/2π
Using the same metrics as defined above with reference to the distance estimates, in step 605, the first radio transceiver device 100 creates a first set of time offset estimate candidates ΔT1. Then in step 606, the first radio transceiver device, repeatedly for the set of measured phase difference values of N values of n plurality radio channels, determines an optimal phase unwrapping vector candidate based on the first set of time offset estimate candidates and the measured phase differences of signals received on the first and second transceiver device 100, 110, to determine second set of time offset candidates ΔT2. Then in step 607, the time offset ΔT between the first radio transceiver device 100 and the second transceiver device 100 is calculated using the using the optimal phase unwrapping vector candidate and the second set of time offset candidates ΔT2.
Using the time offset ΔT, the second radio frequency device 110, may solve for θi(n)−θr(n) obtaining
Then the second radio frequency device 110, in step 608, may determine the distance d between the first radio transceiver device 100 and the second transceiver device 100 by measuring the phase difference of the radio frequency signals on each radio channel received from the first radio transceiver device 100 on a superset, S, of the plurality of radio channels used to calculate the time offset. In one example, there may be N radio channels where tones are sent in two directions, i.e. 2-way radio channels, and L radio channels where tones are sent in one direction, i.e. 1-way channels. Up to and including N channels may then be used to calculate the time offset. Up to and including L+N channels may be used to determine the distance. Thus, in this example, the superset S may comprise up to and including L+N radio channels. Any suitable subset of the superset of L+N may be used to determine the distance, d. In one example, the plurality of radio channels may be a subset, N, of a frequency band comprising of uniformly spaced radio channels. The frequency band may for example comprise of 75 radio frequencies uniformly spaced at 1 MHz or 37 radio frequencies spaced at 2 MHz. The subset, N, may in one embodiment comprise of 5 to 10 radio channels. The superset, S, of the plurality of radio channels used to calculate the time offset may in one embodiment comprise all or a subset of the radio channels of the frequency band comprising of uniformly spaced radio channels.
In the preceding description, various aspects of the method and radio frequency transceiver device according to the invention have been described with reference to the illustrative embodiment. For purposes of explanation, specific numbers, systems and configurations were set forth in order to provide a thorough understanding of the system and its workings. However, this description is not intended to be construed in a limiting sense. Various modifications and variations of the illustrative embodiment, as well as other embodiments of the method and image processing device, which are apparent to persons skilled in the art to which the disclosed subject matter pertains, are deemed to lie within the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
20211506 | Dec 2021 | NO | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2022/085611 | 12/13/2022 | WO |