Field of the Invention
The disclosure relates to communications systems in general, and to techniques for determining time-of-flight between nodes of a communications system, in particular.
Description of the Related Art
In general, two-way ranging includes cooperative techniques for determining a time-of-arrival or time-of-flight of a signal between two nodes. The time-of-flight information may be used to determine a distance between nodes, position, velocity, acceleration, etc. However, sources of error in conventional time-of-flight measurement techniques limit the accuracy of any subsequent calculations based thereon. Time-of-flight refers to the latency of a transmission from a near-end transceiver to a far-end transceiver. Typical time-of-flight estimates are based on transmissions of digital signals, e.g., based on digital signals prior to conversion into analog signals for transmission and digital signals received after being converted from received analog signals. Those typical time-of-flight estimates do not include an accounting for delay of analog circuits (e.g., analog transmitter, analog receiver). However, the latencies of the analog circuits can be non-trivial. Another conventional time-of-flight measurement technique assumes that analog transmitter and analog receiver latency is below a predetermined value, ttransceiver, which may be predicted from transmitter and receiver designs and target manufacturing process information. Variation of actual transceiver latency from the predetermined value (e.g., due to manufacturing variances, environmental conditions, aging, or signal strength) introduces error in a time-of-arrival measurement or other metric determined based on the latency information. In an exemplary localization application, the transceiver latency error, |ttransceiver−ttransceiver_actual|=Δttransceiver, corresponds to a ranging error of at least approximately Catmosphere×Δttransceiver, where Catmosphere is the rate of propagation of electromagnetic waves through air under typical atmospheric conditions. The transceiver latency error may introduce a substantial amount of error to a localization measurement in some applications. Accordingly, improved techniques for improving accuracy of time-of-flight measurements are desired.
Techniques for reducing error in a time-of-flight measurement due to transceiver latency are disclosed. In at least one embodiment of the invention, a method includes determining a first indicator of a first latency of a first transceiver of a first system using a first loopback configuration of the first transceiver. The method includes receiving a second indicator of a second latency of a second transceiver determined by a second system using a second loopback configuration of the second transceiver. The method includes determining a third indicator of a roundtrip latency of a communication from the first transceiver to the second transceiver and back to the first transceiver. The method includes determining a time-of-flight between the first system and the second system based on the first indicator, the second indicator, and the third indicator. The time-of-flight may be determined further based on a property of a physical transmission medium between the first system and the second system. The method may include sensing an indication of a sensed variable affecting the property, the distance being determined further based on the sensed variable.
In at least one embodiment of the invention, an apparatus includes a first system comprising a transceiver. The transceiver includes a transmitter and a receiver. An output of the transmitter is selectively coupled to an input of the receiver in a first configuration of the first system. The apparatus includes a time-to-digital converter module configured to generate a first indicator of a first latency in the first configuration of the first system. The apparatus includes a digital module configured to determine a time-of-flight between the first system and a second system based on the first indicator, a second indicator of a second latency of a second transceiver of a second system, and a third indicator of a roundtrip latency. The transceiver may be configured to receive the second indicator from the second system. The transceiver may be configured to transmit the indicator to the second system. The time-to-digital converter module may be configured to generate the third indicator of the roundtrip latency in a second configuration of the first system. The digital module may determine the time-of-flight further based on a property of a physical transmission medium between the first system and the second system. The apparatus may include a sensor configured to provide an indication of a sensed variable affecting the property. The time-of-flight may be determined further based on the sensed variable. The apparatus may include a switch circuit configured to selectively couple the output of the transmitter to the input of the receiver in the first configuration of the first system. The apparatus may include a switch circuit configured to selectively couple the output of the receiver to the input of the transmitter in the third configuration of the first system. The apparatus may include an analog-to-digital converter coupled between an input of the receiver and the digital module. The apparatus may include a digital-to-analog converter coupled between an output of the transmitter and the digital module. The apparatus may include a zero-delay attenuator configured to receive a signal from the transmitter and provide an attenuated version of the signal to the receiver in the first mode of operation and configured to be disabled in the second mode of operation.
In at least one embodiment of the invention, a method includes configuring a first transceiver of a first system in a first loopback configuration. The method includes determining a first indicator of a first latency of a first transceiver of a first system using the first loopback configuration of the first transceiver. Determining the first indicator includes triggering a start of a time-to-digital conversion in response to a first signal edge on a first node between a transmit path analog-to-digital signal converter of the first system and an input to a transmitter of the first transceiver. Determining the first indicator includes triggering a stop of the time-to-digital conversion in response to a second signal edge on a second node between a receiver path digital-to-analog signal converter of the first system and an output of a receiver of the first transceiver. The method includes transmitting the first indicator from the first system to the second system.
The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
The use of the same reference symbols in different drawings indicates similar or identical items.
A technique for improving accuracy of a time-of-flight measurement for use in sensor applications includes determining analog transceiver latency measurements using time-to-digital conversion techniques and operation of nodes in various loopback configurations. As referred to herein, time-of-flight is the time for an electromagnetic signal to travel from an output of the transmitter to the input of a receiver over a physical transmission medium. The physical transmission medium may include a wireline transmission medium (e.g., wire, cable, coaxial cable, twisted-pair wire, fiber optic cable, etc.) or a wireless transmission medium (e.g., air) and associated interface elements that interface the transmitter to the transmission medium (e.g., antenna, driver, balun, etc.). Referring to
In an exemplary embodiment of a system, nodes 102 and 152 each include a single port, port 116 and port 166, respectively, and a single antenna, antenna 118 and antenna 168, respectively, for duplex communications using a suitable communications protocol, although in other embodiments one or more of node 102 and node 152 includes an additional port and corresponding antenna (not shown) for simplex transmit and receive communications paths. Nodes 102 and 152 include time-to-digital converter 114 and time-to-digital converter 164, respectively, which are used to determine indicators of latencies of communications using one or more of the transceiver analog front ends. Time-to-digital converter 114 and time-to-digital converter 164 may be any suitable time-to-digital converter design responsive to one or more time interval signals defined by a start indicator and a stop indicator of the time interval and are configured to generate digital value DOUT corresponding to the relative time elapsed during that time interval. In at least one embodiment, time-to-digital converter 114 and time-to-digital converter 164 each include a digital counter responsive to a high-frequency reference clock signal having a predetermined period of oscillation.
Digital logic 104 and digital logic 154 may determine an absolute time interval based on a relative time interval indicated by the corresponding digital value DOUT of TDC 114 and TDC 164, respectively, and the period of a corresponding respective high-frequency reference clock signal. In a normal operating mode, digital logic 104 configures attenuator 128 to pass a signal on terminal 116 to node RXINA with negligible delay and attenuation. Similarly, in normal operation, digital logic 154 configures attenuator 178 to pass a signal on terminal 166 to node RXINB with negligible delay and attenuation. In a transceiver calibration mode, digital logic 104 and digital logic 154 configure attenuators 128 and 178, respectively, to attenuate a signal driven on TXOUTA or TXOUTB, respectively, with negligible delay to adjust the amplitude of the corresponding loopback signal within a dynamic range specification for processing by analog receiver 112 and analog receiver 162, respectively. Sensor 124 and sensor 174 may be included to provide digital logic 104 and digital logic 154, respectively, sensed data indicative of relative changes in the permittivity of the transmission medium for changes to environmental factors, e.g., temperature, humidity, barometric pressure, etc. In addition, received signal strength and time (i.e., aging) are additional variables that may affect, and may be used to calibrate a transceiver latency measurement for use in a time-of-flight measurement.
Digital logic 104 and digital logic 154 may each be implemented as a single special purpose integrated circuit (e.g., ASIC) having a main or central processor unit for overall, system-level control, and separate circuit portions dedicated to performing various specific computations, functions and other processes under the control of the central processor unit. Digital logic 104 and digital logic 154 may each be implemented as a single microprocessor circuit, a digital signal processor (DSP), or a plurality of separate dedicated or programmable integrated or other electronic circuits or devices, e.g., hardwired electronic or logic circuits such as discrete element circuits or programmable logic devices. Storage 132 may be implemented using any appropriate combination of alterable, volatile or non-volatile memory or non-alterable, or fixed memory. The alterable memory, whether volatile or non-volatile, may be implemented using any one or more of static or dynamic RAM, flash memory or other alterable memory components known in the art. Similarly, the non-alterable or fixed memory may be implemented using any one or more of ROM, PROM, EPROM, EEPROM, or other non-alterable memory known in the art. Node 102 and node 152 may each also include other circuitry or components, such as memory devices, relays, mechanical linkages, communications devices, drivers and other ancillary functionality to affect desired control and/or input/output functions.
Digital logic 104 receives digital data from the transmission medium via antenna 118, terminal 116, analog receiver 112, and analog-to-digital converter 108 and provides digital data to the transmission medium via digital-to-analog converter 106, analog transmitter 110, terminal 116, and antenna 118. Similarly, digital logic 154 receives digital data from the transmission medium via antenna 168, terminal 166, analog receiver 162, and analog-to-digital converter 158 and provides digital data to the transmission medium via digital-to-analog converter 156, transmitter 160, terminal 166, and antenna 168. Switches 122 and 120 are included to selectively configure node 102 in various calibration modes. Switches 122 and 120 may include one or more devices configured to selectively provide a conductive path or a high impedance (e.g., an electrical open) in response to a control signal. The control signal may be active high or active low, and is provided by digital logic 104. Switches 170 and 172 of node 152 provide similar functionality to that of switches 120 and 122, respectively.
A technique for measuring time-of-flight, which may be used to determine ranging applications or in other suitable applications, accounts for analog transceiver latencies using various communications. For example, roundtrip latency troundtrip of a roundtrip loopback communication includes the analog front end transmitter and receiver latencies for a communication from node 102 to a node 152 and back to node 102:
t
roundtrip
=t
t×1
+t
TOF
+t
r×2
+t
t×2
+t
TOF
+t
r×1
=t
t×r×1+(2×tTOF)+tt×r×2,
where tt×1 is the latency of analog transmitter 110, tr×1 is the latency of analog receiver 112, tt×2 is the latency of analog transmitter 160, tr×2 is the latency of analog receiver 162, tt×r×1 is the latency of analog front end 130, and tt×r×2 is the latency of analog front end 180. Based on the roundtrip latency troundtrip of a roundtrip loopback communication, the channel latency or time-of-flight tTOF may be determined:
t
TOF
=t
roundtrip
−t
t×r×1
−t
t×r×2/2.
Referring to
For example, digital logic 104 generates control signals that cause switch 122 to be closed, switch 120 (if present) to remain open, and attenuator 128 to apply a zero-delay loopback attenuation for a near-end loopback mode (302). In at least one embodiment, node 102 is always configured as a near-end node and switch 120 is not included. Digital logic 104 configures digital-to-analog converter 106 to drive a pulse (or other suitable signal) on node TXA, at the input of analog transmitter 110. The pulse triggers time-to-digital converter 114 to start a time-to-digital conversion. Analog transmitter 110 drives a signal on node TXOUTA, which is selectively coupled to attenuator 128. Attenuator 128 applies a zero delay attenuation to adjust the amplitude of the signal within a dynamic range specification of analog receiver 112. Analog receiver 112 may amplify, filter, and/or perform other analog signal operations on the pulse signal received from node RXINA, and provides an output analog signal to node RXA (304). The pulse signal on node RXA triggers a stop to the time-to-digital conversion of time-to-digital converter 114. Time-to-digital converter 114 provides a resulting digital output code DOUT to digital logic 104, which may store digital output code DOUT as an indicator of the near-end transceiver latency τt×r×1 (306). In at least one embodiment, digital logic 104 determines and stores near-end transceiver latency tt×r×1 generated based on a reference clock signal period Tref1 used by time-to-digital converter 114 (308): tt×r×1=Tref1×τt×r×1.
Referring to
t
t×r×1
=T
ref1×(τt×1+τr×1).
Referring back to
t
t×r×2
=T
ref2×τt×r×2.
Referring to
Digital logic 154 generates control signals that cause switch 172 to be closed and switch 170 to be open for a far-end loopback mode (708). Digital logic 154 configures time-to-digital converter 164 circuit to determine a latency between node RXINB and node RXB in response to a pulse on node RXINB and node RXB triggering start and stop, respectively, for time-to-digital converter 164 (710). Digital logic 154 configures digital-to-analog converter 156 to drive a pulse on node TXB, at the input of analog transmitter 160. Analog transmitter 160 drives the pulse signal on node TXOUTB. When the pulse reaches node RXINB, it triggers time-to-digital converter 164 to start the time-to-digital conversion. Analog receiver 162 drives the received pulse onto RXB. When the pulse reaches node RXB, it triggers time-to-digital converter 164 to stop the time-to-digital conversion (712). Time-to-digital converter 164 provides the resulting digital output code DOUT to digital logic 154, which stores digital output code DOUT as the indicator of the far-end transmitter latency τr×2 (714). In at least one embodiment, digital logic 154 determines and stores far-end transceiver latency tt×r×2 based on a reference clock signal period Tref2 used by time-to-digital converter 164 (716):
t
t×r×2
=T
ref2×(τt×2+τr×2).
Referring to
t
ROUNDTRIP
=T
ref1×τROUNDTRIP.
Referring back to
The channel latency or time-of-flight estimate may be used to calculate the distance between node 102 and node 152. That calculation may account for properties of the medium, non-idealities, or other relevant information (212):
DISTANCE=c′×tTOF,
where c′ is the speed of light through the medium through which the signal travels, and
where μr is the relative permeability of the medium through which the signal travels and εr(w) is the relative permittivity of the medium through which the signal travels:
where ε(w) is the complex frequency-dependent absolute permittivity of the material (e.g., air, water, polyethylene (coaxial cable), dielectric materials used in RF transmission lines and optical fibers), ε0 is the vacuum permittivity, μ is the permeability of the material, and μ0 is the vacuum permeability. Assuming μr=1,
Propagation of radio frequency signals in a vacuum is approximately 3×108 m/s. In typical atmospheric conditions, the refractive index of air is approximately 299,700 km/s or 90 km/s slower than c (c is 2.99792458 m/s), approximately 300 parts per million (ppm) difference in typical atmospheric conditions. Information detected by sensor 124 and sensor 174 may be used by digital logic 104 and digital logic 154 to adjust the effective value of εr(w). Node 152 may transmit that information with τt×r×2 or at other suitable times.
Note that other sequences of determinations 202, 204, 206, and 208 that do not change the data dependencies of determination may be used. In at least one embodiment, node 152 also sends a digital time reference value (e.g., Tref2) that corresponds to the period of a reference clock signal used by time-to-digital converter 164. In at least one embodiment, rather than node 152 sending an indicator of the far-end transceiver latency τt×r×2, node 152 converts the digital output of time-to-digital converter 164 to a time value of the far-end transceiver latency tt×r×2, e.g., by multiplying far-end transceiver latency τt×r×2 by the period of a reference clock signal used by time-to-digital converter 164. Node 102 may store the latency values in storage 132 as intermediate results and digital logic 104 may determine time-of-flight tTOF based thereon (210). For example, the latency indicators may be converted into latency time values by adjusting for the period of a corresponding reference clock signal of time-to-digital converter 114 and time-to-digital converter 164, if not already adjusted before storing as intermediate values:
t
t×r×1
=T
ref1×τt×r×1,
t
t×r×2
=T
ref2×τt×r×2, and
t
roundtrip
=T
ref1×τroundtrip,
where Tref1 is the period of a reference clock signal used by time-to-digital converter 114 and Tref2 is the period of a reference clock signal used by time-to-digital converter 164. Digital logic 104 then determines time-of-flight (210):
If Tref1 and Tref2 are equal, then time-of-flight may be determined at node 102 as follows (210):
The resulting time-of-flight estimate accounts for the latencies of a near-end transceiver and the latencies of a far-end transceiver and may be used to determine an improved estimate of distance, which may also be adjusted for properties of the transmission medium, non-idealities, etc. (212).
Referring back to
Thus, improved techniques for determining time-of-flight of a signal between two nodes have been disclosed. While circuits and physical structures have been generally presumed in describing embodiments of the invention, it is well recognized that in modern semiconductor design and fabrication, physical structures and circuits may be embodied in computer-readable descriptive form suitable for use in subsequent design, simulation, test or fabrication stages. Structures and functionality presented as discrete components in the exemplary configurations may be implemented as a combined structure or component. Various embodiments of the invention are contemplated to include circuits, systems of circuits, related methods, and tangible computer-readable medium having encodings thereon (e.g., VHSIC Hardware Description Language (VHDL), Verilog, GDSII data, Electronic Design Interchange Format (EDIF), and/or Gerber file) of such circuits, systems, and methods, all as described herein, and as defined in the appended claims. In addition, the computer-readable media may store instructions as well as data that can be used to implement the invention. The instructions/data may be related to hardware, software, firmware or combinations thereof.
The description of the invention set forth herein is illustrative, and is not intended to limit the scope of the invention as set forth in the following claims. For example, while the invention has been described in an embodiment in which nodes transmit pulse signals for evaluating latency, one of skill in the art will appreciate that the teachings herein can be utilized with other signal types that may be used to trigger evaluation of a time interval by a time-to-digital converter. Although the invention has been described in an embodiment in which nodes communicate over an air interface, one of skill in the art will appreciate that the teachings herein can be utilized with other communications media (e.g., water, transmission line, etc.). Variations and modifications of the embodiments disclosed herein, may be made based on the description set forth herein, without departing from the scope and spirit of the invention as set forth in the following claims.