PHASED-BASED RANGING

Information

  • Patent Application
  • 20240385310
  • Publication Number
    20240385310
  • Date Filed
    May 13, 2024
    7 months ago
  • Date Published
    November 21, 2024
    a month ago
Abstract
A method of phase-based ranging between a first device and a second device, comprises 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.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

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.


TECHNICAL FIELD

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.


BACKGROUND

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.


SUMMARY

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:







v
ˆ

=


c

Δ

ϕ



-
4


π


f
v


Δ

T






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:








ϕ
ˆ

doppler

=


-
2


π

f



v
ˆ

c



(


t
A

+

t
B


)






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.





BRIEF DESCRIPTION OF THE DRAWINGS

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.



FIG. 1 shows a system comprising a first device and a second device.



FIG. 2 shows a method example of phase-based ranging.





DETAILED DESCRIPTION

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”.



FIG. 1 shows a system 100 comprising a first device 110 and a second device 120. For example, the first device 110 and the second device 120 may be Bluetooth Low Energy (BLE) devices, as known in the art.


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 FIG. 1, the first device 110 may be moving with a velocity vector {circumflex over (v)} with respect to the second device 120. The velocity vector {circumflex over (v)} may have a component v parallel to the line of sight between the first device 110 and the second device 120, i.e., the component v representing the relative speed between the first device 110 and the second device 120.


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







d

(
t
)

=


d
0

+

v


t






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








τ

(
t
)

=



d

(
t
)

/
c

=




d
0

/
c

+


(

v
·
t

)

/
c


=


τ
0

+


(

v
·
t

)

/
c





,





FIG. 2 illustrates a method example 1000 of phase-based ranging involving doppler compensation. The phase-based ranging may, for example, be performed between the first device 110 of FIG. 1 and the second device 120 of FIG. 1.


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 custom-characterref 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 custom-characterref of frequencies.


As the skilled person would be able to arrange, the pseudo-randomly ordered list of frequencies custom-characterref may be generated such that at least one frequency occurs in the pseudo-randomly ordered list of frequencies custom-characterref at least twice.


In other words, the pseudo-randomly ordered list of frequencies custom-characterref 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 custom-characterramp, and a set of remaining channels denoted by custom-characterother. custom-characterother is the set of channels which are added to the set custom-characterref 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 custom-characterramp 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








f
k

=


f
0

+

k

Δ

f



,








k



{

0
,
1
,


,

K

f
-
1



}

.






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 custom-characterref 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 custom-characterref, 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 custom-characterref, for example as decomposed into custom-characterramp and custom-characterother.


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 custom-characterref, for example as decomposed into custom-characterramp and custom-characterother.


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 custom-characterramp and the other of the first measurement and the second measurement may be part of custom-characterother.


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:







v
ˆ

=


c

Δ

ϕ



-
4


π


f
v


Δ

T






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 custom-characterramp and custom-characterother with the same frequency may be found: Given a tone from custom-characterramp with frequency fm, suppose there is a tone among custom-characterother with the same frequency fm.


Denote the two-way phase measurement in custom-characterramp and custom-characterother with








ϕ

2

W


[
m
]

=

angle
(

IQ


2

W

,

t
m



)






and








ϕ

2

W


[
n
]

=

angle
(

IQ


2

W

,

t
n



)


,




respectively, where







IQ


2

W

,

t
m



=



y
AB

(

t

m
,
B


)

×


y
BA

(

t

m
,
A


)






Thus, the tone from custom-characterramp may correspond to the measurements of the mth tone, whereas the tone in custom-characterother 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








Δϕ

2

W


[

m
,
n

]

=




ϕ

2

W


[
m
]

-


ϕ

2

W


[
n
]


=




-
2


π



f
m

(


2

τ

+


v
c



(


t

m
,
A


+

t

m
,
B



)



)


+

2

π



f
m

(


2

τ

+


v
c



(


t

n
,
A


+

t

n
,
B



)



)



=



-
2


π



f
m

(


v
c



(


t

m
,
A


+

t

m
,
B


-

t

n
,
A


-

t

n
,
B



)


)


=


-
4


π


f
m



v
c



(

m
-
n

)



T
f









Thus, the velocity estimate may then computed as follows







v
[

m
,
n

]

=


c


-
4


π



f
m

(

m
-
n

)



T
f







Δϕ

2

W


[

m
,
n

]

.






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 custom-characterramp and custom-characterother, each with same frequencies having indices







{


(


m
1

,

n
1


)

,

(


m
2

,

n
2


)

,
...

,

(


m
L

,

n
L


)


}

,


where



f

m
i



=

f

n
i



,

i
=
1

,
2
,
...

,
L




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:








v
^

=







l




v
^

l



w
l








l



w
l




,




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







w
l

=




f

m
i

2

(


m
i

-

n
i


)

2

.





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







abs

(

IQ


2

W

,

t
m



)

=

abs

(



y
AB

(

t

m
,
B


)

×


y
BA

(

t

m
,
A


)


)





IQ samples may be excluded from the weighted average if abs(IQzW,tm) is considerably lower than average.


In particular, an IQ sample may be excluded from the weighted average if








abs

(

IQ


2

W

,

t
m



)




1
M







l


abs



(

IQ


2

W

,

t
i



)




δ




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:








ϕ
^

doppler

=


-
2


π

f



v
^

c



(


t
A

+

t
B


)






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








ϕ

2

W


[
m
]

=


angle
(



y
AB

(

t

m
,
B


)

×


y
BA

(

t

m
,
A


)


)

=


-
2


π




f
m

(


2

τ

+


v
c



(


t

m
,
A


+

t

m
,
B



)



)

.







it can be seen that the Doppler effect appears as a phase shift








ϕ
Doppler

[
m
]

=


-
2


π


f
m



v
c



(


t

m
,
A


+

t

m
,
B



)






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








ϕ


2

W

,

Comp
.



[
m
]

=


angle
(



y
AB

(

t

m
,
B


)

×


y
BA

(

t

m
,
A


)

×

exp

(

j

2

π


f
m




v
^

c



(


t

m
,
A


+

t

m
,
B



)


)


)

.





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.

Claims
  • 1. 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 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; andcalculating a distance between said first device and said second device based on the doppler compensated measurements.
  • 2. The method of claim 1, wherein each two-way phase measurement of said plurality of two-way phase measurements is 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.
  • 3. The method of claim 1, wherein the frequencies of said plurality of two-way phase measurements are pseudo-randomly ordered in time.
  • 4. The method of claim 3, wherein the pseudo-random order in time of the frequencies of said plurality of two-way phase measurements is according to US FCC regulation 47 CFR § 15.247.
  • 5. The method of claim 1, wherein said calculating of said distance is performed using a fast Fourier transform, FFT, ranging algorithm or a super-resolution ranging algorithm.
  • 6. The method of claim 1, wherein said relative speed is 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.
  • 7. The method of claim 1, wherein said relative speed is calculable as:
  • 8. The method of claim 1, wherein a doppler compensation of said doppler compensating is 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.
  • 9. The method of claim 1, wherein a doppler compensation of said doppler compensating is calculable as:
  • 10. A device configured to perform the method of claim 1.
  • 11. 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 of claim 1.
Priority Claims (1)
Number Date Country Kind
23173721.4 May 2023 EP regional