The present application claims the benefit of and priority to EP patent application Ser. No. 23173721.4, filed May 16, 2023, the entire contents of which is incorporated herein by reference.
The present inventive concept relates to a method of phase-based ranging between a first device and a second device. Further, it relates to a device configured to perform the method, and to a non-transitory computer-readable medium comprising instructions which, when executed by a computer or processor, causes the computer or processor to carry out the method.
Methods of phase-based ranging are known in the prior art, wherein a range, i.e., a distance, between a first device and a second device may be determined based on two-way phase measurements between the first device and the second device at a plurality of frequencies, the frequencies conventionally referred to in the field as “tones ”.
Conventionally, a linear frequency sweep may be used for making the plurality of two-way phase measurements at the plurality of frequencies.
Typically, fast Fourier transform (FFT)-based algorithm and/or so-called super-resolution algorithms may be used to estimate the range based on the plurality of two-way phase measurement measurements.
In the presence of Doppler shift, e.g., during movement of one or both of the devices, the range estimate will be biased. Such a bias may be removed using the method proposed in U.S. Pat. No. 11,184,048 B2. However, that method depends on the employing of a linear frequency sweep and is thus not usable in the case of pseudo-random channel hopping, e.g., as mandated by US FCC regulation 47 CFR § 15.247.
In view of the above, an objective of the present inventive concept is to provide a Doppler-compensated phase-based ranging method employable in the case of pseudo-random channel hopping.
According to an aspect of the present inventive concept, there is provided a method of phase-based ranging between a first device and a second device, comprising receiving a plurality two-way phase-measurements between the first device and the second device performed at a plurality of frequencies; identifying a first measurement and a second measurement of said plurality of two-way phase measurements, said first measurement and said second measurement having been performed at a same frequency; calculating a relative speed between said first device and said second device based at least on said first measurement and said second measurement; doppler-compensating a plurality of measurements of said plurality of two-way phase measurements based on the calculated relative speed; and calculating a distance between said first device and said second device based on the doppler-compensated measurements.
The present inventive concept allows for doppler-compensated phase-based ranging to occur even in the case of the two-way phase measurements not following a linear frequency sweep, for example in the case of pseudo-random channel hopping, thus allowing for accurate phase-based ranging while allowing for regulatory compliance with regard to, e.g., pseudo-random channel hopping.
Each two-way phase measurement of said plurality of two-way phase measurements may be a pair of in-phase, I, and quadrature, Q, measurements; a phase-magnitude-pair; or any other pair of numbers representable as a complex number. This may be a convenient way of carrying out and/or representing the two-way phase measurements.
The frequencies of said plurality of two-way phase measurements may be pseudo-randomly ordered in time. This may be a typical government regulation and/or standards requirement where the present inventive concept may be particularly advantageous.
For example, the pseudo-random order in time of the frequencies of said plurality of two-way phase measurements may be according to US FCC regulation 47CFR § 15.247.
The calculating of said distance may be performed using a fast Fourier transform, FFT, ranging algorithm, or a superresolution ranging algorithm. These are particularly beneficial applications of the present inventive concept.
Said relative speed may calculated based on a phase difference between said second measurement and said first measurement, said same frequency, and a time difference between said second measurement and said first measurement. This is a particularly simple way of carrying out the invention.
Said relative speed may be calculable as:
wherein {circumflex over (v)} is the estimated relative speed, c is the speed of light, fv is said same frequency, ΔT is a time difference between said second measurement and said first measurement, and Δϕ is a phase difference between said second measurement and said first measurement.
A doppler compensation of said doppler-compensating may be calculated based on the frequency of the measurement, the estimated relative speed, the time of measurement at the first device and the time of measurement at the second device. This is a particularly simple way of carrying out the invention.
In particular, a doppler compensation of said compensating may be calculable as:
wherein f is the frequency of the measurement, {circumflex over (v)} is the estimated relative speed, c is the speed of light, tA is a time of measurement at the first device and tB is a time of measurement at the second device.
According to another aspect, there is provided a device configured to perform the method. This aspect may generally present the same or corresponding advantages as the former aspect.
According to another aspect, there is provided a non-transitory computer-readable medium comprising instructions which, when executed by a computer or processor, causes the computer or processor to carry out the method. This aspect may generally present the same or corresponding advantages as the former aspects.
The above, as well as additional objects, features, and advantages of the present inventive concept, will be better understood through the following illustrative and non-limiting detailed description, with reference to the appended drawings. In the drawings like reference numerals will be used for like elements unless stated otherwise.
The present disclosure relates to phase-based ranging. For example, it may apply to Bluetooth Low Energy (BLE) devices, where, for example, High Accuracy Distance Measurements (HADM) and/or, Channel Sounding (CS), may allow for measuring the distance between two BLE devices phase-based ranging.
Phase-based ranging may be preferred in multi-path channels as it is known to be resilient against multi-path interference.
To compute the distance between the two devices, such as two BLE devices, using phase-based ranging, the devices may perform two-way phase measurements at a plurality of tones.
When a device is moving during the measurement procedure, the radio channel changes due to the Doppler effect, which degrades the computed distance as the Doppler adds phase-shift to, e.g., the measured IQ samples.
The phase shift added by the Doppler effect is a function of the displacement of the moving device. The error sensitivity of the distance estimation due to Doppler depends on the duration of the channel sounding procedure, which is a function of tones, step duration, etc.
Phase-based ranging, for example as implemented in BLE CS and/or HADM, may allow measuring the distance between two devices. One device may initiate the process (initiator) and a second device to reciprocate transmission (reflector). To measure the distance, for example with BLE CS, the initiator and reflector may support Multi-Carrier Phase Difference (MCPD), where the narrow-band radios of the initiator and reflector exchange tones, e.g., over the 2.4 GHz ISM band.
For each carrier, i.e., each frequency, two phase measurements may be conducted in two consecutive measurement periods. During the first period, the initiator may send an unmodulated carrier RF signal, i.e., its LO signal to the reflector and the reflector performs a phase measurement. During the second period, the reflector sends an unmodulated carrier RF signal, i.e., its LO to the initiator, and the initiator performs a phase measurement.
This procedure is also known as two-way ranging (2WR) as both sides require to exchange tones. By processing the phase measurements, the range between two devices may be computed. Note that equivalently, an IQ measurement can be done, instead of a phase measurement.
Such techniques in the prior art may generally perform poorly in multi-path channels, e.g., because of not using super-resolution algorithms.
Besides, these techniques may not be FCC 15.247 compliant. To comply with FCC 15.247, the following requirements must be met: “The system shall hop to channel frequencies that are selected at the system hopping rate from a pseudo-randomly ordered list of hopping frequencies. Each frequency must be used equally on the average by each transmitter”.
For simplicity, the present disclosure is presented in relation to a system comprising two devices. However, as the skilled person would readily understand, the present inventive concept would be equally applicable to a system comprising any plurality of devices.
The first device 110 may move with respect to the second device 120. For example, the first device 110 may be moving with respect to the local environment, while the second device 120 may be stationary. In other words, the first device 110 may be a mobile device and the second device 120 may be a stationary device.
In another example, both the first device 110 and the second device 120 may be moving with respect to the environment.
Further, as an example, the location of the second device 120 may be known, and the location of the first device 110 may be unknown.
As shown in
In the case of movement parallel to the line of sight between the first device 110 and the second device 120, the component v is the speed of the first device 110 with respect to the second device 120. Then, the distance d between the first device 110 and the second device 120, as a function of time, is
where d0 it the distance between the first device 110 and the second device 120 at time t=0.
Further, the propagation delay for a signal traveling between the first device 110 and the second device 120 is
The method example 1000 may be particularly useful for BLE devices.
Further, the method example 1000 may be particularly useful in the case of two-way phase measurement using pseudo-random frequency hopping.
The ranging may involve determining a distance a between the first device 110 and the second device 120.
The method example 100 may be computer implemented. For example, there may be provided a non-transitory computer-readable medium comprising instructions which, when executed by a computer or processor, as generally known in the art, causes the computer or processor to carry out the method example.
At 1005, a plurality two-way phase-measurements between the first device and the second device may be performed at a plurality of frequencies, as generally known in the art.
Typically, the frequencies of the plurality of two-way phase measurements may be pseudo-randomly ordered in time, for example according to US FCC regulation 47 CFR § 15.247, as known in the art.
The first device 110 and the second device 120, may each generate a same pseudo-randomly ordered list ref of frequencies, representing the plurality of frequencies at which the two-way phase measurements are to be performed. For example, by sharing a random seed, such as represented by a key, between the devices, both the first device 110 and the second device 120 devices can generate the same pseudo-randomly ordered list ref of frequencies.
As the skilled person would be able to arrange, the pseudo-randomly ordered list of frequencies ref may be generated such that at least one frequency occurs in the pseudo-randomly ordered list of frequencies ref at least twice.
In other words, the pseudo-randomly ordered list of frequencies ref may be arranged so that it may be divided into two non-empty sets: a set of channels that construct a linear ramp denoted by ramp, and a set of remaining channels denoted by other. other is the set of channels which are added to the set ref and it is ensured that frequency channels are used in a pseudo-random order as e.g., required by regulatory bodies like FCC, for example according to the aforementioned US FCC regulation 47 CFR § 15.247.
For example, the obtained linear ramp ramp may (in frequency order) have a starting frequency f0 with frequency steps of Δf. Thus, for a linear ramp with Kf frequencies, the kth frequency denoted by fk may be found by
Further, the first device 110 and the second device 120 may agree on other requirements known to the skilled person, for example according to a relevant standard, such as BLE, e.g., which device starts the tone exchange, when the devices switch roles, how many tones will be exchanged, etc., as generally known in the art for two-way phase-based ranging.
For example, the first device 110 and the second device 120 may agree to switch frequencies at the same time (tk,switch). A step duration Tf may include the time reserved for both frequency switching and phase measurement in a half-duplex mode.
The first device 110 and the second device 120 may exchange tones according to the list ref and conduct at each tone a two-way phase measurement, the measurements thus obtained comprising the plurality of two-way phase measurements.
Each two-way phase measurement of the plurality of two-way phase measurements may, for example, be a pair of an in-phase, I, and a quadrature, Q, measurement; a phase-magnitude-pair; or any other pair of numbers representable as a complex number, as generally known in the art. A pair comprising an in-phase I measurement and a quadrature Q measurement may collectively be referred to as an IQ sample.
During exchange of an mth tone according to the list ref, the measured IQ sample at the first device 110 at time tm,A may be denoted by yBA(tm,A), whereas the measured IQ sample at the second device 120 at time tm,B may be denoted by yAB(tm,B).
The first device 110 and the second device 120 may agree that during exchange of each tone, first the second device 120 is in a transmit (TX) mode, and the first device 110 is in a receive (RX) mode, where the first device performs a phase measurement, e.g., in the form of an IQ sample. Then, the first device 110 and the second device 120 may switch roles, i.e., so that the first device 110 is in the transmit mode and the second device 120 is in the receive mode, where the second device 120 performs a further phase measurement, e.g., in the form of an IQ sample.
At 1010, the plurality of two-way phase measurements may be received at a device performing one or more of the following steps of the method example 1000. For example, the device performing the method example 1000 may be one of the first device 110 or the second device 120, or a different, third device. The term receiving should be understood as the plurality of two-way phase measurements either being transmitted to the device, or already being available at the device, in whole or part.
Further, the device performing the method example may receive the pseudo-randomly ordered list of frequencies ref, for example as decomposed into ramp and other.
At 1020, a first measurement and a second measurement of the plurality of two-way phase measurements having been performed at a same frequency are identified.
The identification may, for example, be done based on the pseudo-randomly ordered list ref, for example as decomposed into ramp and other.
The first measurement and the second measurement, having a same frequency fv, may be identified so that one of the first measurement and the second measurement may be part of ramp and the other of the first measurement and the second measurement may be part of other.
At 1030, a relative speed between the first device 110 and the second device 120 is calculated based at least on the first measurement and the second measurement identified at 1020. The relative speed may correspond to a relative speed parallel to the line of sight between the first device 110 and the second device 120.
The relative speed may be calculated as:
wherein {circumflex over (v)} is the estimated relative speed, c is the speed of light, fv is the said same frequency, ΔT is a time difference between the second measurement and the first measurement, and Δϕ is a phase difference between the second measurement and the first measurement.
Thus, the relative speed may be calculated based on a phase difference between said second measurement and said first measurement, said same frequency, and a time difference between said second measurement and said first measurement.
Explained in more detail, still at 1020, two tones in ramp and other with the same frequency may be found: Given a tone from ramp with frequency fm, suppose there is a tone among other with the same frequency fm.
Denote the two-way phase measurement in ramp and other with
respectively, where
Thus, the tone from ramp may correspond to the measurements of the mth tone, whereas the tone in other corresponds to the measurements of the nth tone, both with the same frequency of fm.
The two-way phase sample for mth tone may be found by
Thus, the velocity estimate may then computed as follows
where Tf is the step duration, fm is the frequency of tone m, where fm=fn and c is the speed of the light. Note that m and n are also indicate at what time-interval the respective tones have been exchanged.
Optionally, a plurality of relative speed estimates may be computed at a plurality of different frequencies, each according to the above.
For example, L relative speed estimates
{{circumflex over (v)}1,{circumflex over (v)}2,{circumflex over (v)}3, . . . ,{circumflex over (v)}L}
corresponding to tones in ramp and other, each with same frequencies having indices
may be computed.
Given this plurality of relative speed estimates, a final relative speed estimate may be calculated as a weighted average of the plurality of relative speed estimates:
In a simple case, the weights wl may all be set to 1.
In a more refined case, the weights wl may be computed as
Thus, the weighted average may be computed with weights being proportional to the square of the time between the first measurement and the second measurement. Hereby, the weights wl correspond to the inverse of the variance of the noise of each relative speed estimate {circumflex over (v)}l, under an assumption of a noise term comprising additive white gaussian noise being independent and identically-distributed random variables. This may improve accuracy of the final relative speed estimate.
Alternatively, or additionally, measurements may be excluded from the weighted average, which may further improve accuracy of the final relative speed estimate.
For example, in the absence of interference and other noise sources, it is expected that the absolute of the two-way IQ samples to be constant during the tone exchange. Denote the absolute of two-way IQ samples at time tm by
IQ samples may be excluded from the weighted average if abs(IQzW,t
In particular, an IQ sample may be excluded from the weighted average if
where M is the total number of exchanged tones between the first device 110 and the second device 120 two devices and δ is a threshold, e.g., 0.75. As practicable by the skilled person, the threshold δ can be optimized based on the system parameters, e.g., the number of exchanged tones, Tf, etc.
At 1040, a plurality of measurements of said plurality of two-way phase measurements is doppler compensated based on the relative speed calculated at 1040. The doppler compensation may be calculated based on the frequency of the measurement, the estimated relative speed, the time of measurement at the first device and the time of measurement at the second device.
In particular, the doppler compensation may be calculated as:
wherein f is the frequency of the measurement, {circumflex over (v)}=v [m, n] is the estimated relative speed at 1040, c is the speed of light, tA is a time of measurement at the first device and tB is a time of measurement at the second device.
The doppler compensation thus calculated may then be additively applied to the plurality of measurements, for compensating for doppler shift between the first device 110 and the second device 120.
The above may be understood from the fact that the two-way phase measurement
it can be seen that the Doppler effect appears as a phase shift
in the two-way phase measurement. Through the use of the estimated relative speed {circumflex over (v)}, this doppler shift may be compensated for.
In particular, in the case of a two-way phase measurement being representable as a complex number, compensation may be applied by multiplication with a factor
exp(−j{circumflex over (Φ)}Doppler[m]).
obtaining a compensated two-way phase measurement
At 1050, a distance is calculated between said first device and said second device based on the doppler compensated measurements.
The distance may be calculated using methods generally known in the art of phase-based ranging, such as using a fast Fourier transform, FFT, ranging algorithm or a super-resolution ranging algorithm, e.g., MUSIC.
In the above the inventive concept has mainly been described with reference to a limited number of examples. However, as is readily appreciated by a person skilled in the art, other examples than the ones disclosed above are equally possible within the scope of the inventive concept, as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
23173721.4 | May 2023 | EP | regional |