US11632226B1 - Frequency and gain calibration for time synchronization in a network - Google Patents

Frequency and gain calibration for time synchronization in a network Download PDF

Info

Publication number
US11632226B1
US11632226B1 US17/586,241 US202217586241A US11632226B1 US 11632226 B1 US11632226 B1 US 11632226B1 US 202217586241 A US202217586241 A US 202217586241A US 11632226 B1 US11632226 B1 US 11632226B1
Authority
US
United States
Prior art keywords
calibration
time
clock
transceiver
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
US17/586,241
Inventor
Philip A. Kratz
Daniel M. Jacker
Mainak Chowdhury
Alexander Hooshmand
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zainar Inc
Original Assignee
Zainar Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zainar Inc filed Critical Zainar Inc
Priority to US17/586,241 priority Critical patent/US11632226B1/en
Assigned to ZaiNar, Inc. reassignment ZaiNar, Inc. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CHOWDHURY, MAINAK, HOOSHMAND, ALEXANDER, Jacker, Daniel M., KRATZ, PHILIP A.
Priority to US18/113,542 priority patent/US11909852B1/en
Application granted granted Critical
Publication of US11632226B1 publication Critical patent/US11632226B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0664Clock or time synchronisation among packet nodes using timestamps unidirectional timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines
    • H04L7/0012Synchronisation information channels, e.g. clock distribution lines by comparing receiver clock with transmitter clock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/21Monitoring; Testing of receivers for calibration; for correcting measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • This invention relates generally to the field of networking and digital communication and more specifically to a new and useful method for accurate network time synchronization in the field of networking and digital communication.
  • FIG. 1 A is a flowchart representation of a method
  • FIG. 1 B is a flowchart representation of a first variation of the method
  • FIG. 1 C is a flowchart representation of a second variation of the method
  • FIG. 2 is a schematic representation of a mesh network
  • FIG. 3 A is a schematic representation of a pair of nodes in the mesh network
  • FIG. 3 B is a schematic representation of a node in the mesh network
  • FIG. 3 C is a schematic representation of self-receive hardware of a node
  • FIGS. 4 A and 4 B are schematic representations of synchronization slot structures
  • FIG. 5 A is a flowchart representation of transmission and reception of a synchronization signal
  • FIG. 5 B is a flowchart representation of transmission and reception of a self-receive signal.
  • FIGS. 6 A and 6 B are flowchart representations of a second method
  • FIG. 7 is a flowchart representation of the second method
  • FIG. 8 is a flowchart representation of the second method
  • FIG. 9 is a flowchart representation of the second method
  • FIG. 10 is a flowchart representation of a third method.
  • FIG. 11 is a schematic representation of a system.
  • a method S 100 for characterizing time bias and propagation delay between a pair of nodes includes, at a first node in the pair of nodes and during a first synchronization slot: transmitting a first synchronization signal at a first time according to a first clock of the first node in Block S 110 A; back-coupling the first synchronization signal to generate a first self-receive signal in Block S 120 A; receiving the first self-receive signal in Block S 130 A; calculating a time-of-arrival of the first self-receive signal according to the first clock in Block S 140 A; receiving a second synchronization signal from the second node in Block S 150 A; and calculating a time-of-arrival of the second synchronization signal according to the first clock in Block S 160 A.
  • the method S 100 also includes, at the second node and during the first synchronization slot: transmitting the second synchronization signal at a second time according to a second clock of the second node in Block S 110 B; back-coupling the second synchronization signal to generate a second self-receive signal in Block S 120 B; receiving the second self-receive signal in Block S 130 B; calculating a time-of-arrival of the second self-receive signal according to the second clock in Block S 140 B; receiving the first synchronization signal from the first node in Block S 150 B; and calculating a time-of-arrival of the first synchronization signal according to the second clock in Block S 160 B.
  • the method S 100 further includes calculating a time bias and a propagation delay between the pair of nodes based on the time-of-arrival of the first self-receive signal and the time-of-arrival of the second synchronization signal, the time-of-arrival of the second self-receive signal and the time-of-arrival of the first synchronization signal at the second node in Block S 170 .
  • a first variation of the method S 100 includes: transmitting a coordination signal to a second node in the pair of nodes, the coordination signal indicating a second time to transmit a second synchronization signal in Block S 102 ; transmitting a first synchronization signal at a first time according to a first clock of the first node in Block Silo; back-coupling the first synchronization signal to generate a first self-receive signal in Block S 120 ; receiving the first self-receive signal in Block S 130 ; calculating a time-of-arrival of the first self-receive signal according to the first clock in Block S 140 ; receiving the second synchronization signal, the second synchronization signal transmitted by the second node at the second time according to a second clock of the second node in Block S 150 ; calculating a time-of-arrival of the second synchronization signal according to the first clock in Block S 160 ; receiving a time-of-arrival of a second self-receive signal from
  • a second variation of the method S 100 includes scheduling transmission of a first synchronization signal at a first time by a first node in Block S 104 ; and scheduling transmission of a second synchronization signal at a second time by a second node in Block S 106 .
  • the second variation of the method S 100 also includes, after transmission of the first synchronization signal by the first node at the first time according to a first clock of the first node: receiving, from the first node, a time-of-arrival of a first self-receive signal according to the first clock, wherein the first self-receive signal is a back-coupled version of the first synchronization signal in Block S 144 ; and receiving, from the second node, a time-of-arrival of the first synchronization according to a second clock of the second node in Block S 164 .
  • the second variation of the method S 100 further includes, after transmission of the second synchronization signal by the second node at the second time according to the second clock: receiving, from the second node, a time-of-arrival of a second self-receive signal according to the second clock, wherein the second self-receive signal is a back-coupled version of the second synchronization signal in Block S 146 ; and receiving, from the first node, a time-of-arrival of the second synchronization signal according to the first clock in Block S 166 .
  • the second variation of the method S 100 also includes calculating a first time bias between the first clock and the second clock and a first propagation delay between the first node and the second node based on the time-of-arrival of the first self-receive signal, the time-of-arrival of the first synchronization signal, the time-of-arrival of the second self-receive signal, and the time-of-arrival of the second synchronization signal in Block S 170 .
  • a third variation of the method S 100 includes: predicting a drift magnitude of the time bias between the first node and the second node between the first synchronization slot and the second synchronization slot based on a predictive drift model in Block S 180 ; and setting a duration of the second synchronization slot equal to a sum of the maximum time bias uncertainty, the maximum accumulated drift magnitude over the duration of the first synchronization signal, the propagation delay, and a duration of the first synchronization signal in Block S 190 .
  • the method S 100 is executed by a pair of node devices (hereinafter “nodes”) in a network and/or remote servers (hereinafter “the system”, as shown in FIG. 11 ) in order to synchronize—such as to within one nanosecond—the clocks of the pair of nodes.
  • the method S 100 can calculate the time bias between clocks to within one nanosecond or with sub-nanosecond precision without prior information regarding the position of the two nodes (or even a requirement for the nodes to be stationary), without precise calibration of the hardware of either node, and with each node using standard electronic clock technology, such as a crystal oscillator clock. Additionally, the method S 100 can utilize a frequency bandwidth of less than five megahertz.
  • the small bandwidth of the method S 100 enables transmission of frequency bands with high propagation range and/or penetration.
  • Examples of such bands include frequency bands for cellular communications or public safety uses (e.g., the 902-928 MHz ISM band or sub-GHz cellular band).
  • the method S 100 enables applications such as time-synchronized distributed antenna systems, which can further enable precise localization of RF emitting devices, remote sensing of public safety infrastructure, and improvements in time-based data transfer protocols.
  • the method S 100 for synchronizing time between two nodes can be categorized as a two-way ranging and synchronization protocol.
  • the method S 100 is distinguished from other two-way ranging protocols in that each node transmits independently of other nodes at an absolute time (according to the clock of each node), as opposed to transmitting in response to receiving signals from a master node in the pair.
  • each node is configured to execute a scheme to provide a local reference copy of the transmitted signal, within the transceiver hardware of the node, in order to provide a “time-of-departure” for each transmitted synchronization signal (via a back-coupling and/or reflection of a transmitted synchronization signal).
  • the time-of-arrival of this reflected and/or back-coupled version of a transmitted synchronization signal includes the transmit and receive chain delays that are incurred by a signal transmitted by another node, thereby enabling direct comparison of the time-of-arrival of various signals without precise characterization of these delays.
  • Blocks of the method S 100 can be executed by a system 100 , which can include a pair of node devices (i.e., nodes) in a mesh network, a master node and a slave node in a mesh network, and/or a remote server coordinating with a pair of nodes in a mesh network.
  • Each node in the mesh network can include networking hardware, such as an antenna, transceiver hardware, an FPGA/DPS, a clock, and self-receive hardware (e.g. directional couplers, RF power splitters, combiners, circulators, etc.) further described below.
  • the method S 100 can also be performed between nodes in a wired network.
  • the nodes in the mesh network are mutually connected to the internet or to a local area network such that the initial time bias between any pair of nodes in the mesh network is initially limited by the network time protocol (hereinafter “NTP”), or any other network time synchronization protocol.
  • NTP network time protocol
  • This time bias can range from tens of milliseconds to microseconds in many state-of-the-art networks.
  • the system can execute a second method S 200 (for detecting and compensating for frequency drift between nodes) and/or a third method S 300 (for calibrating gain levels for signal transmission between nodes) prior to executing the first method S 100 .
  • the second method S 200 and the third method S 300 are described in greater detail below.
  • Nodes in the mesh network communicate with each other using time division multiple access (hereinafter “TDMA”) and/or code division multiple access (hereinafter “CDMA”), thereby minimizing frequency bandwidth usage.
  • TDMA time division multiple access
  • CDMA code division multiple access
  • the nodes can execute Blocks of the method S 100 during one or more synchronization slots within a TDMA frame structure.
  • synchronization slot duration and frame length are dynamically adjustable.
  • the method S 100 can leverage smaller initial time biases between a pair of nodes to decrease synchronization slot duration and further reduce uncertainty in the time bias calculation.
  • the frame structure can include data transfer frames enabling the nodes to communicate with each other or with a remote server via the internet protocol suite in order to execute blocks of the method S 100 .
  • nodes can transfer a set of time-of-arrivals to a remote server for further processing according to the method S 100 .
  • each of the pair of nodes transmits a synchronization signal to the other node at the beginning of the synchronization slot according to each node's clock.
  • these synchronization signals are sent at times offset by the time bias between the two nodes.
  • the synchronization signal is a frequency modulated, amplitude modulated, or phase modulated pseudorandom code or a combination of multiple codes (e.g., on multiple center carrier frequencies).
  • each node Upon receiving the synchronization signal from the other node in the pair of nodes each node calculates a time-of-arrival (hereinafter “TOA”), such as by using the magnitude, time offset, and carrier phase of the autocorrelation peaks associated with one or more codes.
  • TOA time-of-arrival
  • each node Upon sending the synchronization signal, each node includes self-receive hardware (shown in FIG. 3 C ) that back-couples and/or internally reflects a portion of the synchronization signal, thereby generating a self-receive signal, as shown in FIG. 3 A .
  • the self-receive hardware reflects and/or back-couples an attenuated repetition of the outgoing synchronization signal, which is then received by the same node that transmitted the synchronization signal.
  • Each node then calculates a TOA for the self-receive signal after the self-receive signal has passed through the receiver chain in the same manner as any other received signal.
  • the TOA of the self-receive signal acts as a time-of-departure of the synchronization signal offset by the receiver delay time of the transmitting node.
  • the method S 100 includes generating the self-receive signal such that the TOA of an incoming synchronization signal from another node can be directly compared to a time-of-departure of an outgoing node without the need for precise measurement and/or calibration of the receiver delay.
  • Each node in the pair then receives the synchronization signal from the other node and calculates a TOA for the synchronization signal. Therefore, by the end of the synchronization slot, each node has recorded a TOA for a self-receive signal and for a synchronization signal of the other node.
  • These TOAs are then transmitted to one of the nodes or to a remote server to solve a system of two equations for two unknowns: the relative time bias between the pair of nodes (including receiver delay) and the propagation delay (i.e., transmission time) between the pair of nodes. This system of equations is solvable based on the reciprocity theorem of electromagnetism.
  • the relative time bias between clocks of the two nodes can then be calculated and tracked by a master node or a remote server coordinating the mesh network.
  • the relative time bias between nodes can then be reported to both nodes and one node (i.e., a slave node) can then synchronize its clock to match the other (i.e., a master node).
  • the first synchronization between the two node clocks according to the method S 100 may be highly accurate, greater accuracy and reduced TDMA overhead is achieved through slot refinement, wherein the synchronization slot duration is reduced based on the smaller time bias between the two clocks. Therefore, in each successive synchronization slot for the pair of nodes the synchronization slot duration is decreased, thereby reducing sources of error such as accumulated jitter and/or environmental frequency drift that may occur during the synchronization process.
  • a quartz crystal oscillator may be expected to have a drift of six PPM which corresponds to six nanoseconds of drift during a millisecond duration synchronization slot. If the synchronization slot duration is instead reduced to 100 microseconds, the expected drift is reduced to less than one nanosecond.
  • the system can also increase the duration of time within a frame for data transmission thereby improving data transfer rates for the nodes. Additionally, with a shorter synchronization slot duration, the method S 100 can be performed at a higher rate of repetition thereby improving synchronization during changing environmental conditions.
  • the method S 100 can be executed on a pairwise basis with other nodes in the mesh network in successive synchronization slots, thereby distributing time across the entire mesh network.
  • the method S 100 leverages repetitive synchronization between two nodes and pairwise synchronization between multiple nodes in the network, in combination with environmental data recorded from inertial measurement units (hereinafter “IMUs”) or temperature sensors within each node, to create a predictive drift model for each node in the mesh network.
  • the predictive drift model can characterize the time drift of a node as a function of measured environmental input data over time.
  • the method S 100 can also include triggering a synchronization slot in the next frame or altering the length of the synchronization slot based on the output of the predictive drift model.
  • the method S 100 can include adjusting a node's clock between synchronization slots.
  • the method S 100 for synchronizing time between two node devices has wide ranging benefits including: more precise and flexible localization using a time synchronized mesh network of nodes; and improvements to time or frequency-based communication protocols.
  • a mesh network of nodes can perform the method S 100 on a pairwise basis to synchronize their clocks across the mesh network.
  • Each of the nodes in the mesh network can then individually calculate a TOA of a signal from an RF emitting source not included in the mesh network.
  • the location of the RF emitting source can be calculated to a degree of precision limited by temporal synchronization between nodes. For example, with temporal synchronization within one nanosecond, the location of an RF emitting source can be calculated to within 30 centimeters relative to the nodes in the mesh network. If one node in the mesh network acts as an anchor node and is calibrated with accurate global positional information, the absolute position of the RF emitting source can also be detected.
  • nodes are distributed throughout an area, within buildings, or even on cars driving on the streets of an urban area.
  • the nodes execute Blocks of the method S 100 to periodically synchronize their clocks and then collect TOA data for other RF emitting sources within the mesh area.
  • the remote server coordinating with the nodes can subsequently transform these TOA data into three-dimensional geospatial locations of the RF emitting sources, thereby improving location services, asset tracking, and object detection.
  • the remote server or master node can: calculate a relative location of nodes in the network based on the propagation delay between the nodes; receive, from several nodes in the mesh network, a time-of-arrival of a signal from a transmitting device; and calculate, via multilateration, a relative location estimate for the transmitting device accounting for the relative time bias between each of the nodes in the mesh network.
  • Blocks of the method S 100 can be executed to synchronize clocks of devices within a wired or wireless network in order to more accurately calculate the time bias, enabling a reduction in dead time and interference between slots while improving bitrate and bandwidth due to reduced inefficiencies in the multiple access protocol.
  • nodes include transmission components and receiver components, an FPGA or DSP configured to generate and process signals, a clock, and self-receive signal hardware.
  • the nodes transmit information wirelessly and as such include RF transceiver hardware such as a super heterodyne radio architecture and an Rx/Tx antenna shown in FIG. 3 B .
  • each node includes a “receive chain” and a “transmit chain.”
  • the receive chain includes a pipeline of hardware components that process signals received from the Rx port.
  • the transmit chain includes a pipeline of hardware components that process transmission signals generated by the FPGA or DSP and feed them into the Tx port.
  • the receive chain and the transmit chain impart a “receive chain delay” and a “transmit chain delay” respectively. “Receive chain delay” and “transmit chain delay” describe the amount of time elapsed as a signal traverses either the receive chain or the transmit chain respectively.
  • the nodes can communicate over a wired network.
  • the nodes can include an I/O port and/or appropriate interface converters for communicating over any wired medium (e.g. ethernet, fiber optic, etc.) instead of an antenna. These interface converters can also impart a receive chain and transmit chain delays upon transmitted and received signals.
  • a node includes extant transceiver infrastructure such as cell tower, mobile phone, or any other RF transceiving device that has been adapted to execute the method S 100 .
  • a cell tower or other extant transceiver can be adapted to execute the method S 100 via software means.
  • the nodes can include hardware to improve the performance of the method S 100 , which can include impedance-matching networks at an antenna interface between a passive coupling device (e.g., coupling the transmit chain and the receive chain to the antenna).
  • the FPGA or DSP of each node is configured to generate complex digital signals and output the generated signals to a DAC.
  • the complex components of the digital signals represent the in-phase and quadrature portions (i.e., I/Q) of the analog signal to be generated by the DAC.
  • the FPGA or DSP of the node receives digital signals from the antenna of the node via an ADC and timestamps received synchronization signals according to an instant value of its own clock and a TOA calculation process further described below.
  • Each node includes a clock, such as a crystal oscillator clock or an atomic clock, which may be responsible for time-keeping functions at the node.
  • the method S 100 can be executed to synchronize the clocks of multiple nodes within a network.
  • the method S 100 can effectively synchronize crystal oscillator clocks that satisfy basic frequency stability, phase noise, and frequency requirements for wireless communication.
  • the clock is a quartz crystal oscillator with an AT cut and a clock frequency of ten megahertz.
  • a node can include a crystal oscillator of any frequency or cut assuming the aforementioned constraints are met.
  • Each node can include specific self-receive hardware, which back-couples and/or reflects a self-receive signal in Block S 120 .
  • the self-receive hardware reflects and/or back-couples an attenuated repetition of the synchronization signal back to the receiving port of the transmitting node.
  • each node is able to timestamp transmitted signals delayed by the receive chain delay.
  • the TOA of the synchronization signal also incurs the same receive chain delay. Because the TOA of the self-receive signal and the TOA of the synchronization signal both include the receive chain delay, they can be directly compared without precise calibration of the receive chain hardware.
  • the self-receive hardware includes an impedance mismatched directional coupler shown in FIG. 3 C .
  • the self-receive hardware can also include a variable impedance circuit, which may be software controlled to vary the gain of the reflected Tx signal into the Rx port.
  • similar impedance-matching can be applied to circulators, power splitters, or any other transmission line device, as further described below.
  • a node can include standard antenna interface hardware with unintentionally mismatched antenna impedance (e.g., characterized by a voltage standing wave ratio greater than one), which can function as the self-receive hardware by reflecting synchronization signals at the antenna interface.
  • each node need not include specialized self-receive hardware in order to execute the method S 100 .
  • the self-receive hardware defines a tuned reflection coefficient for signals incident to the interface between a passive coupling device and the antenna of the node, by including an impedance-matching network between the antenna and the passive coupling device.
  • the impedance-matching network transforms the impedance of the antenna to an impedance that effects a precise reflection coefficient between the passive coupling device and the antenna.
  • the reflection coefficient is selected such that the reflected power of the self-reflected signal is above the noise floor of the ADC and below the saturation voltage of the ADC.
  • the matching network can maintain the reflection coefficient for a wide range of signal frequencies.
  • the self-receive hardware can include a switchable wideband matching network to improve the consistency of the reflection coefficient across a wide range of transmit frequencies.
  • the self-receive hardware can actively switch between multiple impedance-matching networks depending on the frequency of the signal being transmitted by the node.
  • the self-receive hardware can include a frequency multiplexer connected to multiple impedance-matching networks such that each distinct impedance-matching network encounters signals at a frequency that results in the precise reflection coefficient.
  • the system 100 can include an adaptive impedance-matching network that can adjust its impedance and therefore the reflection coefficient between the passive coupling device and the antenna.
  • the node can then use the adaptive impedance-matching network to adjust the reflection coefficient ensuring reception of the self-reflected signal despite changes in the noise levels at the ADC due to changing gains in RF transmit chain and/or receive chain amplifiers and/or interfering signals in the frequency band or bands of interest.
  • the self-receive hardware includes a directional coupler as the passive coupling device.
  • the directional coupler includes four ports, two for each of the coupled transmission lines.
  • the transmit port and the antenna port are located on the same transmission line in the directional coupler while the receive port is located at the coupled port opposite the antenna, thereby receiving coupled power from the antenna and reflected power from the interface between the directional coupler and the antenna.
  • the self-receive hardware can include a directional coupler wherein the receive port and the antenna port are located on the same transmission line. As a result, the receive port receives direct power from the antenna port and the reflected power from the antenna port.
  • the antenna port receives signals from the transmit port at a lower power due to coupling between the two transmission lines.
  • a higher power at the transmit port results in the same power at the antenna port.
  • the self-receive hardware can improve the sensitivity of the transceiver to signals received at the antenna.
  • the self-receive hardware includes a power divider as the passive coupling device.
  • the power divider divides power from an input port between two output ports.
  • power input at the antenna port is split between the transmit port and the receive port, thus any power reflected at the interface between the antenna and the power divider is also divided between the transmit port and the receive port.
  • the self-receive hardware includes a circulator as the passive coupling device.
  • the circulator can couple the transmit port directly to the antenna port while the antenna port is directly coupled to the receive port. Any reflections generated at the antenna port interface are then coupled back to the receive port.
  • each node can include a software-defined radio architecture performing the function of any of the hardware elements described above.
  • the self-receive hardware can include any software or hardware system for feeding a Tx signal into an Rx port of a node.
  • the clocks of each node are coarsely synchronized using another time synchronization protocol.
  • the pair of nodes may be connected to the internet and in communication with one or more NTP servers.
  • both node clocks may be synchronized to between one and ten milliseconds under some conditions.
  • the nodes can communicate with a global navigation system (hereinafter “GNSS”) time synchronization server and may be synchronized to within one microsecond in some cases.
  • GNSS global navigation system
  • the method S 100 leverages existing time synchronization protocols, henceforth referred to as “coarse” time synchronization protocols, such that the nodes are able to communicate with the same synchronization slot in a TDMA described below.
  • a remote server can: coarsely synchronize a first node's clock and a second node's clock; schedule transmission of a first synchronization signal within a first synchronization slot of a first frame, the first synchronization slot characterized by a first synchronization slot duration; schedule transmission of a second synchronization signal within a second synchronization slot of the first frame, the second synchronization slot characterized by the first synchronization slot duration; configure the second node to receive the first synchronization signal during the first synchronization slot of the first frame; and configure the first node to receive the second synchronization signal during the second synchronization slot of the first frame.
  • each TDMA frame includes a synchronization slot to synchronize each unique pair of nodes in the mesh network.
  • a mesh network including three nodes, n 1 , n 2 , and n 3 can include a first synchronization slot for the synchronization of n 1 and n 2 ; a second synchronization slot for n 1 and n 3 ; and a third synchronization slot for n 2 and n 3 .
  • the TDMA frame can include a synchronization slot for each node in the mesh network to transmit a synchronization signal to all other nodes in the mesh network.
  • n 1 , n 2 , and n 3 can include a first synchronization slot for n 1 to transmit a synchronization signal to n 2 and n 3 ; a second synchronization slot for n 2 to transmit a synchronization signal to n 1 and n 3 ; and a third synchronization slot for n 3 to transmit a synchronization signal to n 1 and n 2 .
  • each synchronization slot is further divided into two subsequent sub-slots to reduce synchronization overhead. For example, in a synchronization for n 1 and n 2 , n 1 transmits during the first sub-slot and n 2 receives the transmission from n 1 . Then, in a second sub-slot, n 2 transmits and n 1 receives.
  • Each TDMA frame can also include a header indicating the presence and order of synchronization slots and data transfer slots for each node in the mesh network.
  • each TDMA frame includes a set of synchronization slots.
  • each TDMA frame may or may not include a set of synchronization slots according to the header for the TDMA frame.
  • a TDMA frame can include multiple sets of synchronization slots.
  • the header can include a coordination signal transmitted by a remote server or master node coordinating the TDMA protocol in order to communicate specific transmission times for synchronization signals to nodes in the mesh network.
  • the duration of synchronization slots and the buffer time between two synchronization slots corresponding to different pairs of nodes can vary depending on the implementation and factors such as the current known time bias between nodes and associated uncertainty.
  • the method S 100 can include adjusting synchronization slot duration based on the output of a predictive drift model, further described below.
  • the synchronization slot duration can have a lower limit equal to a sum of the uncertainty in the time bias between the pair of nodes, the propagation time between the pair of nodes, the uncertainty of the propagation time between the pair of nodes, and the duration of the synchronization signal.
  • the slot and the buffer between synchronization slots are both set to one millisecond.
  • the method S 100 can include adjusting the synchronization slot duration as a function of the signal-to-noise ratio of previously received synchronization signals in order to provide additional measurement acquisition time to determine TOA of signals with lower signal-to-noise ratios.
  • the duration of each TDMA frame is subject to a set of practical constraints.
  • the TDMA frame duration can have an upper limit defined by the expected drift of the least stable node clock in the node pair compared to the desired accuracy of the clock synchronization process. For example, if one node clock is known to drift one nanosecond per second due to accumulated jitter and the desired accuracy of the clock synchronization process is one nanosecond, the TDMA frame duration (or time between synchronization slots) can be limited at one second such that the time bias between nodes is not likely to exceed one nanosecond.
  • the TDMA frame duration has a lower limit based on the sum of the expected initial clock offset between the nodes, the total duration of the synchronization slots, the total duration of any data transfer slots, and the total duration of any time buffers between slots.
  • the frame duration can be sufficiently long for each node to receive the initial synchronization signal from each of the other nodes in the network while accounting for a large initial time bias.
  • the system 100 defines a frame duration of at least tens of milliseconds in order to account for time biases between NTP synchronized clocks.
  • the system can designate a master node as the first node to transmit a coordination signal to the other nodes.
  • Each node in the mesh network can then confirm receipt of the master node's confirmation signal, thereby designating the master node to each of the nodes in the mesh network.
  • a first node in a pair of nodes can receive, from a second node in the pair of nodes, a confirmation of receipt of the coordination signal; and, in response to receiving confirmation of receipt of the coordination signal before the first node receives a second coordination signal from another node in the mesh network, designating the first node as a master node.
  • the TOA of the coordination signal can be calculated at each node and sent to a remote server, which can then determine the master node in the mesh network.
  • the remote server designates the master node or coordinates the TDMA and the method S 100 for the set of nodes in the mesh network.
  • each node in a pair of nodes executing the method S 100 can transmit synchronization signals and receive both synchronization signals from other nodes and self-receive signals during the synchronization slot. Therefore, in one implementation, the nodes execute a time division duplex (hereinafter “TDD”) or a half-duplex scheme to communicate within a synchronization slot.
  • TDD time division duplex
  • the synchronization signals transmitted by each node in a node pair are separated by a predetermined delay time (e.g., approximately half the synchronization slot duration) such that a first node in a pair of nodes can transmit a first synchronization signal and receive a self-receive signal corresponding to the first synchronization signal during a first division of the synchronization slot and subsequently receive a second synchronization signal (transmitted from a second node in the node pair) in a second division of the synchronization slot.
  • nodes executing the method S 100 can transmit a coordination signal including timing information such as slot division durations and timings to other nodes in the mesh network thereby establishing a half-duplex communication link between the two nodes.
  • the system can implement a full-duplex (i.e., frequency division duplex, hereinafter “FDD”) communication scheme whereby each node in a pair of nodes can transmit and receive synchronization signals simultaneously (e.g., wherein each synchronization signal is sent over multiple frequencies). Additionally, each node in a pair of nodes can be configured to simultaneously receive a self-receive signal back-coupled to the receiver of the node and a synchronization signal from a second node in the pair of nodes.
  • FDD frequency division duplex
  • a master node in a pair of nodes can transmit the coordination signal to the second node, wherein the coordination signal indicates a second time to transmit the second synchronization signal equal to a first time of transmission of the first synchronization signal; and establish a full-duplex communication link with the second node.
  • the nodes can also communicate using frequency division multiple access or any other channel access method.
  • each node in a pair of nodes can execute Blocks S 110 , S 120 , S 130 , S 140 , S 150 , and S 160 to: transmit synchronization signals to each other at a predetermined transmission time that is evaluated according to the clock of each node; back-couple the synchronization signal via the self-receive hardware of the node to form a self-receive signal; and record TOAs for the back-coupled self-receive signal and the synchronization signal received from the opposite node in the pair of nodes.
  • each node in a pair of nodes calculates two TOAs according to the node's clock.
  • Each node can then send the TOA of the self-receive signal and the TOA of the synchronization signal (e.g., during a data transfer slot in the frame) either to one of the nodes in the pair of nodes or a remote server in order to calculate the time bias between the pair of nodes and the propagation delay between the pair of nodes, in Block S 170 .
  • Variations of the method S 100 shown in FIGS. 1 B and 1 C include additional Blocks for coordinating a pair of nodes executing the method S 100 .
  • a master node in the pair of nodes executes Blocks S 102 , S 142 , S 162 , and S 170 in addition to the previously mentioned Blocks of the method S 100 in order to: communicate a transmission time to the slave node; receive a TOA of the self-receive signal calculated by the slave node; receive a TOA of the synchronization signal calculated by the slave node; and calculate, at the master node, a time bias and a propagation delay between the master node and the slave node.
  • the master node can communicate a transmission time to the slave node such that the master node can receive the synchronization signal transmitted by the slave node during a synchronization slot in the TDMA communication scheme.
  • a remote server or other computational device communicating with a pair of nodes executes Blocks of the method S 104 , S 106 , S 144 , S 146 , S 164 , S 166 , and S 170 to: schedule a transmission time for each of the pair of nodes; receive TOAs from each of the nodes for a synchronization signal received by each of the pair of nodes, and a self-receive signal received at each of the pair of nodes; and calculate a time bias and a propagation delay between the pair of nodes.
  • various entities included with the system can cooperate to execute a time synchronization protocol between a pair of nodes in a mesh network in order to calculate a time bias and a propagation delay between the pair of nodes.
  • the time biases are tracked by a remote server and accounted for when managing a TDMA communication protocol, when executing multilateration for transmitting RF devices, or when executing any other protocol utilizing a time synchronized mesh network.
  • one of the nodes can function as a master node and track time biases and propagation time between nodes in the mesh network.
  • each node in the node pair can concurrently or consecutively execute Blocks S 110 , S 120 , S 130 , S 140 , S 150 , and S 160 .
  • a first node in the pair of nodes can execute a first instance of these Blocks of the method S 100 in S 110 A, S 120 A, S 130 A, S 140 A, S 150 A, and S 160 A
  • a second node in the pair of nodes can execute a second instance of these Blocks in S 110 B, S 120 B, S 130 B, S 140 B, S 150 B, and S 160 B.
  • Blocks S 110 , S 120 , S 130 , S 140 , S 150 , or S 160 can therefore apply to respective Blocks S 110 A, S 120 A, S 130 A, S 140 A, S 150 A, or S 160 A executed by the first node or respective Blocks S 110 B, S 120 B, S 130 B, S 140 B, S 150 B, or S 160 B executed by the second node.
  • the first node can execute Blocks S 110 A, S 120 A, S 130 A, and S 140 A at any time relative to the second node executing Blocks S 110 B, S 120 B, S 130 B, and S 140 B (assuming both nodes are executing during the synchronization slot).
  • the first node executes Blocks S 150 A and S 160 A to receive and calculate a TOA for a synchronization sent from the second node after the second node executes Blocks S 110 B, S 120 B, S 130 B, and S 140 B.
  • the second node executes Blocks S 150 B and S 160 B after the first node executes Blocks S 110 A, S 120 A, S 130 A, and S 140 A.
  • each node in a pair of nodes transmits a synchronization signal at a predetermined or coordinated transmission time within a synchronization slot.
  • a first transmission time for Block S 110 A can be offset from a second transmission time for Block S 110 B by a transmission interval.
  • each node in a pair of nodes transmits a synchronization signal at a predetermined transmission time according to each node's own clock. For example, if a first transmission time for a first node is set at 1:00:00, then the first node transmits the synchronization at 1:00:00 according to its own clock.
  • each node transmits a synchronization signal offset by the time bias between the two nodes and offset by the transmission interval between the transmission times for each node.
  • each node transmits a synchronization signal at a predetermined transmission time, instead of transmitting a synchronization signal in response to receiving a signal from another node, such as is in other two-way ranging protocols, the system executing the method S 100 does not require precise characterization of receive chain delay, transmit chain delay, or intervening processing delay for each node in order to accurately calculate the time bias and propagation time between a pair of nodes.
  • each node generates a synchronization signal; concurrently or consecutively transmits the synchronization signal to the other node in a pair of nodes and receives a self-receive signal based on the transmitted synchronization signal; and receives a synchronization signal from the other node in the node pair.
  • the nodes in a node pair will be referred to as n 1 and n 2 .
  • n 1 and n 2 can refer to any two-node pair in a mesh network (e.g., n i and n j ).
  • the method S 100 includes calculating the relative time bias between n 1 and n 2 represented as (b 1 ⁇ b 2 ) and the propagation delay ⁇ .
  • the node can cross-correlate a received synchronization signal or self-receive signal with a template signal to determine a timestamp corresponding to the peak value of the autocorrelation function.
  • Synchronization signals can include specifically chosen sequences that have a high autocorrelation value when the sequences are aligned and a low autocorrelation value otherwise.
  • each node performs digital autocorrelation between received signals and template signals.
  • each node performs analog autocorrelation between an analog conversion of the digital synchronization signal and the template signal. The latter accounts for the value of the samples in addition to the time durations between samples.
  • the node can refine the calculated TOA based on phase information extracted from the synchronization signal.
  • the nodes can transmit each synchronization signal over multiple frequency bands to increase the number of carrier phase measurements obtained by the receiving node and therefore increase the accuracy of the TOA calculation.
  • n 1 At local time T 1 (i.e., a first transmission time), n 1 generates a digital synchronization signal at the FPGA or DSP.
  • n 1 converts the digital synchronization signal to an analog synchronization signal for transmission via the antenna and propagates the converted synchronization signal along the transmit chain of n 1 , thereby incurring a transmit chain delay, t 1 .
  • the analog signal then interacts with the self-receive hardware, which reflects or otherwise back-couples the synchronization signal into the Rx port of n 1 as shown in Block S 120 A.
  • the self-receive signal (i.e., reflected or otherwise back-coupled) synchronization signal is substantially similar to the synchronization signal though the power of the two signals may differ.
  • the power of the self-receive signal ensures the self-receive signal does not saturate the ADC of n 1 .
  • n 1 receives the self-receive signal as it the synchronization signal. While the self-receive signal propagates through the receive chain of n 1 it incurs receive chain delay, r 1 .
  • S 1,1 represents the TOA of the self-receive signal from n 1 according to the clock of n 1 .
  • n 2 executes the equivalent steps to those executed by n 1 in Blocks S 110 A, S 120 A, S 130 A, and S 140 A, thereby transmitting a second synchronization signal and calculating a TOA of the self-receive signal generated by n 2 :
  • S 2,2 T 2 +t 2 +r 2 , where T 2 is a local time at n 2 (i.e., the second transmission time), t 2 is that transmit chain delay of n 2 , and r 2 is the receive chain delay of n 2 .
  • T 2 is a local time at n 2 (i.e., the second transmission time)
  • t 2 is that transmit chain delay of n 2
  • r 2 is the receive chain delay of n 2 .
  • S 2,2 represents the measured TOA of the self-receive signal from n 2 according to the clock of n 2 .
  • n 1 receives the synchronization signal from n 2 , which propagates through the receive chain of n 1 incurring receive chain delay, r 1 .
  • S 1,2 represents the measured TOA of the synchronization signal from n 2 according to the clock of n 1 .
  • S 2,1 represents the measured TOA of the synchronization signal from n 1 according to the clock of n 2 .
  • one of the nodes collects the above TOAs, S 1,1 , S 1,2 , S 2,2 , and S 2,1 , to calculate T and b 1 ⁇ b 2 +r 1 ⁇ r 2 , or the relative time bias plus the difference in receiver chain delay.
  • the method S 100 can also include synchronizing the time between n 1 and n 2 by adding b 1 ⁇ b 2 +r 1 ⁇ r 2 to the clock of n 1 or n 2 to compensate for the initial time bias.
  • one node is designated as a “master node” while the other nodes are designated “slave nodes.”
  • the method S 100 includes adjusting the clocks of the slave nodes to match the master node.
  • a master node or remote server in the system can track the relative time bias of each node pair in a mesh network and compensate for the calculated time biases when executing processes that rely on precise time synchronization between nodes in the mesh network, such as time-based communication protocols or multilateration of other RF devices.
  • each node in the mesh network can average measurements to calculate a time bias and propagation delay when these variables are over-defined.
  • the time bias between n 1 and n 2 can also be calculated as follows:
  • the method S 100 can include indirectly calculating a time bias between nodes that do not have a direct communication line (e.g., due to an obstruction of communication between the two nodes). For example, in a network including nodes n 1 , n 2 , and n 3 , the time bias between n 1 and n 3 can also be calculated as follows:
  • n 2 and n 3 can execute another iteration of the method S 100 and the system can calculate a time bias between the first clock of n 1 and the third clock of n 3 based on a sum of the first time bias (b 1 ⁇ b 2 ) and the second time bias (b 2 ⁇ b 3 ).
  • the method S 100 can include calculating an instantaneous uncertainty in the relative time bias between nodes, ⁇ (b 1 ⁇ b 2 ) and an instantaneous uncertainty in the propagation delay ⁇ .
  • Sources of uncertainty can include the propagated uncertainty based on the peak width of the autocorrelation function for each TOA calculation plus any expected phase noise that may occur at the clocks of each node between synchronization slots.
  • the system can also refine the propagation time T by extracting carrier phase information from each of the four received signals, the first self-receive signal received at n 1 , the first synchronization signal received at n 2 , the second self-receive signal received at n 2 , and the second synchronization signal received at n 1 .
  • the system can statistically solve the set of equations (e.g., via a least-squares calculation or other numerical methods) to refine the propagation time ⁇ .
  • a remote server or master node executing Blocks of the method S 100 can, after transmission of the synchronization signal by n 1 at T 1 according to a clock of n 1 : receive, from n 1 , a phase of a first self-receive signal according to n 1 ; and receive, from n 2 , a phase of the synchronization signal from n 1 according to n 2 ; and, after transmission of the synchronization signal by n 2 at T 2 according to a clock of n 2 : receive, from n 2 , a phase of a second self-receive signal according to the clock of n 2 ; and receive, from n 1 , a phase of the synchronization signal from n 2 according to the clock of n 1 .
  • the remote server or master node can then refine the first propagation delay based on the phase of the first self-receive signal, the phase of the first synchronization signal, the phase of the second self-receive signal, and the phase of
  • the system can shift the clock of one node in each pair of nodes by the calculated time bias in order to synchronize the clocks of the pair of nodes.
  • the system can maintain the time bias of each node relative to a master node or other time standard (e.g., the clock of a remote server) and correct scheduling times sent to each node and/or timestamps received from each node based on the latest calculated time bias of the node relative to the master node or time standard—such as by subtracting the time bias of the node from any timestamps calculated by the node.
  • a master node or other time standard e.g., the clock of a remote server
  • a second method S 200 for calculating a frequency offset between two clocks includes, at a first node: transmitting a first calibration signal at a first time-of-departure measured by a first clock of the first node; and transmitting a second calibration signal at a second time-of-departure measured by the first clock and succeeding the first time-of-departure by an initial signal interval in Block S 210 .
  • the second method S 200 also includes, at a second node: receiving the first calibration signal at a first time-of-arrival measured by a second clock of the second node; and receiving the second calibration signal at a second time-of-arrival measured by the second clock in Block S 220 .
  • the second method S 200 further includes: defining a first calibration point in a first set of calibration points, the first calibration point representing the first time-of-departure and the first time-of-arrival; defining a second calibration point in the first set of calibration points, the second calibration point representing the second time-of-departure and the second time-of-arrival in Block S 230 ; calculating a first regression on the first set of calibration points in Block S 240 ; and calculating a first frequency offset between the first clock and the second clock based on the first regression in Block S 250 .
  • one variation of the second method S 200 includes: scheduling transmission, from a first node, of a first calibration signal at a first time-of-departure measured by a first clock of the first node; scheduling transmission, from the first node, of a second calibration signal at a second time-of-departure measured by the first clock and succeeding the first time-of-departure by an initial signal interval in Block S 212 ; receiving, from a second node, a first time-of-arrival measured by a second clock of the second node, the first time-of-arrival corresponding to reception of the first calibration signal at the second node; receiving, from the second node, a second time-of-arrival measured by the second clock, the second time-of-arrival corresponding to reception of the second calibration signal at the second node in Block S 222 ; defining a first calibration point in a first set of calibration points, the first calibration point representing the first time-of-departure and the first time-of-
  • the second method S 200 is executable by a set of (e.g., two) nodes in a mesh network and/or a remote server (hereinafter “the system” as shown in FIG. 11 ) to calculate a frequency offset between clocks of these nodes and to compensate for this frequency offset in communications between these nodes.
  • a pair of nodes can execute the second method S 200 to detect and compensate for a frequency offset between their clocks (e.g., by adjusting a trim capacitor or digital correction), such as between two crystal oscillator clocks or between a crystal oscillator clock and an atomic clock.
  • the pair of nodes can then execute the first method S 100 described above to temporally synchronize their clocks in order to characterize the absolute time bias between the clocks of the pair of nodes.
  • the second method S 200 can be executed between nodes with only a coarse level of time synchronization between them (e.g., a time synchronization on the order of 1-100 milliseconds).
  • a pair of coarsely synchronized nodes can execute the second method S 200 , to first compensate for frequency drift between the pair of nodes, and subsequently execute the first method S 100 in order to characterize the time domain drift between the frequency synchronized clocks of the pair of nodes to within one nanosecond.
  • frequency offsets between crystal oscillators may occur within a range of hundreds of parts-per-billion (hereinafter “PPB”) to hundreds of parts-per-million (hereinafter “PPM”).
  • PPB parts-per-billion
  • PPM parts-per-million
  • the system can first characterize the frequency offset between these clocks in order to preserve the accuracy of this time bias even as these clocks drift relative to each other over time due to this frequency offset. Therefore, the system can execute the second method S 200 to calculate the frequency offset between the clocks of two nodes—such as to within ten PPB—in order to support higher-precision calculation of a time bias between these nodes, such as during execution of the first method S 100 .
  • the system can execute the second method S 200 in conjunction with the first method S 100 in order to achieve high-resolution (e.g., nanosecond-level) time synchronization between two nodes.
  • the system can: wirelessly connect a pair of nodes in a mesh network to attain a rough level of time synchronization (e.g., to within a few milliseconds; execute the method S 200 to attain frequency compensation between the pair of nodes to with ten PPB; execute method S 100 to attain a time synchronization between the pair of nodes to within one nanosecond.
  • the system can then implement TOA or time-difference-of-arrival multilateration to locate transmitters to within 30 centimeters.
  • the system can execute high-speed TDMA communication protocols between the pair of nodes with minimal slot and/or frame buffers.
  • the second method S 200 is described herein as executed between two nodes (or a “pair” of nodes). However, the method S 200 can additionally or alternatively be executed between any other quantity of nodes and/or a master node concurrently or sequentially.
  • a first node i.e., the “transmitting node” in the mesh network transmits successive calibration signals separated by a calibration signal interval (hereinafter a “signal interval”) during a period of time between a first calibration signal and a last calibration signal (hereinafter a “calibration period”).
  • the transmitting node also records a time-of-departure (hereinafter “TOD”) of each calibration signal such that the system can later compare the TOD of each calibration signal as measured by a clock of the transmitting node to the TOA of each calibration signal as measured by a clock of the receiving node.
  • TOD time-of-departure
  • the transmitting node transmits calibration signals similar in structure to the synchronization signals described above with respect to the first method S 100 .
  • the system can handle a single RF signal as both a synchronization signal and a calibration signal according to the first method S 100 and the second method S 200 , respectively.
  • the transmitting node also transmits calibration signals successively during a calibration slot in a TDMA frame—described above—according to the second method S 200 .
  • the transmitting node delays each successive calibration signal by a signal interval measured by a clock of the transmitting node. For example, for a signal interval of one second, the transmitting node can begin transmission of the first calibration signal one second before the beginning transmission the second calibration signal.
  • the system can adapt a duration of the signal interval according to the hardware of the transmitting node and/or receiving node based on a predicted initial offset between the clocks of a pair of nodes; a nominal initial clock frequency of each node, and a desired accuracy for the frequency offset calculation. For example, by decreasing the duration of the signal interval, the system can increase a number of calibration signals transmitted between these nodes within a single calibration period, thereby improving accuracy of a regression on calibration points based on the TODs and TOAs of these calibration signals.
  • the system can adapt a duration of the calibration period (during which all calibration signals are sent) according to an expected maximum frequency offset between nodes, a desired precision of the frequency offset calculation (e.g., measured in PPM or PPB), and/or the expected maximum timestamping noise of the receiving node.
  • a duration of the calibration period (during which all calibration signals are sent) according to an expected maximum frequency offset between nodes, a desired precision of the frequency offset calculation (e.g., measured in PPM or PPB), and/or the expected maximum timestamping noise of the receiving node.
  • the receiving node in the pair of nodes receives each successive calibration signal and determines the TOA of each calibration signal to within one sampling period (e.g. based on the sample time counter of the clock)—such as based on digital timestamping. For example, if the nominal sampling frequency of a node clock is ten megahertz, the TOA can be determined to within the sampling period of 100 nanoseconds.
  • the clock of the receiving node and the clock of the transmitting node may operate at different frequencies, the accuracy of the TOA of each calibration signal—such as calculated by the receiving node—may be reduced to within one sampling period (e.g. to within 100 nanoseconds for a clock with a sampling frequency of ten megahertz) when compared to the TOA calculation for the synchronization signal in the first method S 100 . Therefore, the receiving node can calculate TOAs for multiple calibration points corresponding to multiple calibration signals such that the system can calculate a frequency offset between clocks of the transmit and receive nodes based on a cumulative plot of successive calibration points.
  • the system can then define and plot a set of calibration points, wherein each calibration point includes a TOD of a calibration signal from the transmitting node and a TOA of the same signal measured by the receiving node.
  • the system can execute a linear regression on the set of calibration points and extract the frequency offset between the two nodes from the slope of the best-fit line of the linear regression.
  • the system can calculate the time elapsed between TOAs of successive calibration signals according to the clock of the receiving node and calculate a difference between the elapsed time and the signal interval. The system can then record the calculated difference as a signal interval deviation, which the system can leverage to determine a frequency offset between clocks in the nodes (e.g., based on an average or weighted average of signal interval deviations).
  • the system can estimate frequency offsets to a high degree of accuracy despite various sources of timestamping noise at each node.
  • Timestamps measured at the receiving node may be affected by: frequency domain drift due to the frequency offset between clocks in the nodes; time domain drift due to phase noise accumulation during the signal interval; time domain drift due to changing environmental factors during the signal interval; RF interference at the receiving node; and/or scheduling delays in the process of the receiving node.
  • the system defines multiple calibration points over a calibration period in order to characterize timestamping noise between the pair of nodes and calculate an accurate estimate of the frequency offset despite timestamping noise in the pair of nodes.
  • the receiving node and/or the remote server executing the second method S 200 can apply frequency compensation equal to the measured frequency offset to the clock of one of the nodes (e.g. the slave node to bring the slave node into frequency calibration with a master node).
  • a remote server communicating with nodes in the mesh network executing the method S 200 can schedule successive TDMA slots in a time synchronization, frequency calibration, data communication, and/or localization protocol executed by the mesh network while compensating for the calculated frequency offset between the nodes.
  • the frequency calibration process occurs on a pairwise basis across a network of nodes calibrating the frequency of each node clock based on the clock frequency of a master node.
  • the master node can transmit the successive calibration signals to multiple nodes in the network at the same time and each of the receiving nodes can be calibrated to the master node concurrently.
  • the system executing the second method S 200 can characterize the frequency offset between the clocks of a set of nodes in the mesh network.
  • the frequency calibration process of the second method S 200 includes a set of configurable or adaptable attributes including: the calibration transmission pattern, the calibration period, the signal interval, and recalibration triggers.
  • a transmitting node executes Block S 210 by transmitting a series of calibration signals to a set of receiving nodes. More specifically, the transmitting node can: transmit a first calibration signal at a first TOD measured by a clock of the transmitting node; and transmit a second calibration signal at a second TOD measured by the clock of the transmitting node and succeeding the first TOD by an initial signal interval. Additionally, in Block S 212 , the system (i.e., a remote server coordinating the method S 200 ) can schedule the transmission of calibration signals at specific TODs.
  • the system can: schedule transmission, from the transmitting node, of the first calibration signal at the first TOD measured by the clock of the transmitting node; and schedule transmission, from the transmitting node, of the second calibration signal at a second TOD measured by the clock of the transmitting node and succeeding the first TOD by the initial signal interval.
  • the set of receiving nodes can then receive the transmitted series of calibration signals in Block S 220 . More specifically, a receiving node can: receive the first calibration signal at a first TOA measured by a clock of the receiving node; and receive the second calibration signal at a second TOA measured by the clock of the receiving node. Additionally, the receiving node can report the measured TOAs of the calibration signals to the system such that the system can define a set of calibration points based on the TODs of the calibration signals at the transmitting node and the TOAs of the calibration signals at the receiving nodes.
  • the system i.e., a remote server coordinating the method S 200
  • the system can: receive, from a receiving node, the first TOA measured by a clock of the receiving node, the first TOA corresponding to reception of the first calibration signal at the receiving node; and receive, from the receiving node, a second TOA measured by the clock of the receiving node, the second TOA corresponding to reception of the second calibration signal at the receiving node.
  • the system can include: a transmitting node, a receiving node, a master node (which can be either the transmitting node or the receiving node); and/or a set of remote servers connected to the transmitting node and receiving node.
  • the system can then execute Blocks S 230 , S 240 , and S 250 in order to calculate a frequency offset between the transmitting node and the set of receiving nodes.
  • the system can: define a first calibration point in a set of calibration points, the first calibration point including the first TOD and the first TOA (i.e., the TOD and TOA corresponding to the first calibration signal); define a second calibration point in the set of calibration points, the second calibration point including the second TOD and the second TOA (i.e., the TOD and TOA corresponding to the second calibration signal); calculate a regression on the first set of calibration points; and calculate a frequency offset between the clock of the transmitting node and the clock of the receiving node based on the regression. Additionally, the system can define additional calibration points in the set of calibration points beyond the two described above, wherein each additional calibration point includes a TOD and a TOA of a calibration signal transmitted from the transmitting node to the receiving node.
  • the transmitting node is a master node, while the receiving node is a slave node.
  • the second method S 200 calculates the frequency offset of the receiving node relative to the transmitting node.
  • the method S 200 is described with respect to a single transmitting node and a single receiving node for ease of description.
  • functions of the single receiving node can be executed by each receiving node in the set of receiving nodes.
  • a “calibration transmission pattern” refers to the particular pattern (i.e., the timing of calibration signals transmitted by a transmitting node) with which a transmitting node transmits calibration signals during a calibration period
  • a “calibration period” refers to a time period between a first calibration signal transmitted by a transmitting node and a last calibration signal transmitted by the transmitting node for a given frequency offset calculation.
  • a “signal interval” refers to a time interval between transmitted calibration signals as measured by the clock of the transmitting node. Therefore, the signal interval can vary depending on the calibration transmission pattern of each iteration of the method S 200 .
  • Recalibration triggers refer to factors that can trigger a frequency calibration process after the completion of an initial frequency calibration between two nodes.
  • the nominal sampling frequency of both the master node and the slave node may be known (at either the master node or a remote server executing the second method S 200 ). Furthermore, the initial frequency offset is assumed to be bounded within an error value specified by the clocks included in each node.
  • the second method S 200 includes steps that leverage this information to set parameters such as the calibration transmission pattern and the signal interval duration.
  • a first node i.e., a transmitting node transmits a set of successive calibration signals spanning a calibration period, starting at a first time and separated by signal intervals as measured by a clock of the first node.
  • the system can execute the method S 200 according to calibration transmission patterns that can include: a continuous succession of calibration signals separated by a consistent signal interval; a series of calibration signals with a varying intervening signal interval; and/or multiple groups of calibration signals grouped in successive calibration slots separated by intervening slots of a TDMA protocol.
  • the transmitting node executing the second method S 200 transmits a succession of calibration signals separated by a consistent signal interval.
  • the transmitting node can transmit a set of calibration signals with a signal interval of one second and therefore transmits a calibration signal each second during the calibration period according to the clock of the transmitting node.
  • the transmitting node executing Blocks of the second method S 200 utilizes a calibration transmission pattern that includes multiple sets of calibration signals, each set of calibration signals separated by a signal interval followed by successive sets of calibration signals also separated by a signal interval. Each successive set is separated by a slot interval between calibration slots defined by a TDMA protocol implemented by the system. Therefore, the transmitting node can transmit any of the calibration signals of the transmission signal in separate calibration slots. In this implementation, the transmitting node transmits a set of calibration signals and separates each set by a slot interval.
  • this calibration pattern is to align calibration signals with calibration slots specified in a TDMA frame, such that the first set of calibration signals are transmitted and received during a first calibration slot in a first TDMA frame and the second set of calibration signals are transmitted and received in a second calibration slot in a second TDMA frame. Furthermore, by transmitting clusters of calibration signals within calibration slots, the system can increase the calibration period while without occupying the time bandwidth for the entire calibration period. Thus, the transmitting node can set the slot interval equal to the time between calibration slots in subsequent TDMA frames, thereby enabling the transmitting and receiving nodes to execute other processes during the intervening period between calibration slots.
  • the system can schedule a data transfer slot for the transmitting node between a first TOD (during a first calibration slot) and the second TOD (during a second calibration slot), the data transfer slot characterized by a slot duration less than the initial signal interval by at least a duration of a calibration signal.
  • the system can schedule a synchronization slot (for execution of the first method S 100 ) for the transmitting node and the receiving node between a first TOD and a second TOD, the synchronization slot characterized by a slot duration less than the initial signal interval by at least a duration of a calibration signal.
  • the system can: schedule a time synchronization slot for the transmitting node and the receiving node between the first TOD and the second TOD; schedule transmission, from the first node, of a first synchronization signal during the time synchronization slot; receive, from the transmitting node, a third TOA measured by the clock of the transmitting node, the third TOA corresponding to reception, at the transmitting node, of a first self-receive signal generated by the transmitting node as a back-coupled reflection of the first synchronization signal; receive, from the transmitting node, a fourth TOA measured by the clock of the transmitting node, the fourth TOA corresponding to reception, at the transmitting node, of a second synchronization signal transmitted by the receiving node; schedule transmission, from the receiving node, of the second synchronization signal during the time synchronization slot; receive, from the receiving node, a fifth TOA measured by the clock of the receiving node, the fifth TOA corresponding to reception, at the receiving node, of
  • the transmitting node utilizes a calibration transmission pattern including a variable signal interval.
  • the transmitting node can transmit a first set of two calibration signals separated by a first signal interval followed by a second set of two calibration signals separated by a second signal interval greater than the first interval. In this manner, the transmitting node sweeps through a series of signal intervals by transmitting successive sets of two calibration signals.
  • the receiving node or remote server executing blocks of the second method S 200 can calculate deviations in the received signal intervals from the expected variable signal interval.
  • the transmitting node executing the second method S 200 can execute increasingly narrow sweeps to improve the estimate of the frequency offset.
  • the transmitting node executing Blocks of the second method S 200 can transmit calibration signals in a pattern including any combination of the aforementioned patterns.
  • the system can coordinate the timing of calibration signals, calibration slots, data transfer slots, time synchronization slots, and/or any other TDMA slot within multiple TDMA frames by leveraging a rough time bias calculation between the transmitting node and the receiving node. More specifically, the system can: calculate a rough time bias between the transmitting node and the receiving node; schedule transmission, from the transmitting node, of the first calibration signal at the first TOD during a transmission slot at the transmitting node; schedule transmission, from the transmitting node, of the second calibration signal at the second TOD during the transmission slot at the transmitting node; and schedule, at the receiving node, a reception slot spanning the first TOA and the second TOA, based on the rough time bias.
  • the system can execute the second method S 200 to characterize a frequency offset between the transmitting node and multiple receiving nodes utilizing the same set of calibration signals. More specifically, the system can: receive, from a second receiving node, a third TOA measured by a clock of the second receiving node, the third TOA corresponding to reception of the first calibration signal at the second receiving node; receive, from the second receiving node, a fourth TOA measured by the clock of the second receiving node, the fourth TOA corresponding to reception of the second calibration signal at the second receiving node; define a third calibration point in a second set of calibration points, representing the first TOD of the first calibration signal and the third TOA at the second receiving node; define a fourth calibration point in the second set of calibration points, representing the second TOD of the second calibration signal and the fourth TOA at the second receiving node; calculate a second regression on the second set of calibration points; and calculate a second frequency offset between the clock of the transmitting node and the clock of the second receiving node based on the second
  • the transmitting node can transmit a set of calibration signals within a calibration period—defined as the maximum time between calibration signals for use in a single frequency offset characterization. More specifically, when executing the second method S 200 , the transmitting node can: transmit a last calibration signal at a TOD measured by the clock of the transmitting node, the TOD succeeding the first TOD by a calibration period.
  • the system can: define a final calibration point of the set of calibration points, the final calibration point of the set of calibration points comprising the last TOD at the transmitting node of the last calibration signal and the last TOA at the receiving node of the last calibration signal.
  • the duration of this calibration period governs the precision with which the system can characterize the frequency offset between nodes. This effect is due to the fact that the receiving node has a limited timestamping accuracy (e.g., due to timestamping noise) and therefore detects accumulated time domain drift (due to a frequency offset between nodes) upon the time domain drift becoming measurable over timestamping noise. Therefore, given a longer calibration period, the system can detect smaller frequency offsets between nodes as the time domain drift between the nodes has had longer to accumulate.
  • the timestamping noise for a receiving node can include effects of quantization noise at the ADC of the receiving node and accumulated jitter from either the clock of the transmitting node or the clock of the receiving node.
  • the system can also improve its resiliency to second-order effects (time domain change in the frequency offset between nodes) and the latency introduced by the second method S 200 by utilizing a shorter calibration period.
  • the system can calculate a calibration period that can satisfy the desired precision of the frequency offset characterization, while reducing latency introduced by the second method S 200 .
  • a timestamping noise distribution ⁇ the system can define a maximum timestamping noise, ⁇ max , based on a threshold interval in A and excluding outliers in A.
  • the system can calculate ⁇ max based on previous iterations of the second method S 200 executed by nodes including similar hardware components to those nodes currently executing Blocks of the method S 200 or the system can utilize a theoretical estimation of ⁇ max input by an administrator of the system.
  • the system can then define a desired precision, ⁇ (expressed as a proportion: e.g., 0.000001 for a precision of one PPM), based on an input by an administrator of the system. Additionally, the system can define a ⁇ based on an expected frequency offset between the transmitting node and the receiving node. In one implementation, the system can calculate a calibration period based on a ⁇ equal to ten percent of the expected frequency offset. However, the system can define ⁇ as any function of the expected frequency offset. Therefore, the system can (indirectly) calculate the calibration period based on the expected frequency offset between the transmitting node and the receiving node.
  • expressed as a proportion: e.g., 0.000001 for a precision of one PPM
  • the system can: calculate the calibration period, m max ⁇ m min , by solving for m max ⁇ m min in the inequality: m max ⁇ m min > ⁇ max / ⁇ .
  • the system calculates a calibration period of at least 10 seconds.
  • the system can refine the calibration period over successive iterations of the second method S 200 to further improve the characterization of the frequency offset between two nodes after an initial characterization of the frequency offset. More specifically, the system can: calculate a timestamping noise of the clock of the receiving node relative to the clock of the transmitting node based on a residual of a first regression; and calculate an adjusted calibration period based on a desired precision and the timestamping noise. The system can then perform a second iteration of the second method S 200 to further prove the precision of the frequency offset characterization of the clocks of the two nodes.
  • the transmitting node can: transmit a fourth calibration signal at a fourth TOD measured by the clock of the transmitting node; transmit a fifth calibration signal at a fifth TOD measured by the clock of the transmitting node and succeeding the fourth TOD by a signal interval; and transmit a sixth calibration signal at a sixth TOD measured by the clock of the transmitting node and succeeding the fourth TOD by the adjusted calibration period.
  • the receiving node can then: receive the fourth calibration signal at a fourth TOA measured by the clock of the receiving node adjusted by the first frequency offset; receiving the fifth calibration signal at a fifth TOA measured by the clock of the receiving node adjusted by the first frequency offset; and receiving the sixth calibration signal at a sixth TOA measured by the clock of the receiving node adjusted by the first frequency offset.
  • the system can then: define a fourth calibration point in a second set of calibration points, the fourth calibration point including the fourth TOD and the fourth TOA; defining a fifth calibration point in the second set of calibration points, the fifth calibration point including the fifth TOD and the fifth TOA; define a final calibration point of the second set of calibration points, the final calibration point of the second set of calibration points comprising the sixth TOD and the sixth TOA; calculate a second regression on the second set of calibration points; and calculate a second frequency offset between the first clock and the second clock compensated by the first frequency offset.
  • the system can calculate an actual timestamping noise (as opposed to an a priori estimate of the timestamping noise) in order to subsequently calculate an adjusted calibration period. Additionally or alternatively, the system can decrease 8 , and thereby increase the precision of the second frequency offset characterization. The system can continue to execute additional iterations of the second method S 200 to further increase the precision of the frequency offset characterization. Meanwhile, each of the nodes executing the additional iterations of the second method S 200 can transmit and/or receive according to other functions of the node during intervening time synchronization slots, data transfer slots, and/or any other type of TDMA slot.
  • the transmitting node executing Blocks of the second method S 200 transmits calibration signals according to the aforementioned calibration transmission patterns.
  • the transmitting node can transmit calibration signals separated by various signal intervals depending on the implementation. More specifically, the transmitting node: transmits a first calibration signal at a first TOD measured by a clock of the transmitting node; and transmits a second calibration signal at a second TOD measured by the clock of the first node and succeeding the first time-of-departure by an initial signal interval.
  • the system can increase the number of calibration points generated for a given frequency offset characterization thereby improving the accuracy of frequency offset characterization in the face of timestamping noise.
  • the system can calculate an initial signal interval for the second method S 200 based on the timestamping noise distribution ⁇ , which can result from the noise floor of the receiver chain of the receiving node and transmitter chain of the transmitting node, interference in the frequency band of operation, jitter in the crystal oscillators of the transmitting node and the receiving node, and/or operating conditions of the transmitting node and the receiving node (e.g., ambient temperature and pressure). Therefore, in one implementation, the system can estimate ⁇ based on characteristics of the clocks of the transmitting node and the receiving node.
  • the system can: access clock characteristics of the clock of the transmitting node; access clock characteristics of the clock of the receiving node; and calculate an initial signal interval based on clock characteristics of the clock of the transmitting node and clock characteristics of the clock of the receiving node.
  • the system can transmit calibration signals with a shorter signal interval in order to increase the accuracy of the frequency offset characterization.
  • the system can transmit calibration signals with a longer signal interval to free up the transmitting and/or receiving node to perform other functions.
  • the system can calculate the signal interval based on an outlier probability, P out , which is defined as the probability in A that a given timestamping measurement has a variation from the accurate timestamp greater than the outlier threshold, ⁇ max .
  • the system can calculate n by evaluating the inequality: P out n ⁇ P T ,n ⁇ .
  • the system can: calculate an outlier probability based on the timestamping noise; calculate a number of calibration signals in a calibration period based on the desired accuracy and the outlier probability; and divide the calibration period by the number of calibration signals to calculate the adjusted signal interval.
  • the system can calculate n based on a desired statistical confidence interval for a slope of a best-fit line in a linear regression, which dictates the frequency offset as further described below.
  • the system can calculate n given a desired width of a confidence interval and the distribution ⁇ . Assuming ⁇ is entirely gaussian, the system can evaluate a least squared error expression to calculate n.
  • the system can divide the calibration period, m max ⁇ m min , by n to calculate the signal interval.
  • the system can distribute and/or cluster n calibration signals according to the specified calibration transmission pattern.
  • the nodes and or remote server implementing the second method S 200 can adaptively vary the signal interval in any other way.
  • the system can adjust the signal interval between iterations of the second method S 200 . More specifically, the system can: calculate a timestamping noise of the clock of the receiving node relative to the clock of the transmitting node based on a residual of the first regression; and calculate an adjusted signal interval based on the timestamping noise. The system can then execute a second iteration of the second method S 200 utilizing the adjusted signal interval instead of the initial signal interval. Additionally, the system can calculate the adjusted signal interval based on a desired accuracy, a timestamping noise, and a frequency offset calculated during the first iteration of the second method S 200 .
  • the system can calculate an observed A based on a residual of the regression on the first set of calibration points generated in a first iteration of the second method S 200 .
  • the system can calculate an observed gaussian term, ⁇ N , based on the standard deviation (excluding outliers) of the residuals of the first regression and a new P out based on the observed proportion of outliers in the residuals of the first regression.
  • the system can then utilize the newly calculated ⁇ N and P out to calculate a new n as described above and derive an adjusted signal interval based on the calibration period and n.
  • the system can continue to characterize ⁇ N and P out in order to more effectively select a signal interval that will result in more accurate calculation of the frequency offset between the transmitting node and the receiving node.
  • the system can adjust the signal interval within the same iteration of the second method S 200 to enable the system to respond to detected differences between expected timestamping noise and expected frequency offsets between nodes as soon as possible. For example, if a transmitting node transmits two calibration signals with an initial signal interval and the system detects that the received signal interval (the signal interval as measured by the clock of the receiving node) does not differ (within the timestamping precision of the receiving node) from the nominal initial signal interval, the system can lengthen the subsequent signal interval in order to better detect the relative frequency based drift between the clocks of the transmitting node and the receiving node.
  • the system can: calculate a received signal interval as a difference between the first TOA and the second TOA as measured by the clock of the receiving node; in response to the received signal interval equaling an initial signal interval within a measurement variation, schedule transmission, from the transmitting node, of a third calibration signal at a third TOD measured by the clock of the transmitting node and succeeding the second TOD by a second signal interval greater than the first interval; receive, from the receiving node, a third TOA measured by the clock of the receiving node, the third TOA corresponding to reception of the first calibration signal at the receiving node; and define a third calibration point in the set of calibration points, representing the third TOD and the third TOA.
  • the system can define a set of calibration points representing the TOD and TOA of each calibration signal in order to characterize the relative time domain drift, caused by a frequency offset, between the clock of the transmitting node and the clock of the receiving node. More specifically, in Block S 230 the system can: define a first calibration point in a first set of calibration points, the first calibration point including the first TOD and the first TOA of the first calibration signal; and define a second calibration point in the first set of calibration points, representing the second TOD and the second TOA in Block S 230 .
  • each calibration point can be defined as a two-dimensional vector that includes parameters m and p, where m is a timing index for the TOD of a calibration signal and p is a timing index for the TOA of the same calibration signal.
  • the system can match the TODs to the TOAs sequentially (e.g., by matching the first TOD transmitted by the transmitting node to the first TOA received by the receiving node).
  • the transmitting node can transmit calibration signals that include an identifier that the receiving node can read in order to accurately identify the calibration signal that corresponds with a particular TOA.
  • the receiving node can then transmit this identifying information to a remote server or master node coordinating the second method S 200 .
  • the system can calculate a regression on the set of calibration points in Block S 240 .
  • the system via linear regression, calculates a best fit linear function describing the relationship between m and p.
  • the theoretical relationship between a given value of m and p is given by the following equation:
  • T is the nominal clock period of the clock of the transmitting node and the clock of the receiving node
  • T is the propagation time between the two nodes
  • b 1 ⁇ b 2 is the time bias between the clock of the transmitting node and the clock of the receiving node
  • c 1 is the frequency offset of the transmitting node from the nominal clock frequency
  • c 2 is the frequency offset of the receiving node from the nominal clock frequency
  • ⁇ i is a sample from the timestamping noise distribution for the ith calibration signal.
  • the system identifies and excludes outliers from the regression in order to calculate a more accurate calculation of the frequency offset. Additionally or alternatively, the system can perform any other statistical technique to improve the estimate of the frequency offset in the presence of unknown Ai.
  • the system can extract improved estimations of ⁇ N and P out based on residuals of the regression, as shown in FIG. 8 .
  • the system can calculate an updated P out by identifying outliers in the residuals of the regression and calculating the frequency of those outliers.
  • the system can then calculate a standard deviation of the non-outlier residuals in order to improve the estimate of ⁇ N .
  • the system can integrate residuals calculated in multiple iterations of the method S 200 to calculate the updated values of ⁇ N and P out .
  • the system can calculate P out as the outlier proportion across all iterations of the second method S 200 executed by a particular pair of nodes in the mesh network.
  • the receiving node receives the set of calibration signals transmitted by the transmitting node and calculates TOAs for the set of calibration signals.
  • the system can calculate a frequency offset based on the set of TOAs for the received calibration signals. More specifically, each TOA is subtracted from the subsequent TOA to determine the received signal interval between each of the received signals.
  • the set of received signal intervals are then subtracted from a corresponding set of transmitted signal intervals, as measured according to the clock of the transmitting node, to calculate a deviation for each received signal interval as compared to the transmitted signal interval.
  • the set of deviations are then summed and divided by the cumulative duration of the transmitted signal intervals to determine an average error ratio.
  • the receiving node or the remote server executing the second method S 200 then multiplies the average error ratio by the sampling frequency to obtain the frequency offset between the transmitting node and the receiving node.
  • the process for calculating the frequency offset between a transmitting node and a receiving node is expressed as follows:
  • f r is the clock frequency of the receiving node
  • f t is the clock frequency of the transmitting node
  • n is the number of calibration signals received
  • s r,i is the signal interval in samples-per-second according to the clock of the receiving node
  • s t,i is the signal interval in samples-per-second according to the clock of the transmitting node.
  • statistical techniques are applied to the set of deviations s r,i ⁇ s t,i to remove outliers and/or detect frequency drift during the calibration period.
  • the second method S 200 can include plotting residuals of the average deviation against time to determine if there are any trends in the set of deviations over the sampling period.
  • the system can compensate for the frequency offset in order to improve the ability of the nodes to calculate the time bias, b 1 ⁇ b 2 , by executing the first method S 100 .
  • either the transmitting node or the receiving node can compensate for the measured frequency offset.
  • either the transmitting node or the receiving node can correct the timestamp for one of the clocks periodically to cancel out the frequency offset induced drift.
  • the system does not compensate for the frequency offset at either of the nodes and instead accounts for the time domain drift when scheduling slots in the TDMA frame and when performing TOA calculations for synchronization signals while executing the first method S 100 .
  • One variation of the second method S 200 includes recalibrating frequency offset between nodes in the network in response to environmental factors. Generally, if a significant change in environmental conditions such as temperature, humidity, pressure, etc. is detected at either the transmitting node or receiving node, the system can reinitiate the frequency calibration process. In one implementation, the second method S 200 includes reinitiating the frequency calibration process in response to a change in temperature greater than a threshold temperature, a change in humidity greater than a threshold humidity, and/or a change in pressure greater than a threshold pressure. Alternatively or additionally, the second method S 200 includes reinitiating the frequency calibration process in response to detecting acceleration greater than a threshold acceleration at one of the nodes.
  • the transmitting node transmitting a set of calibration signals during a synchronization slot in the first method S 100 .
  • the frequency offset can be recalculated while still determining a time bias between nodes in the network according to the method S 100 .
  • an additional signal can be sent after a signal interval.
  • the signal interval between these two signals can then be measured at the receiving device according to the second method S 200 .
  • the second method S 200 includes modifying the TDMA frame to include a calibration slot during which the frequency calibration process is executed.
  • the system can apply these estimates to subsequent calibration processes executed between different pairs of nodes with similar hardware. For example, if a first node and a second node execute the second method S 200 and, therefore, the system obtains updated estimates of ⁇ N and P out , the system can use the updated estimates for ⁇ N and P out for the first node and the second node to calculate an initial calibration period and an initial signal interval for the second method S 200 executed between the first node and a third node (assuming the third node includes similar hardware to the second node).
  • the system can: calculate a timestamping noise of the clock of the receiving node relative to the clock of the transmitting node based on a residual of a first regression; calculate an adjusted signal interval based on the timestamping noise; schedule transmission, from the transmitting node, of a third calibration signal at a third TOD measured by the clock of the transmitting node; schedule transmission, from the node transmitting node, of a fourth calibration signal at a fourth TOD measured by the clock of the transmitting node and succeeding the third TOD by the adjusted signal interval; receive, from a second receiving node, a third TOA measured by a clock of the second receiving node, the third TOA corresponding to reception of the third calibration signal at the node second receiving node; receive, from the second receiving node, a fourth TOA measured by the clock of the second receiving node, the fourth TOA corresponding to reception of the fourth calibration signal at the second receiving node; define a third calibration point in a second set of calibration points, representing the third TOD and
  • the system can update initial estimates for the initial frequency offset, the timestamping noise, and/or the outlier probability based on pervious iterations of the method S 200 executed between nodes of similar hardware
  • a method S 300 for selecting gain levels for synchronization signals includes, at a first node including a self-receive signal generator: at a first time, generating a first high-gain synchronization signal at a first high-gain level in Block S 310 ; at a second time offset from the first time by a first signal offset, generating a first low-gain synchronization signal at a first low-gain level in Block S 312 ; generating a first low-gain self-receive signal responsive to generating the first low-gain synchronization signal in Block S 320 ; and recording at a receiver of the first node a saturation level of the first low-gain self-receive signal and a signal-to-noise ratio (hereinafter “SNR”) of the first low-gain self-receive signal in Block S 330 .
  • SNR signal-to-noise ratio
  • the third method S 300 also includes, at a second node: receiving at a receiver of the second node the first high-gain synchronization signal in Block S 340 ; and recording at the receiver of the second node a saturation level of the first high-gain synchronization signal and an SNR of the first high-gain synchronization signal in Block S 350 .
  • the third method S 300 further includes: calculating a second high-gain level for a second high-gain synchronization signal based on the saturation level of the first synchronization signal, the SNR of the first synchronization signal, and the first high-gain level in Block S 360 ; calculating a second low-gain level for a second low-gain synchronization signal based on the saturation level of the first low-gain self-receive signal, the SNR of the first low-gain self-receive signal, and the first low-gain level in Block S 362 ; and calculating a second signal offset based on a ratio of the second high-gain level and the second low-gain level in Block S 370 .
  • the third method S 300 also includes, at a first node: at a third time, generating the second high-gain synchronization signal at the second high-gain level in Block S 380 ; and at a fourth time offset from the third time by a second signal offset, generating a second low-gain synchronization signal at a second low-gain level in Block S 382 .
  • the third method S 300 defines a gain calibration process between a pair of nodes in a network and, like the methods S 100 and S 200 , is executed by a pair of nodes in a network and/or a remote server (hereinafter “the system” as shown in FIG. 11 ).
  • the third method S 300 calibrates the amplifier gain of a wireless node that includes a self-receive generator. Because each signal transmitted by a transmitting node including a self-receive generator is propagated to the receive port of the transmitting node, a gain level high enough to transmit a signal to another node may cause saturation at the receive port of the transmitting node.
  • the third method S 300 includes transmitting two synchronization signals separated by a specific signal offset within a synchronization slot.
  • One of the two synchronization signals is a high-gain synchronization signal that is transmitted at a high-gain such that the high-gain synchronization signal is well received at a receiving node.
  • the other synchronization signal is a low-gain synchronization signal that is transmitted at a low-gain level such that the resulting low-gain self-receive signal does not saturate the receive port of the transmitting node.
  • the TOA of the self-receive signal can still be compared to the TOA of the receive signal at the receiving node by considering the known signal offset. For example, if a receiving node receives the high-gain synchronization signal and the transmitting node receives the self-receive signal corresponding to the low-gain synchronization signal, the time that the high-gain synchronization signal was transmitted is calculated based on the TOA of the self-receive signal corresponding to the low-gain signal and the known signal offset.
  • a first synchronization signal is transmitted at a higher gain such that the first synchronization signal is detectable at the receiver of a receiving node (e.g. above the noise floor and below saturation levels) and a second synchronization signal is transmitted at a lower gain such that the self-receive signal based on the second synchronization signal is detectable at the receiver of the transmitting node (e.g. above the noise floor and below saturation levels).
  • the order of the set of two differential gain synchronization signals is interchangeable (e.g. the higher gain signal can be transmitted after the lower gain signal or vice versa).
  • the nodes and/or remote server executing the third method S 300 can adjust the signal offset between the high-gain signal and the low-gain signal.
  • the third method S 300 includes a signal offset that is as short as possible to minimize clock drift that may occur between the high-gain signal and the low-gain signal.
  • this signal offset is limited by hardware and software constraints including the dynamic range and the slew rate of the ADC and DAC in the transmitting node and the ADC of the receiving node in addition to the gain bandwidth product (hereinafter “GBWP”) and slew rate of the amplifier in the transmitting nodes.
  • GWP gain bandwidth product
  • the third method S 300 includes an iterative process for selecting the gain of the high-gain and low-gain synchronization signals as well as the signal offset.
  • a high-gain level and a low-gain level are selected.
  • the transmitting node and/or the remote server calculates a minimal measurement acquisition interval, that limits drift between the clocks during the signal offset and enables the frequency offset and time offset to be measured accurately at the intended high-gain level and low-gain level.
  • the transmitting node and the receiving node record the SNR and the saturation level for each signal resulting in four values for each pulse (SNR at transmitting node, saturation level at transmitting node, SNR at receiving node, and saturation level at receiving node).
  • the third method S 300 can include transmitting these values via a wireless network to a remote server or to one of the nodes for further processing. If the high-gain signal results in an excessive saturation level at the receiver of the receiving node, the gain of the high-gain signal is reduced in the subsequent pulse. Alternatively, if the high-gain signal is received with low SNR or not received at all at the receiving node then the gain of the high-gain signal is increased in the subsequent pulse.
  • the third method S 300 can include calculating the high and low gains based on a propagation model and any known parameters about the propagation environment (i.e., the receiver circuit for the self-receive signal gain) such as the distance between the nodes or the gain of the self-receive signal generator.
  • the third method S 300 can include varying the gain of either the high or low gain by incrementing by a predetermined amount based on the received saturation and SNR values. Therefore, the third method S 300 can include utilizing a function that takes in the saturation level and SNR value to determine an increment for the subsequent pulse for either the high-gain signal or the low-gain signal.
  • the nodes and/or remote server execute the third method S 300 to determine a high-gain level and a low-gain level for the subsequent pulse including a second high-gain synchronization signal and a low-gain synchronization signal.
  • the third method S 300 includes adjusting the signal offset based on the gain values for the subsequent pulse. For example, if the ratio of the high gain value and the low gain value is within the dynamic range of the ADC of the receiving node, the signal offset is shortened, alternatively, if the ratio between the high gain value and the low gain value is greater than the dynamic range of the ADC of the receiving node, then a longer signal offset is used that accounts for the slew rate of the amplifier. Furthermore, the third method S 300 can include adjusting the signal offset based on the settling time of the ADC of the receiving node and/or the accumulated clock error between the transmitting and receiving nodes.
  • the nodes and/or remote server execute the third method S 300 between each synchronization slot for a pair of nodes in a wireless network.
  • the nodes and/or remote server execute the third method S 300 selectively according to a set of criteria (e.g. a change in the saturation level or SNR of the high-gain synchronization signal and/or the low-gain synchronization signal).
  • the third method S 300 includes calibrating the gain levels of a high-gain synchronization signal and a low-gain synchronization signal, as well as a signal offset between the two signals such that at least one of the signals is received at both the receiving node (e.g. a synchronization signal) and the transmitting node (e.g. a self-receive signal). More specifically, the third method S 300 is an iterative process that can successively adjust the gain levels of the high-gain synchronization signal and the low-gain synchronization signal according to target saturation levels and SNR values at the receiver of each node. Gain levels are adjusted according to the logical flow shown in FIG. 10 .
  • the nodes and/or remote server calculate gain levels for a subsequent synchronization slot, the nodes and/or remote server calculate a signal offset between the subsequent high-gain synchronization signal and low-gain synchronization signal.
  • the third method S 300 can include reinitiating the gain calibration process in response to various recalibration criteria.
  • the third method S 300 can include detecting a change in the saturation level of a received synchronization signal greater than a threshold saturation level when compared to a previous synchronization signal.
  • the third method S 300 can include reinitiating the gain calibration process in response to detected movement, temperature change, or other environmental factors at either node.
  • the third method S 300 includes adjusting the high-gain level and low-gain levels of the synchronization signals transmitted during a synchronization slot. Generally, the third method S 300 includes calculating subsequent high-gain levels and low-gain levels based on previous levels of saturation and SNR recorded at either node. The third method S 300 includes calculating high-gain levels such that a high-gain synchronization signal received at the receiving node is recorded with an SNR greater than a threshold SNR and a saturation level lower than a threshold saturation level.
  • the third method S 300 calculates low-gain levels such that a low-gain self-receive signal generated from the low-gain synchronization signal received at the transmitting node is recorded with an SNR greater than the threshold SNR and a saturation level lower than the threshold saturation level.
  • the third method S 300 can also include integrating additional data in the calculation of the high-gain and low-gain levels, such as positional data from an IMU (e.g. relative position, velocity, acceleration, orientation, angular velocity, and/or angular acceleration) to preemptively adjust gain levels in response to movement of either of the nodes. Additionally, the third method S 300 can include measuring the velocity of the nodes relative to each other by measuring a Doppler shift in an incoming signal.
  • positional data from an IMU e.g. relative position, velocity, acceleration, orientation, angular velocity, and/or angular acceleration
  • the third method S 300 includes selecting a gain value based on any information regarding the propagation environment between the two nodes (for the high-gain signal) and the gain of the self-receive signal generator. In one example, if the distance between the two nodes and/or the orientation of the antennas of the two nodes have been recorded, then the nodes and/or remote server executing the third method S 300 can calculate an initial high-gain level based on a physical model for radiated signal strength.
  • the nodes and/or remote server executing the third method S 300 can calculate an initial low-gain level by choosing a gain that theoretically satisfies the saturation level threshold and the SNR threshold given the recorded gain of the self-receive signal generator.
  • FIG. 10 is a flow diagram illustrating a series of steps for calculating a high-gain level and a low-gain level for a subsequent high-gain synchronization signal and a subsequent low-gain synchronization signal.
  • the third method S 300 includes executing this process iteratively until the saturation threshold and SNR threshold are satisfied at both nodes.
  • the nodes and/or remote server executing the third method S 300 adjust the high-gain level by evaluating a physical model of the propagation environment.
  • the third method S 300 can include adjusting the high-gain level by a predefined adjustment amount in a direction necessary to satisfy either the saturation level threshold or the SNR threshold.
  • the nodes/and or remote server can adjust the low-gain level by evaluating a model of the DAC, self-receive signal generator, and ADC.
  • the third method S 300 an include adjusting the low-gain level by a predefined adjustment amount in the direction necessary to satisfy either the saturation level threshold or the SNR threshold.
  • the adjustments made to the high-gain level and the low-gain level for subsequent synchronization signals can be calculated using any other process that satisfies the saturation level threshold and the SNR threshold at the transmitting and receiving nodes.
  • the third method S 300 includes calculating a signal offset between the high-gain synchronization signal and the low-gain synchronization signal.
  • the signal offset is calculated based on factors such as: the high-gain level; the low-gain level; the slew rate of the DAC in both nodes, the slew rate of the ADC in both nodes, and/or the transmitter amplifier; and the dynamic range of the DAC and/or ADC of both nodes.
  • the third method S 300 includes determining whether the ratio of the high-gain level and the low-gain level exceeds a threshold ratio. If the ratio exceeds the threshold ratio then the gain is modulated at the variable amplifier. If the ratio does not exceed the threshold ratio then the gain is modulated digitally by the FPGA or DSP. After determining whether the gains of the synchronization signals will be modulated by the amplifier or digitally by the FPGA or DSP, the nodes and/or remote server executing the third method S 300 calculate the minimum time required to produce each of the synchronization signals at the required gains.
  • the third method S 300 includes dividing the difference between the high-gain level and the low-gain level by the slew rate of the amplifier to determine a minimum signal offset (a small buffer can be added to ensure that the synchronization signals are generated accurately). If the gains are modulated digitally at the FPGA or DSP, then the third method S 300 includes determining a minimum slew rate between the DAC of the transmitting node and the ADC of the receiving node (note the transmitting node and receiving node may be the same node in the case of the low-gain synchronization signal because the low-level synchronization signal is self-received). The minimum slew rate is multiplied by the difference between the high-gain level and the low-gain level to determine a minimum signal offset with an optional addition of a small buffer.
  • the third method S 300 can include calculating the signal offset based estimated slew rates and/or dynamic ranges of the ADC and DAC to substitute for the unavailable slew rates and/or dynamic ranges.
  • the third method S 300 includes a process for determining when to recalibrate the gain levels of synchronization signals.
  • the nodes and/or remote server executing the third method S 300 can measure and record changes in environmental conditions or whether the saturation threshold or SNR thresholds have not been satisfied by the previous high-gain synchronization signal or low-gain synchronization signal.
  • the third method S 300 includes first recording the saturation level and SNR of the synchronization signals from one or more previous synchronization slots and comparing the recorded saturation levels and SNRs to the saturation level threshold and the SNR threshold. In response to detecting that either threshold has not been satisfied for a predetermined number of synchronization slots, the third method S 300 can include reinitiating the gain calibration process.
  • the method includes evaluating environmental criteria to reinitiate the gain calibration process.
  • the nodes and/or remote server can reinitiate the gain calibration process.
  • the third method S 300 can include reinitiating the gain calibration process in response to a detected change in temperature, humidity, or pressure.
  • the third method S 300 can include reinitiating or continuously executing the gain recalibration process in response to any factors or conditions recorded at the transmitting node, receiving node, and/or the remote server.
  • the systems and methods described herein can be embodied and/or implemented at least in part as a machine configured to receive a computer-readable medium storing computer-readable instructions.
  • the instructions can be executed by computer-executable components integrated with the application, applet, host, server, network, website, communication service, communication interface, hardware/firmware/software elements of a user computer or mobile device, wristband, smartphone, or any suitable combination thereof.
  • Other systems and methods of the embodiment can be embodied and/or implemented at least in part as a machine configured to receive a computer-readable medium storing computer-readable instructions.
  • the instructions can be executed by computer-executable components integrated by computer-executable components integrated with apparatuses and networks of the type described above.
  • the computer-readable medium can be stored on any suitable computer readable media such as RAMs, ROMs, flash memory, EEPROMs, optical devices (CD or DVD), hard drives, floppy drives, or any suitable device.
  • the computer-executable component can be a processor but any suitable dedicated hardware device can (alternatively or additionally) execute the instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method includes, at a first node: transmitting a first calibration signal at a first time-of-departure measured by the first node; and transmitting a second calibration signal at a second time-of-departure measured by the first node. The method also includes, at a second node: receiving the first calibration signal at a first time-of-arrival measured by the second node; and receiving the second calibration signal at a second time-of-arrival measured by the second node. The method further includes: defining a first calibration point and a second calibration point in a set of calibration points, each calibration point comprising a time-of-departure and a time-of-arrival of each calibration signal; calculating a regression on the set of calibration points; and calculating a frequency offset between the first node and the second node based on the first regression.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS
This Application is a continuation application of U.S. patent application Ser. No. 17/135,566, filed on 28 Dec. 2020, which is a continuation application of U.S. patent application Ser. No. 16/588,722, filed on 30 Sep. 2019, which claims the benefit of U.S. Provisional Application No. 62/738,889, filed on 28 Sep. 2018, each of which is incorporated in its entirety by this reference.
This Application is related to U.S. patent application Ser. No. 16/405,922, filed on 7 May 2019, which is incorporated in its entirety by this reference.
TECHNICAL FIELD
This invention relates generally to the field of networking and digital communication and more specifically to a new and useful method for accurate network time synchronization in the field of networking and digital communication.
BRIEF DESCRIPTION OF THE FIGURES
FIG. 1A is a flowchart representation of a method;
FIG. 1B is a flowchart representation of a first variation of the method;
FIG. 1C is a flowchart representation of a second variation of the method;
FIG. 2 is a schematic representation of a mesh network;
FIG. 3A is a schematic representation of a pair of nodes in the mesh network;
FIG. 3B is a schematic representation of a node in the mesh network;
FIG. 3C is a schematic representation of self-receive hardware of a node;
FIGS. 4A and 4B are schematic representations of synchronization slot structures;
FIG. 5A is a flowchart representation of transmission and reception of a synchronization signal; and
FIG. 5B is a flowchart representation of transmission and reception of a self-receive signal.
FIGS. 6A and 6B are flowchart representations of a second method;
FIG. 7 is a flowchart representation of the second method;
FIG. 8 is a flowchart representation of the second method;
FIG. 9 is a flowchart representation of the second method;
FIG. 10 is a flowchart representation of a third method; and
FIG. 11 is a schematic representation of a system.
DESCRIPTION OF THE EMBODIMENTS
The following description of embodiments of the invention is not intended to limit the invention to these embodiments but rather to enable a person skilled in the art to make and use this invention. Variations, configurations, implementations, example implementations, and examples described herein are optional and are not exclusive to the variations, configurations, implementations, example implementations, and examples they describe. The invention described herein can include any and all permutations of these variations, configurations, implementations, example implementations, and examples.
1. First Method
As shown in FIG. 1A, a method S100 for characterizing time bias and propagation delay between a pair of nodes includes, at a first node in the pair of nodes and during a first synchronization slot: transmitting a first synchronization signal at a first time according to a first clock of the first node in Block S110A; back-coupling the first synchronization signal to generate a first self-receive signal in Block S120A; receiving the first self-receive signal in Block S130A; calculating a time-of-arrival of the first self-receive signal according to the first clock in Block S140A; receiving a second synchronization signal from the second node in Block S150A; and calculating a time-of-arrival of the second synchronization signal according to the first clock in Block S160A. The method S100 also includes, at the second node and during the first synchronization slot: transmitting the second synchronization signal at a second time according to a second clock of the second node in Block S110B; back-coupling the second synchronization signal to generate a second self-receive signal in Block S120B; receiving the second self-receive signal in Block S130B; calculating a time-of-arrival of the second self-receive signal according to the second clock in Block S140B; receiving the first synchronization signal from the first node in Block S150B; and calculating a time-of-arrival of the first synchronization signal according to the second clock in Block S160B. The method S100 further includes calculating a time bias and a propagation delay between the pair of nodes based on the time-of-arrival of the first self-receive signal and the time-of-arrival of the second synchronization signal, the time-of-arrival of the second self-receive signal and the time-of-arrival of the first synchronization signal at the second node in Block S170.
As shown in FIG. 1B, a first variation of the method S100 includes: transmitting a coordination signal to a second node in the pair of nodes, the coordination signal indicating a second time to transmit a second synchronization signal in Block S102; transmitting a first synchronization signal at a first time according to a first clock of the first node in Block Silo; back-coupling the first synchronization signal to generate a first self-receive signal in Block S120; receiving the first self-receive signal in Block S130; calculating a time-of-arrival of the first self-receive signal according to the first clock in Block S140; receiving the second synchronization signal, the second synchronization signal transmitted by the second node at the second time according to a second clock of the second node in Block S150; calculating a time-of-arrival of the second synchronization signal according to the first clock in Block S160; receiving a time-of-arrival of a second self-receive signal from the second node, the second self-receive signal back-coupled by the second node upon transmission of the second synchronization signal, the time-of-arrival of the second self-receive signal calculated according to the second clock in Block S142; receiving a time-of-arrival of the first synchronization signal from the second node, the time-of-arrival of the first synchronization signal calculated by the second node according to the second clock in Block S162; and calculating a first time bias between the first clock and the second clock and a first propagation delay between the first node and the second node based on the time-of-arrival of the first self-receive signal, the time-of-arrival of the first synchronization signal, the time-of-arrival of the second self-receive signal, and the time-of-arrival of the second synchronization signal in Block S170.
As shown in FIG. 1C, a second variation of the method S100 includes scheduling transmission of a first synchronization signal at a first time by a first node in Block S104; and scheduling transmission of a second synchronization signal at a second time by a second node in Block S106. The second variation of the method S100 also includes, after transmission of the first synchronization signal by the first node at the first time according to a first clock of the first node: receiving, from the first node, a time-of-arrival of a first self-receive signal according to the first clock, wherein the first self-receive signal is a back-coupled version of the first synchronization signal in Block S144; and receiving, from the second node, a time-of-arrival of the first synchronization according to a second clock of the second node in Block S164. The second variation of the method S100 further includes, after transmission of the second synchronization signal by the second node at the second time according to the second clock: receiving, from the second node, a time-of-arrival of a second self-receive signal according to the second clock, wherein the second self-receive signal is a back-coupled version of the second synchronization signal in Block S146; and receiving, from the first node, a time-of-arrival of the second synchronization signal according to the first clock in Block S166. The second variation of the method S100 also includes calculating a first time bias between the first clock and the second clock and a first propagation delay between the first node and the second node based on the time-of-arrival of the first self-receive signal, the time-of-arrival of the first synchronization signal, the time-of-arrival of the second self-receive signal, and the time-of-arrival of the second synchronization signal in Block S170.
A third variation of the method S100 includes: predicting a drift magnitude of the time bias between the first node and the second node between the first synchronization slot and the second synchronization slot based on a predictive drift model in Block S180; and setting a duration of the second synchronization slot equal to a sum of the maximum time bias uncertainty, the maximum accumulated drift magnitude over the duration of the first synchronization signal, the propagation delay, and a duration of the first synchronization signal in Block S190.
1.1 Applications
Generally, the method S100 is executed by a pair of node devices (hereinafter “nodes”) in a network and/or remote servers (hereinafter “the system”, as shown in FIG. 11 ) in order to synchronize—such as to within one nanosecond—the clocks of the pair of nodes. The method S100 can calculate the time bias between clocks to within one nanosecond or with sub-nanosecond precision without prior information regarding the position of the two nodes (or even a requirement for the nodes to be stationary), without precise calibration of the hardware of either node, and with each node using standard electronic clock technology, such as a crystal oscillator clock. Additionally, the method S100 can utilize a frequency bandwidth of less than five megahertz. The small bandwidth of the method S100 enables transmission of frequency bands with high propagation range and/or penetration. Examples of such bands include frequency bands for cellular communications or public safety uses (e.g., the 902-928 MHz ISM band or sub-GHz cellular band). Thus, the method S100 enables applications such as time-synchronized distributed antenna systems, which can further enable precise localization of RF emitting devices, remote sensing of public safety infrastructure, and improvements in time-based data transfer protocols.
More specifically, the method S100 for synchronizing time between two nodes can be categorized as a two-way ranging and synchronization protocol. However, the method S100 is distinguished from other two-way ranging protocols in that each node transmits independently of other nodes at an absolute time (according to the clock of each node), as opposed to transmitting in response to receiving signals from a master node in the pair. Furthermore, each node is configured to execute a scheme to provide a local reference copy of the transmitted signal, within the transceiver hardware of the node, in order to provide a “time-of-departure” for each transmitted synchronization signal (via a back-coupling and/or reflection of a transmitted synchronization signal). The time-of-arrival of this reflected and/or back-coupled version of a transmitted synchronization signal (hereinafter a “self-receive signal”) includes the transmit and receive chain delays that are incurred by a signal transmitted by another node, thereby enabling direct comparison of the time-of-arrival of various signals without precise characterization of these delays.
Blocks of the method S100 can be executed by a system 100, which can include a pair of node devices (i.e., nodes) in a mesh network, a master node and a slave node in a mesh network, and/or a remote server coordinating with a pair of nodes in a mesh network. Each node in the mesh network can include networking hardware, such as an antenna, transceiver hardware, an FPGA/DPS, a clock, and self-receive hardware (e.g. directional couplers, RF power splitters, combiners, circulators, etc.) further described below. However, the method S100 can also be performed between nodes in a wired network. The nodes in the mesh network are mutually connected to the internet or to a local area network such that the initial time bias between any pair of nodes in the mesh network is initially limited by the network time protocol (hereinafter “NTP”), or any other network time synchronization protocol. This time bias can range from tens of milliseconds to microseconds in many state-of-the-art networks. In one implementation, the system can execute a second method S200 (for detecting and compensating for frequency drift between nodes) and/or a third method S300 (for calibrating gain levels for signal transmission between nodes) prior to executing the first method S100. The second method S200 and the third method S300 are described in greater detail below.
Nodes in the mesh network communicate with each other using time division multiple access (hereinafter “TDMA”) and/or code division multiple access (hereinafter “CDMA”), thereby minimizing frequency bandwidth usage. Thus, the nodes can execute Blocks of the method S100 during one or more synchronization slots within a TDMA frame structure. In one implementation, synchronization slot duration and frame length are dynamically adjustable. In particular, the method S100 can leverage smaller initial time biases between a pair of nodes to decrease synchronization slot duration and further reduce uncertainty in the time bias calculation. Furthermore, the frame structure can include data transfer frames enabling the nodes to communicate with each other or with a remote server via the internet protocol suite in order to execute blocks of the method S100. For example, nodes can transfer a set of time-of-arrivals to a remote server for further processing according to the method S100.
Assuming an initial coarse clock synchronization between a pair of nodes (e.g. one to ten milliseconds), each of the pair of nodes transmits a synchronization signal to the other node at the beginning of the synchronization slot according to each node's clock. However, due to the relative time bias between each of the nodes, these synchronization signals are sent at times offset by the time bias between the two nodes. The synchronization signal is a frequency modulated, amplitude modulated, or phase modulated pseudorandom code or a combination of multiple codes (e.g., on multiple center carrier frequencies). Upon receiving the synchronization signal from the other node in the pair of nodes each node calculates a time-of-arrival (hereinafter “TOA”), such as by using the magnitude, time offset, and carrier phase of the autocorrelation peaks associated with one or more codes.
Upon sending the synchronization signal, each node includes self-receive hardware (shown in FIG. 3C) that back-couples and/or internally reflects a portion of the synchronization signal, thereby generating a self-receive signal, as shown in FIG. 3A. The self-receive hardware reflects and/or back-couples an attenuated repetition of the outgoing synchronization signal, which is then received by the same node that transmitted the synchronization signal. Each node then calculates a TOA for the self-receive signal after the self-receive signal has passed through the receiver chain in the same manner as any other received signal. Thus, the TOA of the self-receive signal acts as a time-of-departure of the synchronization signal offset by the receiver delay time of the transmitting node. The method S100 includes generating the self-receive signal such that the TOA of an incoming synchronization signal from another node can be directly compared to a time-of-departure of an outgoing node without the need for precise measurement and/or calibration of the receiver delay.
Each node in the pair then receives the synchronization signal from the other node and calculates a TOA for the synchronization signal. Therefore, by the end of the synchronization slot, each node has recorded a TOA for a self-receive signal and for a synchronization signal of the other node. These TOAs are then transmitted to one of the nodes or to a remote server to solve a system of two equations for two unknowns: the relative time bias between the pair of nodes (including receiver delay) and the propagation delay (i.e., transmission time) between the pair of nodes. This system of equations is solvable based on the reciprocity theorem of electromagnetism. The relative time bias between clocks of the two nodes can then be calculated and tracked by a master node or a remote server coordinating the mesh network. Alternatively, the relative time bias between nodes can then be reported to both nodes and one node (i.e., a slave node) can then synchronize its clock to match the other (i.e., a master node).
Although the first synchronization between the two node clocks according to the method S100 may be highly accurate, greater accuracy and reduced TDMA overhead is achieved through slot refinement, wherein the synchronization slot duration is reduced based on the smaller time bias between the two clocks. Therefore, in each successive synchronization slot for the pair of nodes the synchronization slot duration is decreased, thereby reducing sources of error such as accumulated jitter and/or environmental frequency drift that may occur during the synchronization process. For example, a quartz crystal oscillator may be expected to have a drift of six PPM which corresponds to six nanoseconds of drift during a millisecond duration synchronization slot. If the synchronization slot duration is instead reduced to 100 microseconds, the expected drift is reduced to less than one nanosecond.
By executing synchronization slot refinement techniques the system can also increase the duration of time within a frame for data transmission thereby improving data transfer rates for the nodes. Additionally, with a shorter synchronization slot duration, the method S100 can be performed at a higher rate of repetition thereby improving synchronization during changing environmental conditions.
After synchronization has occurred between a pair of nodes in the mesh network, the method S100 can be executed on a pairwise basis with other nodes in the mesh network in successive synchronization slots, thereby distributing time across the entire mesh network.
In some implementations, the method S100 leverages repetitive synchronization between two nodes and pairwise synchronization between multiple nodes in the network, in combination with environmental data recorded from inertial measurement units (hereinafter “IMUs”) or temperature sensors within each node, to create a predictive drift model for each node in the mesh network. The predictive drift model can characterize the time drift of a node as a function of measured environmental input data over time. The method S100 can also include triggering a synchronization slot in the next frame or altering the length of the synchronization slot based on the output of the predictive drift model. Alternatively, the method S100 can include adjusting a node's clock between synchronization slots.
1.2 Examples
The method S100 for synchronizing time between two node devices has wide ranging benefits including: more precise and flexible localization using a time synchronized mesh network of nodes; and improvements to time or frequency-based communication protocols.
In one example application of the method S100, a mesh network of nodes can perform the method S100 on a pairwise basis to synchronize their clocks across the mesh network. Each of the nodes in the mesh network can then individually calculate a TOA of a signal from an RF emitting source not included in the mesh network. By comparing TOAs between the nodes in the mesh network and performing multilateration, the location of the RF emitting source can be calculated to a degree of precision limited by temporal synchronization between nodes. For example, with temporal synchronization within one nanosecond, the location of an RF emitting source can be calculated to within 30 centimeters relative to the nodes in the mesh network. If one node in the mesh network acts as an anchor node and is calibrated with accurate global positional information, the absolute position of the RF emitting source can also be detected.
In one example application of mesh network-based localization, nodes are distributed throughout an area, within buildings, or even on cars driving on the streets of an urban area. The nodes execute Blocks of the method S100 to periodically synchronize their clocks and then collect TOA data for other RF emitting sources within the mesh area. The remote server coordinating with the nodes can subsequently transform these TOA data into three-dimensional geospatial locations of the RF emitting sources, thereby improving location services, asset tracking, and object detection. Thus, the remote server or master node can: calculate a relative location of nodes in the network based on the propagation delay between the nodes; receive, from several nodes in the mesh network, a time-of-arrival of a signal from a transmitting device; and calculate, via multilateration, a relative location estimate for the transmitting device accounting for the relative time bias between each of the nodes in the mesh network.
In another example, TDMA based protocols may be limited to slot durations of a few tens of milliseconds. Therefore, Blocks of the method S100 can be executed to synchronize clocks of devices within a wired or wireless network in order to more accurately calculate the time bias, enabling a reduction in dead time and interference between slots while improving bitrate and bandwidth due to reduced inefficiencies in the multiple access protocol.
1.3 Node Hardware
As discussed above, the method S100 is executed by or via coordination with nodes in a network. Examples of hardware for wireless nodes are shown in FIGS. 3B and 3C. Generally, nodes include transmission components and receiver components, an FPGA or DSP configured to generate and process signals, a clock, and self-receive signal hardware.
In one implementation, the nodes transmit information wirelessly and as such include RF transceiver hardware such as a super heterodyne radio architecture and an Rx/Tx antenna shown in FIG. 3B. In this implementation, each node includes a “receive chain” and a “transmit chain.” The receive chain includes a pipeline of hardware components that process signals received from the Rx port. The transmit chain includes a pipeline of hardware components that process transmission signals generated by the FPGA or DSP and feed them into the Tx port. The receive chain and the transmit chain impart a “receive chain delay” and a “transmit chain delay” respectively. “Receive chain delay” and “transmit chain delay” describe the amount of time elapsed as a signal traverses either the receive chain or the transmit chain respectively.
In an alternate implementation, the nodes can communicate over a wired network. In this implementation, the nodes can include an I/O port and/or appropriate interface converters for communicating over any wired medium (e.g. ethernet, fiber optic, etc.) instead of an antenna. These interface converters can also impart a receive chain and transmit chain delays upon transmitted and received signals.
In one implementation, a node includes extant transceiver infrastructure such as cell tower, mobile phone, or any other RF transceiving device that has been adapted to execute the method S100. A cell tower or other extant transceiver can be adapted to execute the method S100 via software means. In alternate implementations, the nodes can include hardware to improve the performance of the method S100, which can include impedance-matching networks at an antenna interface between a passive coupling device (e.g., coupling the transmit chain and the receive chain to the antenna).
In wireless node implementations, the FPGA or DSP of each node is configured to generate complex digital signals and output the generated signals to a DAC. The complex components of the digital signals represent the in-phase and quadrature portions (i.e., I/Q) of the analog signal to be generated by the DAC. Additionally, the FPGA or DSP of the node receives digital signals from the antenna of the node via an ADC and timestamps received synchronization signals according to an instant value of its own clock and a TOA calculation process further described below.
Each node includes a clock, such as a crystal oscillator clock or an atomic clock, which may be responsible for time-keeping functions at the node. The method S100 can be executed to synchronize the clocks of multiple nodes within a network. In particular, the method S100 can effectively synchronize crystal oscillator clocks that satisfy basic frequency stability, phase noise, and frequency requirements for wireless communication. In one example, the clock is a quartz crystal oscillator with an AT cut and a clock frequency of ten megahertz. However, a node can include a crystal oscillator of any frequency or cut assuming the aforementioned constraints are met.
Each node can include specific self-receive hardware, which back-couples and/or reflects a self-receive signal in Block S120. Generally, upon a node transmitting a synchronization signal, the self-receive hardware reflects and/or back-couples an attenuated repetition of the synchronization signal back to the receiving port of the transmitting node. By processing the transmitted synchronization signal via the receive chain and calculating a TOA for the self-receive signal, each node is able to timestamp transmitted signals delayed by the receive chain delay. When the node later receives a synchronization signal from another node, the TOA of the synchronization signal also incurs the same receive chain delay. Because the TOA of the self-receive signal and the TOA of the synchronization signal both include the receive chain delay, they can be directly compared without precise calibration of the receive chain hardware.
In one implementation, the self-receive hardware includes an impedance mismatched directional coupler shown in FIG. 3C. The self-receive hardware can also include a variable impedance circuit, which may be software controlled to vary the gain of the reflected Tx signal into the Rx port. Depending on the specific hardware implementation of the node, similar impedance-matching can be applied to circulators, power splitters, or any other transmission line device, as further described below. In one implementation, a node can include standard antenna interface hardware with unintentionally mismatched antenna impedance (e.g., characterized by a voltage standing wave ratio greater than one), which can function as the self-receive hardware by reflecting synchronization signals at the antenna interface. Thus, each node need not include specialized self-receive hardware in order to execute the method S100.
The self-receive hardware defines a tuned reflection coefficient for signals incident to the interface between a passive coupling device and the antenna of the node, by including an impedance-matching network between the antenna and the passive coupling device. The impedance-matching network transforms the impedance of the antenna to an impedance that effects a precise reflection coefficient between the passive coupling device and the antenna. The reflection coefficient is selected such that the reflected power of the self-reflected signal is above the noise floor of the ADC and below the saturation voltage of the ADC.
In another implementation, the matching network can maintain the reflection coefficient for a wide range of signal frequencies. For example, the self-receive hardware can include a switchable wideband matching network to improve the consistency of the reflection coefficient across a wide range of transmit frequencies. In this example, the self-receive hardware can actively switch between multiple impedance-matching networks depending on the frequency of the signal being transmitted by the node.
In yet another implementation, the self-receive hardware can include a frequency multiplexer connected to multiple impedance-matching networks such that each distinct impedance-matching network encounters signals at a frequency that results in the precise reflection coefficient.
In an additional implementation, the system 100 can include an adaptive impedance-matching network that can adjust its impedance and therefore the reflection coefficient between the passive coupling device and the antenna. The node can then use the adaptive impedance-matching network to adjust the reflection coefficient ensuring reception of the self-reflected signal despite changes in the noise levels at the ADC due to changing gains in RF transmit chain and/or receive chain amplifiers and/or interfering signals in the frequency band or bands of interest.
In one implementation, the self-receive hardware includes a directional coupler as the passive coupling device. The directional coupler includes four ports, two for each of the coupled transmission lines. In this implementation, the transmit port and the antenna port are located on the same transmission line in the directional coupler while the receive port is located at the coupled port opposite the antenna, thereby receiving coupled power from the antenna and reflected power from the interface between the directional coupler and the antenna. Alternatively, the self-receive hardware can include a directional coupler wherein the receive port and the antenna port are located on the same transmission line. As a result, the receive port receives direct power from the antenna port and the reflected power from the antenna port. However, in this alternative implementation, the antenna port receives signals from the transmit port at a lower power due to coupling between the two transmission lines. Thus, a higher power at the transmit port results in the same power at the antenna port. However, in an implementation wherein the receive port and the antenna port are coupled to the same transmission line, the self-receive hardware can improve the sensitivity of the transceiver to signals received at the antenna.
In an alternative implementation, the self-receive hardware includes a power divider as the passive coupling device. The power divider divides power from an input port between two output ports. In this implementation, power input at the antenna port is split between the transmit port and the receive port, thus any power reflected at the interface between the antenna and the power divider is also divided between the transmit port and the receive port.
In yet another implementation, the self-receive hardware includes a circulator as the passive coupling device. The circulator can couple the transmit port directly to the antenna port while the antenna port is directly coupled to the receive port. Any reflections generated at the antenna port interface are then coupled back to the receive port.
In one implementation, each node can include a software-defined radio architecture performing the function of any of the hardware elements described above.
However, the self-receive hardware can include any software or hardware system for feeding a Tx signal into an Rx port of a node.
1.4 Gross Time Synchronization
Prior to execution of the method S100, the clocks of each node are coarsely synchronized using another time synchronization protocol. For example, the pair of nodes may be connected to the internet and in communication with one or more NTP servers. Thus, both node clocks may be synchronized to between one and ten milliseconds under some conditions. Alternatively, the nodes can communicate with a global navigation system (hereinafter “GNSS”) time synchronization server and may be synchronized to within one microsecond in some cases.
The method S100 leverages existing time synchronization protocols, henceforth referred to as “coarse” time synchronization protocols, such that the nodes are able to communicate with the same synchronization slot in a TDMA described below.
Thus, a remote server can: coarsely synchronize a first node's clock and a second node's clock; schedule transmission of a first synchronization signal within a first synchronization slot of a first frame, the first synchronization slot characterized by a first synchronization slot duration; schedule transmission of a second synchronization signal within a second synchronization slot of the first frame, the second synchronization slot characterized by the first synchronization slot duration; configure the second node to receive the first synchronization signal during the first synchronization slot of the first frame; and configure the first node to receive the second synchronization signal during the second synchronization slot of the first frame.
Slot and Frame Definition
Generally, in the method S100, communication between a pair of nodes occurs according to a slot and frame TDMA structure; examples of which are shown in FIGS. 4A and 4B. The TDMA structure can include one or more slots for both time synchronization via the method S100 and data transfer. In one implementation, shown in FIG. 4A, each TDMA frame includes a synchronization slot to synchronize each unique pair of nodes in the mesh network. For example, a mesh network including three nodes, n1, n2, and n3, can include a first synchronization slot for the synchronization of n1 and n2; a second synchronization slot for n1 and n3; and a third synchronization slot for n2 and n3. Alternatively, as shown in FIG. 4B, the TDMA frame can include a synchronization slot for each node in the mesh network to transmit a synchronization signal to all other nodes in the mesh network. For example, in a mesh network including three nodes, n1, n2, and n3, can include a first synchronization slot for n1 to transmit a synchronization signal to n2 and n3; a second synchronization slot for n2 to transmit a synchronization signal to n1 and n3; and a third synchronization slot for n3 to transmit a synchronization signal to n1 and n2.
In one implementation, (e.g., if the initial synchronization accuracy achieved with NTP is sufficiently low), each synchronization slot is further divided into two subsequent sub-slots to reduce synchronization overhead. For example, in a synchronization for n1 and n2, n1 transmits during the first sub-slot and n2 receives the transmission from n1. Then, in a second sub-slot, n2 transmits and n1 receives.
Each TDMA frame can also include a header indicating the presence and order of synchronization slots and data transfer slots for each node in the mesh network. In one implementation, each TDMA frame includes a set of synchronization slots. Alternatively, each TDMA frame may or may not include a set of synchronization slots according to the header for the TDMA frame. In yet another implementation, a TDMA frame can include multiple sets of synchronization slots. In one implementation, the header can include a coordination signal transmitted by a remote server or master node coordinating the TDMA protocol in order to communicate specific transmission times for synchronization signals to nodes in the mesh network.
The duration of synchronization slots and the buffer time between two synchronization slots corresponding to different pairs of nodes can vary depending on the implementation and factors such as the current known time bias between nodes and associated uncertainty. The method S100 can include adjusting synchronization slot duration based on the output of a predictive drift model, further described below. Furthermore, the synchronization slot duration can have a lower limit equal to a sum of the uncertainty in the time bias between the pair of nodes, the propagation time between the pair of nodes, the uncertainty of the propagation time between the pair of nodes, and the duration of the synchronization signal. In one implementation the slot and the buffer between synchronization slots are both set to one millisecond. Additionally or alternatively, the method S100 can include adjusting the synchronization slot duration as a function of the signal-to-noise ratio of previously received synchronization signals in order to provide additional measurement acquisition time to determine TOA of signals with lower signal-to-noise ratios.
Additionally, the duration of each TDMA frame is subject to a set of practical constraints. The TDMA frame duration can have an upper limit defined by the expected drift of the least stable node clock in the node pair compared to the desired accuracy of the clock synchronization process. For example, if one node clock is known to drift one nanosecond per second due to accumulated jitter and the desired accuracy of the clock synchronization process is one nanosecond, the TDMA frame duration (or time between synchronization slots) can be limited at one second such that the time bias between nodes is not likely to exceed one nanosecond.
Furthermore, the TDMA frame duration has a lower limit based on the sum of the expected initial clock offset between the nodes, the total duration of the synchronization slots, the total duration of any data transfer slots, and the total duration of any time buffers between slots. The frame duration can be sufficiently long for each node to receive the initial synchronization signal from each of the other nodes in the network while accounting for a large initial time bias. Thus, if the nodes are initially synchronized using NTP, the system 100 defines a frame duration of at least tens of milliseconds in order to account for time biases between NTP synchronized clocks.
In one implementation, during initial synchronization of a set of nodes in a mesh network. The set of nodes are configured (e.g., by the remote server) to broadcast a coordination signal at a predetermined time according to the clock of each node. Given initial coarse time synchronization between nodes, the system can designate a master node as the first node to transmit a coordination signal to the other nodes. Each node in the mesh network can then confirm receipt of the master node's confirmation signal, thereby designating the master node to each of the nodes in the mesh network. Thus, a first node in a pair of nodes can receive, from a second node in the pair of nodes, a confirmation of receipt of the coordination signal; and, in response to receiving confirmation of receipt of the coordination signal before the first node receives a second coordination signal from another node in the mesh network, designating the first node as a master node.
In an alternative implementation, the TOA of the coordination signal can be calculated at each node and sent to a remote server, which can then determine the master node in the mesh network. In yet another alternative implementation, the remote server designates the master node or coordinates the TDMA and the method S100 for the set of nodes in the mesh network.
When communicating within a TDMA synchronization slot, each node in a pair of nodes executing the method S100 can transmit synchronization signals and receive both synchronization signals from other nodes and self-receive signals during the synchronization slot. Therefore, in one implementation, the nodes execute a time division duplex (hereinafter “TDD”) or a half-duplex scheme to communicate within a synchronization slot. In this implementation, the synchronization signals transmitted by each node in a node pair are separated by a predetermined delay time (e.g., approximately half the synchronization slot duration) such that a first node in a pair of nodes can transmit a first synchronization signal and receive a self-receive signal corresponding to the first synchronization signal during a first division of the synchronization slot and subsequently receive a second synchronization signal (transmitted from a second node in the node pair) in a second division of the synchronization slot. In this implementation, nodes executing the method S100 can transmit a coordination signal including timing information such as slot division durations and timings to other nodes in the mesh network thereby establishing a half-duplex communication link between the two nodes.
In one implementation, the system can implement a full-duplex (i.e., frequency division duplex, hereinafter “FDD”) communication scheme whereby each node in a pair of nodes can transmit and receive synchronization signals simultaneously (e.g., wherein each synchronization signal is sent over multiple frequencies). Additionally, each node in a pair of nodes can be configured to simultaneously receive a self-receive signal back-coupled to the receiver of the node and a synchronization signal from a second node in the pair of nodes.
Therefore, in one implementation, a master node in a pair of nodes can transmit the coordination signal to the second node, wherein the coordination signal indicates a second time to transmit the second synchronization signal equal to a first time of transmission of the first synchronization signal; and establish a full-duplex communication link with the second node.
However, in applications wherein a larger bandwidth is available, the nodes can also communicate using frequency division multiple access or any other channel access method.
1.6 Time Bias and Propagation Delay Characterization
As shown in FIG. 1A, each node in a pair of nodes can execute Blocks S110, S120, S130, S140, S150, and S160 to: transmit synchronization signals to each other at a predetermined transmission time that is evaluated according to the clock of each node; back-couple the synchronization signal via the self-receive hardware of the node to form a self-receive signal; and record TOAs for the back-coupled self-receive signal and the synchronization signal received from the opposite node in the pair of nodes. Thus, each node in a pair of nodes calculates two TOAs according to the node's clock. Each node can then send the TOA of the self-receive signal and the TOA of the synchronization signal (e.g., during a data transfer slot in the frame) either to one of the nodes in the pair of nodes or a remote server in order to calculate the time bias between the pair of nodes and the propagation delay between the pair of nodes, in Block S170.
Variations of the method S100 shown in FIGS. 1B and 1C include additional Blocks for coordinating a pair of nodes executing the method S100. In the first variation shown in FIG. 1B, a master node in the pair of nodes executes Blocks S102, S142, S162, and S170 in addition to the previously mentioned Blocks of the method S100 in order to: communicate a transmission time to the slave node; receive a TOA of the self-receive signal calculated by the slave node; receive a TOA of the synchronization signal calculated by the slave node; and calculate, at the master node, a time bias and a propagation delay between the master node and the slave node. Thus, the master node can communicate a transmission time to the slave node such that the master node can receive the synchronization signal transmitted by the slave node during a synchronization slot in the TDMA communication scheme.
In the second variation of the method S100 shown in FIG. 1C, a remote server or other computational device communicating with a pair of nodes executes Blocks of the method S104, S106, S144, S146, S164, S166, and S170 to: schedule a transmission time for each of the pair of nodes; receive TOAs from each of the nodes for a synchronization signal received by each of the pair of nodes, and a self-receive signal received at each of the pair of nodes; and calculate a time bias and a propagation delay between the pair of nodes.
Therefore, in any of the abovementioned variations, various entities included with the system can cooperate to execute a time synchronization protocol between a pair of nodes in a mesh network in order to calculate a time bias and a propagation delay between the pair of nodes. In one implementation, the time biases are tracked by a remote server and accounted for when managing a TDMA communication protocol, when executing multilateration for transmitting RF devices, or when executing any other protocol utilizing a time synchronized mesh network. Alternatively, one of the nodes can function as a master node and track time biases and propagation time between nodes in the mesh network.
In order to synchronize clocks of the pair of nodes relative to each other, each node in the node pair can concurrently or consecutively execute Blocks S110, S120, S130, S140, S150, and S160. For example, a first node in the pair of nodes can execute a first instance of these Blocks of the method S100 in S110A, S120A, S130A, S140A, S150A, and S160A, while a second node in the pair of nodes can execute a second instance of these Blocks in S110B, S120B, S130B, S140B, S150B, and S160B. For the purpose of clarity, description with reference to Blocks S110, S120, S130, S140, S150, or S160 can therefore apply to respective Blocks S110A, S120A, S130A, S140A, S150A, or S160A executed by the first node or respective Blocks S110B, S120B, S130B, S140B, S150B, or S160B executed by the second node.
Depending on the relative time bias between the two nodes, the first node can execute Blocks S110A, S120A, S130A, and S140A at any time relative to the second node executing Blocks S110B, S120B, S130B, and S140B (assuming both nodes are executing during the synchronization slot). However, the first node executes Blocks S150A and S160A to receive and calculate a TOA for a synchronization sent from the second node after the second node executes Blocks S110B, S120B, S130B, and S140B. Likewise, the second node executes Blocks S150B and S160B after the first node executes Blocks S110A, S120A, S130A, and S140A.
1.6.1 Transmission Times
In Blocks S110A and S110B each node in a pair of nodes transmits a synchronization signal at a predetermined or coordinated transmission time within a synchronization slot. In implementations wherein the nodes execute TDD, a first transmission time for Block S110A can be offset from a second transmission time for Block S110B by a transmission interval. Thus, each node in a pair of nodes transmits a synchronization signal at a predetermined transmission time according to each node's own clock. For example, if a first transmission time for a first node is set at 1:00:00, then the first node transmits the synchronization at 1:00:00 according to its own clock. Thus, from a third-party perspective, each node transmits a synchronization signal offset by the time bias between the two nodes and offset by the transmission interval between the transmission times for each node.
Because each node transmits a synchronization signal at a predetermined transmission time, instead of transmitting a synchronization signal in response to receiving a signal from another node, such as is in other two-way ranging protocols, the system executing the method S100 does not require precise characterization of receive chain delay, transmit chain delay, or intervening processing delay for each node in order to accurately calculate the time bias and propagation time between a pair of nodes.
1.6.2 Synchronization Protocol
Generally, each node generates a synchronization signal; concurrently or consecutively transmits the synchronization signal to the other node in a pair of nodes and receives a self-receive signal based on the transmitted synchronization signal; and receives a synchronization signal from the other node in the node pair. For ease of description, the nodes in a node pair will be referred to as n1 and n2. However, n1 and n2 can refer to any two-node pair in a mesh network (e.g., ni and nj). The method S100 includes calculating the relative time bias between n1 and n2 represented as (b1−b2) and the propagation delay τ. Based on the reciprocity theorem of electromagnetism, the propagation delay for a signal transmitted from n1 to n2 is equal to the propagation delay for a signal transmitted from n2 to n1 1,22,1≡τ).
In calculating TOA such as in Blocks S140 and S160 the node can cross-correlate a received synchronization signal or self-receive signal with a template signal to determine a timestamp corresponding to the peak value of the autocorrelation function. Synchronization signals can include specifically chosen sequences that have a high autocorrelation value when the sequences are aligned and a low autocorrelation value otherwise. In one implementation, each node performs digital autocorrelation between received signals and template signals. Alternatively, each node performs analog autocorrelation between an analog conversion of the digital synchronization signal and the template signal. The latter accounts for the value of the samples in addition to the time durations between samples. Furthermore, the node can refine the calculated TOA based on phase information extracted from the synchronization signal. In one implementation, the nodes can transmit each synchronization signal over multiple frequency bands to increase the number of carrier phase measurements obtained by the receiving node and therefore increase the accuracy of the TOA calculation.
In Block S110A, at local time T1 (i.e., a first transmission time), n1 generates a digital synchronization signal at the FPGA or DSP. In one implementation, n1 converts the digital synchronization signal to an analog synchronization signal for transmission via the antenna and propagates the converted synchronization signal along the transmit chain of n1, thereby incurring a transmit chain delay, t1. The analog signal then interacts with the self-receive hardware, which reflects or otherwise back-couples the synchronization signal into the Rx port of n1 as shown in Block S120A. The self-receive signal (i.e., reflected or otherwise back-coupled) synchronization signal is substantially similar to the synchronization signal though the power of the two signals may differ. In one implementation, the power of the self-receive signal ensures the self-receive signal does not saturate the ADC of n1.
In Block S130A, n1 receives the self-receive signal as it the synchronization signal. While the self-receive signal propagates through the receive chain of n1 it incurs receive chain delay, r1. In Block S140A, n1 calculates a local TOA of its self-receive signal, S1,1, which is related to the unknown parameters of interest via the following equation:
S 1,1 =T 1 +t 1 +r 1.
Thus, S1,1 represents the TOA of the self-receive signal from n1 according to the clock of n1.
As shown in FIG. 5A, and in Blocks S110B, S120B, S130B, and S140B, n2 executes the equivalent steps to those executed by n1 in Blocks S110A, S120A, S130A, and S140A, thereby transmitting a second synchronization signal and calculating a TOA of the self-receive signal generated by n2:
S 2,2 =T 2 +t 2 +r 2,
where T2 is a local time at n2 (i.e., the second transmission time), t2 is that transmit chain delay of n2, and r2 is the receive chain delay of n2. In implementations wherein the transmission times for each of the nodes is offset a transmission interval, Δ, T2=T1+Δ Thus, S2,2 represents the measured TOA of the self-receive signal from n2 according to the clock of n2.
As shown in FIG. 5B, and in Block S150A, n1 receives the synchronization signal from n2, which propagates through the receive chain of n1 incurring receive chain delay, r1. In Block S160A, n1 then calculates a local TOA for the synchronization signal received from n2, S1,2, which is expressed in the following equation:
S 1,2 =T 2 −b 2 +t 2 +τ+r 1 +b 1.
Thus, S1,2 represents the measured TOA of the synchronization signal from n2 according to the clock of n1.
In Blocks S150B and S160B, n2 executes the equivalent steps to those executed by n1 in Blocks S150A and S160A, thereby receiving a synchronization signal from n1 and calculating a local TOA (at n2) for the synchronization signal, S2,1, expressed as follows:
S 2,1 =T 1 −b 1 +t 1 +τ+r 2 +b 2.
Thus, S2,1 represents the measured TOA of the synchronization signal from n1 according to the clock of n2.
In Block S170, one of the nodes (e.g., a master node in the pair of nodes), either n1 or n2, or another computational device such as a remote server or a separate master node, collects the above TOAs, S1,1, S1,2, S2,2, and S2,1, to calculate T and b1−b2+r1−r2, or the relative time bias plus the difference in receiver chain delay. Taking differences between the self-receive signal and the corresponding synchronization signal received at opposite nodes the following is derived:
S 1,2 −S 2,2 =τ+r 1 +b 1 −r 2 −b 2,
S 2,1 −S 1,1 =τ+r 2 +b 2 −r 1 −b 1.
Thus τ is calculated as:
τ = 1 2 [ ( S 1 , 2 - S 2 , 2 ) + ( S 2 , 1 - S 1 , 1 ) ]
and b1−b2+r1−r2 is calculated as:
b 1 - b 2 + r 1 - r 2 = 1 2 [ ( S 1 , 2 - S 2 , 2 ) - ( S 2 , 1 - S 1 , 1 ) ] .
Although a value for the pure relative time bias, b1−b2, cannot be calculated without the value of r1−r2, adjusting the clock of one node in the pair of nodes by b1−b2+r1−r2 ensures that any signal received by both nodes at the same time will receive the same timestamp at each node even if the instantaneous time at each clock differs by r1−r2 because the difference in receive chain delay will compensate for the post inaccuracy in the time bias. Alternatively, if r1−r2≅0, then:
b 1 - b 2 1 2 [ ( S 1 , 2 - S 2 , 2 ) - ( S 2 , 1 - S 1 , 1 ) ] .
Once τ and b1−b2+r1−r2 have been calculated, the method S100 can also include synchronizing the time between n1 and n2 by adding b1−b2+r1−r2 to the clock of n1 or n2 to compensate for the initial time bias. In implementations with multiple nodes in the mesh network, one node is designated as a “master node” while the other nodes are designated “slave nodes.” Thus, in this implementation, the method S100 includes adjusting the clocks of the slave nodes to match the master node. Alternatively, a master node or remote server in the system can track the relative time bias of each node pair in a mesh network and compensate for the calculated time biases when executing processes that rely on precise time synchronization between nodes in the mesh network, such as time-based communication protocols or multilateration of other RF devices.
In one implementation, each node in the mesh network can average measurements to calculate a time bias and propagation delay when these variables are over-defined. For example, in a network including nodes n1, n2, and n3, the time bias between n1 and n2 can also be calculated as follows:
b 1 - b 2 1 2 [ ( S 1 , 3 - S 3 , 3 ) - ( S 3 , 1 - S 1 , 1 ) ] - 1 2 [ ( S 2 , 3 - S 3 , 3 ) - ( S 3 , 2 - S 2 , 2 ) ] .
Additionally, the method S100 can include indirectly calculating a time bias between nodes that do not have a direct communication line (e.g., due to an obstruction of communication between the two nodes). For example, in a network including nodes n1, n2, and n3, the time bias between n1 and n3 can also be calculated as follows:
b 1 - b 3 1 2 [ ( S 1 , 2 - S 2 , 2 ) - ( S 2 , 1 - S 1 , 1 ) ] + 1 2 [ ( S 2 , 3 - S 3 , 3 ) - ( S 3 , 2 - S 2 , 2 ) ] .
Thus, n2 and n3 can execute another iteration of the method S100 and the system can calculate a time bias between the first clock of n1 and the third clock of n3 based on a sum of the first time bias (b1−b2) and the second time bias (b2−b3).
Furthermore, the method S100 can include calculating an instantaneous uncertainty in the relative time bias between nodes, δ(b1−b2) and an instantaneous uncertainty in the propagation delay δτ. Sources of uncertainty can include the propagated uncertainty based on the peak width of the autocorrelation function for each TOA calculation plus any expected phase noise that may occur at the clocks of each node between synchronization slots.
1.6.3 Phase Refinement
In addition to calculating the time bias and propagation time between nodes based on the synchronization protocol described above, the system can also refine the propagation time T by extracting carrier phase information from each of the four received signals, the first self-receive signal received at n1, the first synchronization signal received at n2, the second self-receive signal received at n2, and the second synchronization signal received at n1. Upon receiving the first self-receive signal n1 detects a carrier phase of the first self-receive signal, which is represented as follows:
1,1=(2πf c T 11,Rx)mod 2π,
where fc is the carrier frequency and ϕ1,Rx is the phase delay induced by the receive chain of n1. Likewise, n2 detects a carrier phase of the second self-receive signal, which is represented as follows:
2,2=(2πf c T 22,Rx)mod 2π,
where fc is the carrier frequency and ϕ1,Rx is the phase delay induced by the receive chain of n1. Additionally, n1 can detect the carrier phase of the synchronization signal received from n2, which is represented as follows:
1,2=(2πf c(T 2+τ)+ϕ1,Rx)mod 2π.
Likewise, n2 can detect the carrier phase of the synchronization signal received form n1, which is represented as follows:
2,1=(2πf c(T 1+τ)+ϕ2,Rx)mod 2π.
To refine the calculation of τ, the above relations can be rearranged as follows:
2 , 1 - 1 , 1 = ( 2 π f c ( T 1 + τ ) + ϕ 2 , R x - 2 π f c T 1 - ϕ 1 , R x ) mod 2 π = ( ϕ 2 , R x + 2 π f c τ - ϕ 1 , R x ) mod 2 π , 1 , 2 - 2 , 2 = ( 2 π f c ( T 2 + τ ) + ϕ 1 , R x + 2 π f c T 2 - ϕ 2 , Rx ) mod 2 π = ( ϕ 1 , Rx + 2 π f c τ - ϕ 2 , R x ) mod 2 π .
Thus, the system can refine the value of τ, based on the synchronization protocol described above by calculating:
( 2 , 1 - 1 , 1 ) + ( 1 , 2 - 2 , 2 ) = ( 4 π f c τ ) mod 2 π , τ { ( 2 , 1 - 1 , 1 ) + ( 1 , 2 - 2 , 2 ) + n 2 π 4 π f c : n } .
Once several measurements are obtained for a range of carrier frequencies, fc, the system can statistically solve the set of equations (e.g., via a least-squares calculation or other numerical methods) to refine the propagation time τ.
Thus, in one implementation, a remote server or master node executing Blocks of the method S100 can, after transmission of the synchronization signal by n1 at T1 according to a clock of n1: receive, from n1, a phase of a first self-receive signal according to n1; and receive, from n2, a phase of the synchronization signal from n1 according to n2; and, after transmission of the synchronization signal by n2 at T2 according to a clock of n2: receive, from n2, a phase of a second self-receive signal according to the clock of n2; and receive, from n1, a phase of the synchronization signal from n2 according to the clock of n1. The remote server or master node can then refine the first propagation delay based on the phase of the first self-receive signal, the phase of the first synchronization signal, the phase of the second self-receive signal, and the phase of the second synchronization signal.
1.6.4 Clock Adjustment
Once the system has executed the synchronization protocol and/or phase refinement for a pair of nodes, the system can shift the clock of one node in each pair of nodes by the calculated time bias in order to synchronize the clocks of the pair of nodes. Alternatively, as shown in FIG. 2 the system can maintain the time bias of each node relative to a master node or other time standard (e.g., the clock of a remote server) and correct scheduling times sent to each node and/or timestamps received from each node based on the latest calculated time bias of the node relative to the master node or time standard—such as by subtracting the time bias of the node from any timestamps calculated by the node.
2. Second Method
As shown in FIG. 6A, a second method S200 for calculating a frequency offset between two clocks includes, at a first node: transmitting a first calibration signal at a first time-of-departure measured by a first clock of the first node; and transmitting a second calibration signal at a second time-of-departure measured by the first clock and succeeding the first time-of-departure by an initial signal interval in Block S210. The second method S200 also includes, at a second node: receiving the first calibration signal at a first time-of-arrival measured by a second clock of the second node; and receiving the second calibration signal at a second time-of-arrival measured by the second clock in Block S220. The second method S200 further includes: defining a first calibration point in a first set of calibration points, the first calibration point representing the first time-of-departure and the first time-of-arrival; defining a second calibration point in the first set of calibration points, the second calibration point representing the second time-of-departure and the second time-of-arrival in Block S230; calculating a first regression on the first set of calibration points in Block S240; and calculating a first frequency offset between the first clock and the second clock based on the first regression in Block S250.
As shown in FIG. 6B, one variation of the second method S200 includes: scheduling transmission, from a first node, of a first calibration signal at a first time-of-departure measured by a first clock of the first node; scheduling transmission, from the first node, of a second calibration signal at a second time-of-departure measured by the first clock and succeeding the first time-of-departure by an initial signal interval in Block S212; receiving, from a second node, a first time-of-arrival measured by a second clock of the second node, the first time-of-arrival corresponding to reception of the first calibration signal at the second node; receiving, from the second node, a second time-of-arrival measured by the second clock, the second time-of-arrival corresponding to reception of the second calibration signal at the second node in Block S222; defining a first calibration point in a first set of calibration points, the first calibration point representing the first time-of-departure and the first time-of-arrival; defining a second calibration point in the first set of calibration points, the second calibration point representing the second time-of-departure and the second time-of-arrival in Block S230; calculating a first regression on the first set of calibration points in Block S240; and calculating a first frequency offset between the first clock and the second clock based on the first regression in Block S250.
2.1 Applications
Generally, the second method S200 is executable by a set of (e.g., two) nodes in a mesh network and/or a remote server (hereinafter “the system” as shown in FIG. 11) to calculate a frequency offset between clocks of these nodes and to compensate for this frequency offset in communications between these nodes. In particular, a pair of nodes can execute the second method S200 to detect and compensate for a frequency offset between their clocks (e.g., by adjusting a trim capacitor or digital correction), such as between two crystal oscillator clocks or between a crystal oscillator clock and an atomic clock. Upon compensating for the frequency offset between the clocks of the pair of nodes, the pair of nodes can then execute the first method S100 described above to temporally synchronize their clocks in order to characterize the absolute time bias between the clocks of the pair of nodes. Furthermore, the second method S200 can be executed between nodes with only a coarse level of time synchronization between them (e.g., a time synchronization on the order of 1-100 milliseconds). Thus, a pair of coarsely synchronized nodes can execute the second method S200, to first compensate for frequency drift between the pair of nodes, and subsequently execute the first method S100 in order to characterize the time domain drift between the frequency synchronized clocks of the pair of nodes to within one nanosecond.
For example, frequency offsets between crystal oscillators may occur within a range of hundreds of parts-per-billion (hereinafter “PPB”) to hundreds of parts-per-million (hereinafter “PPM”). In order to accurately calculate a time bias between two clocks, such as via the first method S100, the system can first characterize the frequency offset between these clocks in order to preserve the accuracy of this time bias even as these clocks drift relative to each other over time due to this frequency offset. Therefore, the system can execute the second method S200 to calculate the frequency offset between the clocks of two nodes—such as to within ten PPB—in order to support higher-precision calculation of a time bias between these nodes, such as during execution of the first method S100. Thus, the system can execute the second method S200 in conjunction with the first method S100 in order to achieve high-resolution (e.g., nanosecond-level) time synchronization between two nodes.
In one example, the system can: wirelessly connect a pair of nodes in a mesh network to attain a rough level of time synchronization (e.g., to within a few milliseconds; execute the method S200 to attain frequency compensation between the pair of nodes to with ten PPB; execute method S100 to attain a time synchronization between the pair of nodes to within one nanosecond. The system can then implement TOA or time-difference-of-arrival multilateration to locate transmitters to within 30 centimeters. Additionally or alternatively, the system can execute high-speed TDMA communication protocols between the pair of nodes with minimal slot and/or frame buffers.
Generally, the second method S200 is described herein as executed between two nodes (or a “pair” of nodes). However, the method S200 can additionally or alternatively be executed between any other quantity of nodes and/or a master node concurrently or sequentially.
2.2 Summary
In the second method S200, a first node (i.e., the “transmitting node”) in the mesh network transmits successive calibration signals separated by a calibration signal interval (hereinafter a “signal interval”) during a period of time between a first calibration signal and a last calibration signal (hereinafter a “calibration period”). The transmitting node also records a time-of-departure (hereinafter “TOD”) of each calibration signal such that the system can later compare the TOD of each calibration signal as measured by a clock of the transmitting node to the TOA of each calibration signal as measured by a clock of the receiving node.
In one implementation, the transmitting node transmits calibration signals similar in structure to the synchronization signals described above with respect to the first method S100. Alternatively, when executing the first method S100 and the second method S200 concurrently, the system can handle a single RF signal as both a synchronization signal and a calibration signal according to the first method S100 and the second method S200, respectively.
The transmitting node also transmits calibration signals successively during a calibration slot in a TDMA frame—described above—according to the second method S200. In particular, the transmitting node delays each successive calibration signal by a signal interval measured by a clock of the transmitting node. For example, for a signal interval of one second, the transmitting node can begin transmission of the first calibration signal one second before the beginning transmission the second calibration signal.
The system can adapt a duration of the signal interval according to the hardware of the transmitting node and/or receiving node based on a predicted initial offset between the clocks of a pair of nodes; a nominal initial clock frequency of each node, and a desired accuracy for the frequency offset calculation. For example, by decreasing the duration of the signal interval, the system can increase a number of calibration signals transmitted between these nodes within a single calibration period, thereby improving accuracy of a regression on calibration points based on the TODs and TOAs of these calibration signals.
Additionally, the system can adapt a duration of the calibration period (during which all calibration signals are sent) according to an expected maximum frequency offset between nodes, a desired precision of the frequency offset calculation (e.g., measured in PPM or PPB), and/or the expected maximum timestamping noise of the receiving node.
The receiving node in the pair of nodes receives each successive calibration signal and determines the TOA of each calibration signal to within one sampling period (e.g. based on the sample time counter of the clock)—such as based on digital timestamping. For example, if the nominal sampling frequency of a node clock is ten megahertz, the TOA can be determined to within the sampling period of 100 nanoseconds.
Also, because the clock of the receiving node and the clock of the transmitting node may operate at different frequencies, the accuracy of the TOA of each calibration signal—such as calculated by the receiving node—may be reduced to within one sampling period (e.g. to within 100 nanoseconds for a clock with a sampling frequency of ten megahertz) when compared to the TOA calculation for the synchronization signal in the first method S100. Therefore, the receiving node can calculate TOAs for multiple calibration points corresponding to multiple calibration signals such that the system can calculate a frequency offset between clocks of the transmit and receive nodes based on a cumulative plot of successive calibration points.
The system can then define and plot a set of calibration points, wherein each calibration point includes a TOD of a calibration signal from the transmitting node and a TOA of the same signal measured by the receiving node. The system can execute a linear regression on the set of calibration points and extract the frequency offset between the two nodes from the slope of the best-fit line of the linear regression.
In another implementation, the system can calculate the time elapsed between TOAs of successive calibration signals according to the clock of the receiving node and calculate a difference between the elapsed time and the signal interval. The system can then record the calculated difference as a signal interval deviation, which the system can leverage to determine a frequency offset between clocks in the nodes (e.g., based on an average or weighted average of signal interval deviations).
By calculating a regression on calibration points consisting of TODs versus TOAs of each calibration signal, the system can estimate frequency offsets to a high degree of accuracy despite various sources of timestamping noise at each node. Timestamps measured at the receiving node may be affected by: frequency domain drift due to the frequency offset between clocks in the nodes; time domain drift due to phase noise accumulation during the signal interval; time domain drift due to changing environmental factors during the signal interval; RF interference at the receiving node; and/or scheduling delays in the process of the receiving node. Thus, the system defines multiple calibration points over a calibration period in order to characterize timestamping noise between the pair of nodes and calculate an accurate estimate of the frequency offset despite timestamping noise in the pair of nodes.
After the receiving node and/or the remote server executing the second method S200 calculates the frequency offset, the receiving node and/or the remote server can apply frequency compensation equal to the measured frequency offset to the clock of one of the nodes (e.g. the slave node to bring the slave node into frequency calibration with a master node). Alternatively, a remote server communicating with nodes in the mesh network executing the method S200 can schedule successive TDMA slots in a time synchronization, frequency calibration, data communication, and/or localization protocol executed by the mesh network while compensating for the calculated frequency offset between the nodes.
In one implementation, the frequency calibration process occurs on a pairwise basis across a network of nodes calibrating the frequency of each node clock based on the clock frequency of a master node. Alternatively, the master node can transmit the successive calibration signals to multiple nodes in the network at the same time and each of the receiving nodes can be calibrated to the master node concurrently.
2.3 Frequency Calibration Parameters
The system executing the second method S200, as shown in FIG. 6A, can characterize the frequency offset between the clocks of a set of nodes in the mesh network. The frequency calibration process of the second method S200 includes a set of configurable or adaptable attributes including: the calibration transmission pattern, the calibration period, the signal interval, and recalibration triggers.
Generally, during execution of the second method S200, a transmitting node executes Block S210 by transmitting a series of calibration signals to a set of receiving nodes. More specifically, the transmitting node can: transmit a first calibration signal at a first TOD measured by a clock of the transmitting node; and transmit a second calibration signal at a second TOD measured by the clock of the transmitting node and succeeding the first TOD by an initial signal interval. Additionally, in Block S212, the system (i.e., a remote server coordinating the method S200) can schedule the transmission of calibration signals at specific TODs. More specifically, the system can: schedule transmission, from the transmitting node, of the first calibration signal at the first TOD measured by the clock of the transmitting node; and schedule transmission, from the transmitting node, of the second calibration signal at a second TOD measured by the clock of the transmitting node and succeeding the first TOD by the initial signal interval.
The set of receiving nodes can then receive the transmitted series of calibration signals in Block S220. More specifically, a receiving node can: receive the first calibration signal at a first TOA measured by a clock of the receiving node; and receive the second calibration signal at a second TOA measured by the clock of the receiving node. Additionally, the receiving node can report the measured TOAs of the calibration signals to the system such that the system can define a set of calibration points based on the TODs of the calibration signals at the transmitting node and the TOAs of the calibration signals at the receiving nodes. Therefore, in Block S222, the system (i.e., a remote server coordinating the method S200) can: receive, from a receiving node, the first TOA measured by a clock of the receiving node, the first TOA corresponding to reception of the first calibration signal at the receiving node; and receive, from the receiving node, a second TOA measured by the clock of the receiving node, the second TOA corresponding to reception of the second calibration signal at the receiving node.
The system, can include: a transmitting node, a receiving node, a master node (which can be either the transmitting node or the receiving node); and/or a set of remote servers connected to the transmitting node and receiving node. The system can then execute Blocks S230, S240, and S250 in order to calculate a frequency offset between the transmitting node and the set of receiving nodes. More specifically, the system can: define a first calibration point in a set of calibration points, the first calibration point including the first TOD and the first TOA (i.e., the TOD and TOA corresponding to the first calibration signal); define a second calibration point in the set of calibration points, the second calibration point including the second TOD and the second TOA (i.e., the TOD and TOA corresponding to the second calibration signal); calculate a regression on the first set of calibration points; and calculate a frequency offset between the clock of the transmitting node and the clock of the receiving node based on the regression. Additionally, the system can define additional calibration points in the set of calibration points beyond the two described above, wherein each additional calibration point includes a TOD and a TOA of a calibration signal transmitted from the transmitting node to the receiving node.
In one implementation, the transmitting node is a master node, while the receiving node is a slave node. Thus, the second method S200 calculates the frequency offset of the receiving node relative to the transmitting node.
Hereinafter, the method S200 is described with respect to a single transmitting node and a single receiving node for ease of description. However, functions of the single receiving node can be executed by each receiving node in the set of receiving nodes.
A “calibration transmission pattern” refers to the particular pattern (i.e., the timing of calibration signals transmitted by a transmitting node) with which a transmitting node transmits calibration signals during a calibration period
A “calibration period” refers to a time period between a first calibration signal transmitted by a transmitting node and a last calibration signal transmitted by the transmitting node for a given frequency offset calculation.
A “signal interval” refers to a time interval between transmitted calibration signals as measured by the clock of the transmitting node. Therefore, the signal interval can vary depending on the calibration transmission pattern of each iteration of the method S200.
“Recalibration triggers” refer to factors that can trigger a frequency calibration process after the completion of an initial frequency calibration between two nodes.
Additionally, before initiating the second method S200, the nominal sampling frequency of both the master node and the slave node may be known (at either the master node or a remote server executing the second method S200). Furthermore, the initial frequency offset is assumed to be bounded within an error value specified by the clocks included in each node. The second method S200 includes steps that leverage this information to set parameters such as the calibration transmission pattern and the signal interval duration.
2.4 Calibration Transmission Pattern
In Block S210, and as shown in FIG. 7 , a first node (i.e., a transmitting node) transmits a set of successive calibration signals spanning a calibration period, starting at a first time and separated by signal intervals as measured by a clock of the first node. The system can execute the method S200 according to calibration transmission patterns that can include: a continuous succession of calibration signals separated by a consistent signal interval; a series of calibration signals with a varying intervening signal interval; and/or multiple groups of calibration signals grouped in successive calibration slots separated by intervening slots of a TDMA protocol.
In one implementation, the transmitting node executing the second method S200 transmits a succession of calibration signals separated by a consistent signal interval. For example, the transmitting node can transmit a set of calibration signals with a signal interval of one second and therefore transmits a calibration signal each second during the calibration period according to the clock of the transmitting node.
In another implementation, the transmitting node executing Blocks of the second method S200 utilizes a calibration transmission pattern that includes multiple sets of calibration signals, each set of calibration signals separated by a signal interval followed by successive sets of calibration signals also separated by a signal interval. Each successive set is separated by a slot interval between calibration slots defined by a TDMA protocol implemented by the system. Therefore, the transmitting node can transmit any of the calibration signals of the transmission signal in separate calibration slots. In this implementation, the transmitting node transmits a set of calibration signals and separates each set by a slot interval. The purpose of this calibration pattern is to align calibration signals with calibration slots specified in a TDMA frame, such that the first set of calibration signals are transmitted and received during a first calibration slot in a first TDMA frame and the second set of calibration signals are transmitted and received in a second calibration slot in a second TDMA frame. Furthermore, by transmitting clusters of calibration signals within calibration slots, the system can increase the calibration period while without occupying the time bandwidth for the entire calibration period. Thus, the transmitting node can set the slot interval equal to the time between calibration slots in subsequent TDMA frames, thereby enabling the transmitting and receiving nodes to execute other processes during the intervening period between calibration slots. More specifically, the system can schedule a data transfer slot for the transmitting node between a first TOD (during a first calibration slot) and the second TOD (during a second calibration slot), the data transfer slot characterized by a slot duration less than the initial signal interval by at least a duration of a calibration signal. Additionally or alternatively, the system can schedule a synchronization slot (for execution of the first method S100) for the transmitting node and the receiving node between a first TOD and a second TOD, the synchronization slot characterized by a slot duration less than the initial signal interval by at least a duration of a calibration signal.
More specifically, the system can: schedule a time synchronization slot for the transmitting node and the receiving node between the first TOD and the second TOD; schedule transmission, from the first node, of a first synchronization signal during the time synchronization slot; receive, from the transmitting node, a third TOA measured by the clock of the transmitting node, the third TOA corresponding to reception, at the transmitting node, of a first self-receive signal generated by the transmitting node as a back-coupled reflection of the first synchronization signal; receive, from the transmitting node, a fourth TOA measured by the clock of the transmitting node, the fourth TOA corresponding to reception, at the transmitting node, of a second synchronization signal transmitted by the receiving node; schedule transmission, from the receiving node, of the second synchronization signal during the time synchronization slot; receive, from the receiving node, a fifth TOA measured by the clock of the receiving node, the fifth TOA corresponding to reception, at the receiving node, of a second self-receive signal generated by the receiving node as a back-coupled reflection of the second synchronization signal; receive, from the receiving node, a sixth TOA measured by the clock of the receiving node, the sixth TOA corresponding to reception, at the receiving node, of the first synchronization signal transmitted by the transmitting node; and calculate a time bias and a propagation delay between the first clock and the second clock based on the third TOA, the fourth TOA, the fifth TOA, and the sixth TOA. Thus, the system can execute the first method S100 in order to calculate a time bias and propagation delay between the transmitting node and the receiving node in a time synchronization slot scheduled between calibration slots of the second method S200.
In another implementation, the transmitting node utilizes a calibration transmission pattern including a variable signal interval. In this implementation, the transmitting node can transmit a first set of two calibration signals separated by a first signal interval followed by a second set of two calibration signals separated by a second signal interval greater than the first interval. In this manner, the transmitting node sweeps through a series of signal intervals by transmitting successive sets of two calibration signals. The receiving node or remote server executing blocks of the second method S200 can calculate deviations in the received signal intervals from the expected variable signal interval. The transmitting node executing the second method S200 can execute increasingly narrow sweeps to improve the estimate of the frequency offset.
However, the transmitting node executing Blocks of the second method S200 can transmit calibration signals in a pattern including any combination of the aforementioned patterns.
Furthermore, the system can coordinate the timing of calibration signals, calibration slots, data transfer slots, time synchronization slots, and/or any other TDMA slot within multiple TDMA frames by leveraging a rough time bias calculation between the transmitting node and the receiving node. More specifically, the system can: calculate a rough time bias between the transmitting node and the receiving node; schedule transmission, from the transmitting node, of the first calibration signal at the first TOD during a transmission slot at the transmitting node; schedule transmission, from the transmitting node, of the second calibration signal at the second TOD during the transmission slot at the transmitting node; and schedule, at the receiving node, a reception slot spanning the first TOA and the second TOA, based on the rough time bias.
In one implementation, the system can execute the second method S200 to characterize a frequency offset between the transmitting node and multiple receiving nodes utilizing the same set of calibration signals. More specifically, the system can: receive, from a second receiving node, a third TOA measured by a clock of the second receiving node, the third TOA corresponding to reception of the first calibration signal at the second receiving node; receive, from the second receiving node, a fourth TOA measured by the clock of the second receiving node, the fourth TOA corresponding to reception of the second calibration signal at the second receiving node; define a third calibration point in a second set of calibration points, representing the first TOD of the first calibration signal and the third TOA at the second receiving node; define a fourth calibration point in the second set of calibration points, representing the second TOD of the second calibration signal and the fourth TOA at the second receiving node; calculate a second regression on the second set of calibration points; and calculate a second frequency offset between the clock of the transmitting node and the clock of the second receiving node based on the second regression. However, the system can simultaneously execute multiple iterations of the second method S200 with any number of receiving nodes configured to receive the set of calibration signals from the transmitting node during one or more calibration slots.
2.5 Calibration Period
For each iteration of the second method S200, the transmitting node can transmit a set of calibration signals within a calibration period—defined as the maximum time between calibration signals for use in a single frequency offset characterization. More specifically, when executing the second method S200, the transmitting node can: transmit a last calibration signal at a TOD measured by the clock of the transmitting node, the TOD succeeding the first TOD by a calibration period. Upon receiving the last calibration signal at the receiving node, at a last TOA measured by the clock of the receiving node, the system can: define a final calibration point of the set of calibration points, the final calibration point of the set of calibration points comprising the last TOD at the transmitting node of the last calibration signal and the last TOA at the receiving node of the last calibration signal.
The duration of this calibration period governs the precision with which the system can characterize the frequency offset between nodes. This effect is due to the fact that the receiving node has a limited timestamping accuracy (e.g., due to timestamping noise) and therefore detects accumulated time domain drift (due to a frequency offset between nodes) upon the time domain drift becoming measurable over timestamping noise. Therefore, given a longer calibration period, the system can detect smaller frequency offsets between nodes as the time domain drift between the nodes has had longer to accumulate. The timestamping noise for a receiving node can include effects of quantization noise at the ADC of the receiving node and accumulated jitter from either the clock of the transmitting node or the clock of the receiving node. Despite improvements in the precision of the frequency offset characterization resulting from the use of longer calibration periods, the system can also improve its resiliency to second-order effects (time domain change in the frequency offset between nodes) and the latency introduced by the second method S200 by utilizing a shorter calibration period.
Therefore, the system can calculate a calibration period that can satisfy the desired precision of the frequency offset characterization, while reducing latency introduced by the second method S200. Assuming a timestamping noise distribution Δ the system can define a maximum timestamping noise, Δmax, based on a threshold interval in A and excluding outliers in A. The system can calculate Δmax based on previous iterations of the second method S200 executed by nodes including similar hardware components to those nodes currently executing Blocks of the method S200 or the system can utilize a theoretical estimation of Δmax input by an administrator of the system. The system can then define a desired precision, δ (expressed as a proportion: e.g., 0.000001 for a precision of one PPM), based on an input by an administrator of the system. Additionally, the system can define a δ based on an expected frequency offset between the transmitting node and the receiving node. In one implementation, the system can calculate a calibration period based on a δ equal to ten percent of the expected frequency offset. However, the system can define δ as any function of the expected frequency offset. Therefore, the system can (indirectly) calculate the calibration period based on the expected frequency offset between the transmitting node and the receiving node.
Given Δmax and δ the system can: calculate the calibration period, mmax−mmin, by solving for mmax−mmin in the inequality:
m max −m minmax/δ.
In one example, given a Δmax equal to 100 nanoseconds and a δ equal to 10 PPB, the system calculates a calibration period of at least 10 seconds.
2.5.1 Calibration Period Refinement
As shown in FIG. 9 , in one implementation, the system can refine the calibration period over successive iterations of the second method S200 to further improve the characterization of the frequency offset between two nodes after an initial characterization of the frequency offset. More specifically, the system can: calculate a timestamping noise of the clock of the receiving node relative to the clock of the transmitting node based on a residual of a first regression; and calculate an adjusted calibration period based on a desired precision and the timestamping noise. The system can then perform a second iteration of the second method S200 to further prove the precision of the frequency offset characterization of the clocks of the two nodes. Therefore, subsequent to calculating an adjusted calibration period, the transmitting node can: transmit a fourth calibration signal at a fourth TOD measured by the clock of the transmitting node; transmit a fifth calibration signal at a fifth TOD measured by the clock of the transmitting node and succeeding the fourth TOD by a signal interval; and transmit a sixth calibration signal at a sixth TOD measured by the clock of the transmitting node and succeeding the fourth TOD by the adjusted calibration period. The receiving node can then: receive the fourth calibration signal at a fourth TOA measured by the clock of the receiving node adjusted by the first frequency offset; receiving the fifth calibration signal at a fifth TOA measured by the clock of the receiving node adjusted by the first frequency offset; and receiving the sixth calibration signal at a sixth TOA measured by the clock of the receiving node adjusted by the first frequency offset. The system can then: define a fourth calibration point in a second set of calibration points, the fourth calibration point including the fourth TOD and the fourth TOA; defining a fifth calibration point in the second set of calibration points, the fifth calibration point including the fifth TOD and the fifth TOA; define a final calibration point of the second set of calibration points, the final calibration point of the second set of calibration points comprising the sixth TOD and the sixth TOA; calculate a second regression on the second set of calibration points; and calculate a second frequency offset between the first clock and the second clock compensated by the first frequency offset.
Thus, after the system executes an iteration of the second method S200 with lower latency—and therefore lower precision—and obtains an initial frequency offset between the transmitting node and the receiving node, the system can calculate an actual timestamping noise (as opposed to an a priori estimate of the timestamping noise) in order to subsequently calculate an adjusted calibration period. Additionally or alternatively, the system can decrease 8, and thereby increase the precision of the second frequency offset characterization. The system can continue to execute additional iterations of the second method S200 to further increase the precision of the frequency offset characterization. Meanwhile, each of the nodes executing the additional iterations of the second method S200 can transmit and/or receive according to other functions of the node during intervening time synchronization slots, data transfer slots, and/or any other type of TDMA slot.
2.6 Signal Intervals
Generally, in Block S210, and as shown in FIG. 7 , the transmitting node executing Blocks of the second method S200 transmits calibration signals according to the aforementioned calibration transmission patterns. However, the transmitting node can transmit calibration signals separated by various signal intervals depending on the implementation. More specifically, the transmitting node: transmits a first calibration signal at a first TOD measured by a clock of the transmitting node; and transmits a second calibration signal at a second TOD measured by the clock of the first node and succeeding the first time-of-departure by an initial signal interval. By decreasing the signal interval for a given calibration period, the system can increase the number of calibration points generated for a given frequency offset characterization thereby improving the accuracy of frequency offset characterization in the face of timestamping noise.
The system can calculate an initial signal interval for the second method S200 based on the timestamping noise distribution Δ, which can result from the noise floor of the receiver chain of the receiving node and transmitter chain of the transmitting node, interference in the frequency band of operation, jitter in the crystal oscillators of the transmitting node and the receiving node, and/or operating conditions of the transmitting node and the receiving node (e.g., ambient temperature and pressure). Therefore, in one implementation, the system can estimate Δ based on characteristics of the clocks of the transmitting node and the receiving node. More specifically, the system can: access clock characteristics of the clock of the transmitting node; access clock characteristics of the clock of the receiving node; and calculate an initial signal interval based on clock characteristics of the clock of the transmitting node and clock characteristics of the clock of the receiving node.
Generally, given a wider estimated A, the system can transmit calibration signals with a shorter signal interval in order to increase the accuracy of the frequency offset characterization. Likewise, given a narrower estimated A, the system can transmit calibration signals with a longer signal interval to free up the transmitting and/or receiving node to perform other functions.
A can be modeled as the sum of gaussian noise term ΔN=N(0, σ2) and non-gaussian noise term Δout, where Δout>>ΔN with probability Pout and Δout≈0 otherwise. Given this model, the system can calculate the signal interval based on an outlier probability, Pout, which is defined as the probability in A that a given timestamping measurement has a variation from the accurate timestamp greater than the outlier threshold, Δmax. An administrator of the system may define Δmax as a certain number of standard deviations of the gaussian component of A. For example, an administrator of the system may define Δmax=4σ. Therefore, the system can calculate a number of calibration signals, n, based on Pout. For example, the system can calculate n by evaluating the inequality:
P out n <P T ,n∈
Figure US11632226-20230418-P00001
.
Where PT is the probability threshold that all timestamps (i.e., calculations of TOA) are outliers. For example, if PT=0.001 and Pout=0.20, then the system calculates n greater than 5. Thus, the system can: calculate an outlier probability based on the timestamping noise; calculate a number of calibration signals in a calibration period based on the desired accuracy and the outlier probability; and divide the calibration period by the number of calibration signals to calculate the adjusted signal interval.
In an alternative implementation, the system can calculate n based on a desired statistical confidence interval for a slope of a best-fit line in a linear regression, which dictates the frequency offset as further described below. Thus, the system can calculate n given a desired width of a confidence interval and the distribution Δ. Assuming Δ is entirely gaussian, the system can evaluate a least squared error expression to calculate n.
In one implementation, given a value of n, the system can divide the calibration period, mmax−mmin, by n to calculate the signal interval. Alternatively, for calibration transmission patterns wherein the system varies the signal interval between calibration signals within a single calibration slot or across multiple calibration slots, the system can distribute and/or cluster n calibration signals according to the specified calibration transmission pattern.
However, the nodes and or remote server implementing the second method S200 can adaptively vary the signal interval in any other way.
2.6.1 Signal Interval Refinement
As shown in FIG. 9 , the system can adjust the signal interval between iterations of the second method S200. More specifically, the system can: calculate a timestamping noise of the clock of the receiving node relative to the clock of the transmitting node based on a residual of the first regression; and calculate an adjusted signal interval based on the timestamping noise. The system can then execute a second iteration of the second method S200 utilizing the adjusted signal interval instead of the initial signal interval. Additionally, the system can calculate the adjusted signal interval based on a desired accuracy, a timestamping noise, and a frequency offset calculated during the first iteration of the second method S200.
In one implementation, the system can calculate an observed A based on a residual of the regression on the first set of calibration points generated in a first iteration of the second method S200. For example, the system can calculate an observed gaussian term, ΔN, based on the standard deviation (excluding outliers) of the residuals of the first regression and a new Pout based on the observed proportion of outliers in the residuals of the first regression. The system can then utilize the newly calculated ΔN and Pout to calculate a new n as described above and derive an adjusted signal interval based on the calibration period and n. After the system performs successive calculations of the frequency offset between the transmitting node and the receiving node, the system can continue to characterize ΔN and Pout in order to more effectively select a signal interval that will result in more accurate calculation of the frequency offset between the transmitting node and the receiving node.
Additionally or alternatively, the system can adjust the signal interval within the same iteration of the second method S200 to enable the system to respond to detected differences between expected timestamping noise and expected frequency offsets between nodes as soon as possible. For example, if a transmitting node transmits two calibration signals with an initial signal interval and the system detects that the received signal interval (the signal interval as measured by the clock of the receiving node) does not differ (within the timestamping precision of the receiving node) from the nominal initial signal interval, the system can lengthen the subsequent signal interval in order to better detect the relative frequency based drift between the clocks of the transmitting node and the receiving node. More specifically, the system can: calculate a received signal interval as a difference between the first TOA and the second TOA as measured by the clock of the receiving node; in response to the received signal interval equaling an initial signal interval within a measurement variation, schedule transmission, from the transmitting node, of a third calibration signal at a third TOD measured by the clock of the transmitting node and succeeding the second TOD by a second signal interval greater than the first interval; receive, from the receiving node, a third TOA measured by the clock of the receiving node, the third TOA corresponding to reception of the first calibration signal at the receiving node; and define a third calibration point in the set of calibration points, representing the third TOD and the third TOA.
2.7 Frequency Offset Calculation
Once a transmitting node has transmitted calibration signals according to the calibration transmission patter (parameterized by a calibration period and a signal interval) in Blocks S210 and S220, the system can define a set of calibration points representing the TOD and TOA of each calibration signal in order to characterize the relative time domain drift, caused by a frequency offset, between the clock of the transmitting node and the clock of the receiving node. More specifically, in Block S230 the system can: define a first calibration point in a first set of calibration points, the first calibration point including the first TOD and the first TOA of the first calibration signal; and define a second calibration point in the first set of calibration points, representing the second TOD and the second TOA in Block S230. Additionally, the system can execute Block S230 to define additional calibration points for each of the n calibration signals transmitted by the transmitting node. The system can define each calibration point as a two-dimensional vector that includes parameters m and p, where m is a timing index for the TOD of a calibration signal and p is a timing index for the TOA of the same calibration signal.
In order to ensure that the TOD at the transmitting node is matched correctly to the TOA at the receiving node for each calibration signal in the set of calibration signals, the system can match the TODs to the TOAs sequentially (e.g., by matching the first TOD transmitted by the transmitting node to the first TOA received by the receiving node). Alternatively, the transmitting node can transmit calibration signals that include an identifier that the receiving node can read in order to accurately identify the calibration signal that corresponds with a particular TOA. The receiving node can then transmit this identifying information to a remote server or master node coordinating the second method S200.
Upon defining a set of calibration points representing each of the transmitted calibration signals, the system can calculate a regression on the set of calibration points in Block S240. The system, via linear regression, calculates a best fit linear function describing the relationship between m and p. The theoretical relationship between a given value of m and p is given by the following equation:
p i = 1 T ( τ + b 1 - b 2 ) + c 1 c 2 m i + Δ i ,
Wherein T is the nominal clock period of the clock of the transmitting node and the clock of the receiving node, T is the propagation time between the two nodes, b1−b2 is the time bias between the clock of the transmitting node and the clock of the receiving node, c1 is the frequency offset of the transmitting node from the nominal clock frequency, c2 is the frequency offset of the receiving node from the nominal clock frequency, and Δi is a sample from the timestamping noise distribution for the ith calibration signal. Assuming constant τ and b1−b2 across the calibration period, the system can, upon calculating a regression for the set of calibration points (mi, pi), therefore obtain the ratio
c 1 c 2 .
This ratio does not define the magnitude of the frequency offset between the transmitting node and the receiving node c1−c2. However, via a first order Taylor expansion of
c 1 c 2 :
c 1 c 2 1 + c 1 - c 2 ,
for small values of c1 and c2.
Given that most crystal oscillators only deviate from their nominal frequency on the order of PPM, the above equality holds sufficiently to extract the frequency offset c1−c2 based on the slope of the best fit line of the regression. Thus:
p i = 1 T ( τ + b 1 - b 2 ) + ( 1 + c 1 - c 2 ) m i + Δ i .
Therefore, the system can calculate a frequency offset between two nodes by calculating a slope of best-fit line of the first set of calibration points and solving for c1−c2 in: β=1+c1−c2, wherein β represents a slope of the linear regression on the calibration points.
In one implementation, the system identifies and excludes outliers from the regression in order to calculate a more accurate calculation of the frequency offset. Additionally or alternatively, the system can perform any other statistical technique to improve the estimate of the frequency offset in the presence of unknown Ai.
In addition to calculating the frequency offset between the transmitting node and the receiving node, the system can extract improved estimations of ΔN and Pout based on residuals of the regression, as shown in FIG. 8 . In one implementation, the system can calculate an updated Pout by identifying outliers in the residuals of the regression and calculating the frequency of those outliers. The system can then calculate a standard deviation of the non-outlier residuals in order to improve the estimate of ΔN. In either case, the system can integrate residuals calculated in multiple iterations of the method S200 to calculate the updated values of ΔN and Pout. For example, the system can calculate Pout as the outlier proportion across all iterations of the second method S200 executed by a particular pair of nodes in the mesh network.
2.7.1 Signal Interval Deviation
In an alternative implementation, the receiving node receives the set of calibration signals transmitted by the transmitting node and calculates TOAs for the set of calibration signals. The system can calculate a frequency offset based on the set of TOAs for the received calibration signals. More specifically, each TOA is subtracted from the subsequent TOA to determine the received signal interval between each of the received signals. The set of received signal intervals are then subtracted from a corresponding set of transmitted signal intervals, as measured according to the clock of the transmitting node, to calculate a deviation for each received signal interval as compared to the transmitted signal interval. The set of deviations are then summed and divided by the cumulative duration of the transmitted signal intervals to determine an average error ratio. The receiving node or the remote server executing the second method S200 then multiplies the average error ratio by the sampling frequency to obtain the frequency offset between the transmitting node and the receiving node. Thus, the process for calculating the frequency offset between a transmitting node and a receiving node is expressed as follows:
f r - f t f t i = 1 n s r , ι ˙ - s t , ι ˙ s t , ι ˙ ,
wherein fr is the clock frequency of the receiving node, ft is the clock frequency of the transmitting node, n is the number of calibration signals received, sr,i is the signal interval in samples-per-second according to the clock of the receiving node, and st,i is the signal interval in samples-per-second according to the clock of the transmitting node.
In one implementation, statistical techniques are applied to the set of deviations sr,i−st,i to remove outliers and/or detect frequency drift during the calibration period. For example, the second method S200 can include plotting residuals of the average deviation against time to determine if there are any trends in the set of deviations over the sampling period.
2.8 Frequency Compensation
Upon calculating, the frequency offset between the transmitting node and the receiving node, the system can compensate for the frequency offset in order to improve the ability of the nodes to calculate the time bias, b1−b2, by executing the first method S100. In one implementation, either the transmitting node or the receiving node can compensate for the measured frequency offset. Either the transmitting node or the receiving node can correct the timestamp for one of the clocks periodically to cancel out the frequency offset induced drift. Alternatively, the system does not compensate for the frequency offset at either of the nodes and instead accounts for the time domain drift when scheduling slots in the TDMA frame and when performing TOA calculations for synchronization signals while executing the first method S100.
2.9 Frequency Recalibration
One variation of the second method S200 includes recalibrating frequency offset between nodes in the network in response to environmental factors. Generally, if a significant change in environmental conditions such as temperature, humidity, pressure, etc. is detected at either the transmitting node or receiving node, the system can reinitiate the frequency calibration process. In one implementation, the second method S200 includes reinitiating the frequency calibration process in response to a change in temperature greater than a threshold temperature, a change in humidity greater than a threshold humidity, and/or a change in pressure greater than a threshold pressure. Alternatively or additionally, the second method S200 includes reinitiating the frequency calibration process in response to detecting acceleration greater than a threshold acceleration at one of the nodes.
In one implementation, the transmitting node, transmitting a set of calibration signals during a synchronization slot in the first method S100. In this implementation, the frequency offset can be recalculated while still determining a time bias between nodes in the network according to the method S100. For example, whenever the transmitting node transmits a synchronization signal, an additional signal can be sent after a signal interval. The signal interval between these two signals can then be measured at the receiving device according to the second method S200. Alternatively, the second method S200 includes modifying the TDMA frame to include a calibration slot during which the frequency calibration process is executed.
2.10 Node Characterization
In one implementation, upon updating estimates of ΔN and Pout for a particular pair of nodes, the system can apply these estimates to subsequent calibration processes executed between different pairs of nodes with similar hardware. For example, if a first node and a second node execute the second method S200 and, therefore, the system obtains updated estimates of ΔN and Pout, the system can use the updated estimates for ΔN and Pout for the first node and the second node to calculate an initial calibration period and an initial signal interval for the second method S200 executed between the first node and a third node (assuming the third node includes similar hardware to the second node). More specifically, the system can: calculate a timestamping noise of the clock of the receiving node relative to the clock of the transmitting node based on a residual of a first regression; calculate an adjusted signal interval based on the timestamping noise; schedule transmission, from the transmitting node, of a third calibration signal at a third TOD measured by the clock of the transmitting node; schedule transmission, from the node transmitting node, of a fourth calibration signal at a fourth TOD measured by the clock of the transmitting node and succeeding the third TOD by the adjusted signal interval; receive, from a second receiving node, a third TOA measured by a clock of the second receiving node, the third TOA corresponding to reception of the third calibration signal at the node second receiving node; receive, from the second receiving node, a fourth TOA measured by the clock of the second receiving node, the fourth TOA corresponding to reception of the fourth calibration signal at the second receiving node; define a third calibration point in a second set of calibration points, representing the third TOD and the third TOA; define a fourth calibration point in the second set of calibration points, representing the fourth TOD and the fourth TOA; calculate a second regression on the second set of calibration points; and calculate a second frequency offset between the first clock and the third clock based on the second regression.
Thus, the system can update initial estimates for the initial frequency offset, the timestamping noise, and/or the outlier probability based on pervious iterations of the method S200 executed between nodes of similar hardware
3. Third Method
As shown in FIG. 10 , a method S300 for selecting gain levels for synchronization signals includes, at a first node including a self-receive signal generator: at a first time, generating a first high-gain synchronization signal at a first high-gain level in Block S310; at a second time offset from the first time by a first signal offset, generating a first low-gain synchronization signal at a first low-gain level in Block S312; generating a first low-gain self-receive signal responsive to generating the first low-gain synchronization signal in Block S320; and recording at a receiver of the first node a saturation level of the first low-gain self-receive signal and a signal-to-noise ratio (hereinafter “SNR”) of the first low-gain self-receive signal in Block S330. The third method S300 also includes, at a second node: receiving at a receiver of the second node the first high-gain synchronization signal in Block S340; and recording at the receiver of the second node a saturation level of the first high-gain synchronization signal and an SNR of the first high-gain synchronization signal in Block S350. The third method S300 further includes: calculating a second high-gain level for a second high-gain synchronization signal based on the saturation level of the first synchronization signal, the SNR of the first synchronization signal, and the first high-gain level in Block S360; calculating a second low-gain level for a second low-gain synchronization signal based on the saturation level of the first low-gain self-receive signal, the SNR of the first low-gain self-receive signal, and the first low-gain level in Block S362; and calculating a second signal offset based on a ratio of the second high-gain level and the second low-gain level in Block S370. The third method S300 also includes, at a first node: at a third time, generating the second high-gain synchronization signal at the second high-gain level in Block S380; and at a fourth time offset from the third time by a second signal offset, generating a second low-gain synchronization signal at a second low-gain level in Block S382.
3.1 Applications
Generally, the third method S300 defines a gain calibration process between a pair of nodes in a network and, like the methods S100 and S200, is executed by a pair of nodes in a network and/or a remote server (hereinafter “the system” as shown in FIG. 11 ). The third method S300 calibrates the amplifier gain of a wireless node that includes a self-receive generator. Because each signal transmitted by a transmitting node including a self-receive generator is propagated to the receive port of the transmitting node, a gain level high enough to transmit a signal to another node may cause saturation at the receive port of the transmitting node. Thus, the third method S300 includes transmitting two synchronization signals separated by a specific signal offset within a synchronization slot. One of the two synchronization signals is a high-gain synchronization signal that is transmitted at a high-gain such that the high-gain synchronization signal is well received at a receiving node. The other synchronization signal is a low-gain synchronization signal that is transmitted at a low-gain level such that the resulting low-gain self-receive signal does not saturate the receive port of the transmitting node. Thus, if only one synchronization signal is well-received by a receiving node (or by the receiver of the transmitting node), the TOA of the self-receive signal can still be compared to the TOA of the receive signal at the receiving node by considering the known signal offset. For example, if a receiving node receives the high-gain synchronization signal and the transmitting node receives the self-receive signal corresponding to the low-gain synchronization signal, the time that the high-gain synchronization signal was transmitted is calculated based on the TOA of the self-receive signal corresponding to the low-gain signal and the known signal offset.
In the set of two synchronization signals, a first synchronization signal is transmitted at a higher gain such that the first synchronization signal is detectable at the receiver of a receiving node (e.g. above the noise floor and below saturation levels) and a second synchronization signal is transmitted at a lower gain such that the self-receive signal based on the second synchronization signal is detectable at the receiver of the transmitting node (e.g. above the noise floor and below saturation levels). The order of the set of two differential gain synchronization signals is interchangeable (e.g. the higher gain signal can be transmitted after the lower gain signal or vice versa).
The nodes and/or remote server executing the third method S300 can adjust the signal offset between the high-gain signal and the low-gain signal. Generally, the third method S300 includes a signal offset that is as short as possible to minimize clock drift that may occur between the high-gain signal and the low-gain signal. However, this signal offset is limited by hardware and software constraints including the dynamic range and the slew rate of the ADC and DAC in the transmitting node and the ADC of the receiving node in addition to the gain bandwidth product (hereinafter “GBWP”) and slew rate of the amplifier in the transmitting nodes.
Thus, the third method S300 includes an iterative process for selecting the gain of the high-gain and low-gain synchronization signals as well as the signal offset. First, based on known or estimated initial conditions such as the proximity between the two communicating nodes, a high-gain level and a low-gain level are selected. Based on the high-gain level and the low-gain level, the slew rate and the dynamic range of the ADCs and DACs of the nodes, the transmitting node and/or the remote server calculates a minimal measurement acquisition interval, that limits drift between the clocks during the signal offset and enables the frequency offset and time offset to be measured accurately at the intended high-gain level and low-gain level.
The transmitting node and the receiving node record the SNR and the saturation level for each signal resulting in four values for each pulse (SNR at transmitting node, saturation level at transmitting node, SNR at receiving node, and saturation level at receiving node). The third method S300 can include transmitting these values via a wireless network to a remote server or to one of the nodes for further processing. If the high-gain signal results in an excessive saturation level at the receiver of the receiving node, the gain of the high-gain signal is reduced in the subsequent pulse. Alternatively, if the high-gain signal is received with low SNR or not received at all at the receiving node then the gain of the high-gain signal is increased in the subsequent pulse. Likewise, if the self-received signal based on the low-gain signal has an excessive saturation level at the receiver of the transmitting node, then the gain of the low-gain signal is reduced in the subsequent pulse. Alternatively, if the low-gain signal is not detected or has an excessively low SNR at the transmitting node, then the gain of the low gain signal is increased in the subsequent pulse. The third method S300 can include calculating the high and low gains based on a propagation model and any known parameters about the propagation environment (i.e., the receiver circuit for the self-receive signal gain) such as the distance between the nodes or the gain of the self-receive signal generator. Additionally or alternatively, the third method S300 can include varying the gain of either the high or low gain by incrementing by a predetermined amount based on the received saturation and SNR values. Therefore, the third method S300 can include utilizing a function that takes in the saturation level and SNR value to determine an increment for the subsequent pulse for either the high-gain signal or the low-gain signal.
Thus, based on the above logic, the nodes and/or remote server execute the third method S300 to determine a high-gain level and a low-gain level for the subsequent pulse including a second high-gain synchronization signal and a low-gain synchronization signal. The third method S300 includes adjusting the signal offset based on the gain values for the subsequent pulse. For example, if the ratio of the high gain value and the low gain value is within the dynamic range of the ADC of the receiving node, the signal offset is shortened, alternatively, if the ratio between the high gain value and the low gain value is greater than the dynamic range of the ADC of the receiving node, then a longer signal offset is used that accounts for the slew rate of the amplifier. Furthermore, the third method S300 can include adjusting the signal offset based on the settling time of the ADC of the receiving node and/or the accumulated clock error between the transmitting and receiving nodes.
Additionally, the nodes and/or remote server execute the third method S300 between each synchronization slot for a pair of nodes in a wireless network. Alternatively, the nodes and/or remote server execute the third method S300 selectively according to a set of criteria (e.g. a change in the saturation level or SNR of the high-gain synchronization signal and/or the low-gain synchronization signal).
3.2 Gain Calibration
As shown in FIG. 10 , the third method S300 includes calibrating the gain levels of a high-gain synchronization signal and a low-gain synchronization signal, as well as a signal offset between the two signals such that at least one of the signals is received at both the receiving node (e.g. a synchronization signal) and the transmitting node (e.g. a self-receive signal). More specifically, the third method S300 is an iterative process that can successively adjust the gain levels of the high-gain synchronization signal and the low-gain synchronization signal according to target saturation levels and SNR values at the receiver of each node. Gain levels are adjusted according to the logical flow shown in FIG. 10 .
After the nodes and/or remote server calculate gain levels for a subsequent synchronization slot, the nodes and/or remote server calculate a signal offset between the subsequent high-gain synchronization signal and low-gain synchronization signal.
Finally, the third method S300 can include reinitiating the gain calibration process in response to various recalibration criteria. For example, the third method S300 can include detecting a change in the saturation level of a received synchronization signal greater than a threshold saturation level when compared to a previous synchronization signal. Alternatively, the third method S300 can include reinitiating the gain calibration process in response to detected movement, temperature change, or other environmental factors at either node.
3.3 Gain Adjustment
As shown in FIG. 10 , the third method S300 includes adjusting the high-gain level and low-gain levels of the synchronization signals transmitted during a synchronization slot. Generally, the third method S300 includes calculating subsequent high-gain levels and low-gain levels based on previous levels of saturation and SNR recorded at either node. The third method S300 includes calculating high-gain levels such that a high-gain synchronization signal received at the receiving node is recorded with an SNR greater than a threshold SNR and a saturation level lower than a threshold saturation level. The third method S300 calculates low-gain levels such that a low-gain self-receive signal generated from the low-gain synchronization signal received at the transmitting node is recorded with an SNR greater than the threshold SNR and a saturation level lower than the threshold saturation level.
Additionally, the third method S300 can also include integrating additional data in the calculation of the high-gain and low-gain levels, such as positional data from an IMU (e.g. relative position, velocity, acceleration, orientation, angular velocity, and/or angular acceleration) to preemptively adjust gain levels in response to movement of either of the nodes. Additionally, the third method S300 can include measuring the velocity of the nodes relative to each other by measuring a Doppler shift in an incoming signal.
When initiating the gain calibration process for the first time, the third method S300 includes selecting a gain value based on any information regarding the propagation environment between the two nodes (for the high-gain signal) and the gain of the self-receive signal generator. In one example, if the distance between the two nodes and/or the orientation of the antennas of the two nodes have been recorded, then the nodes and/or remote server executing the third method S300 can calculate an initial high-gain level based on a physical model for radiated signal strength. In another example, if the gain of the generated self-receive signal is recorded then the nodes and/or remote server executing the third method S300 can calculate an initial low-gain level by choosing a gain that theoretically satisfies the saturation level threshold and the SNR threshold given the recorded gain of the self-receive signal generator.
After the initial gain levels are calculated and the transmitting node transmits the high-gain synchronization signal and the low-gain synchronization signal at the calculated levels, the high-gain level and the low-gain level are calculated according to FIG. 10 . FIG. 10 is a flow diagram illustrating a series of steps for calculating a high-gain level and a low-gain level for a subsequent high-gain synchronization signal and a subsequent low-gain synchronization signal. The third method S300 includes executing this process iteratively until the saturation threshold and SNR threshold are satisfied at both nodes.
In one implementation, the nodes and/or remote server executing the third method S300 adjust the high-gain level by evaluating a physical model of the propagation environment. Alternatively, the third method S300 can include adjusting the high-gain level by a predefined adjustment amount in a direction necessary to satisfy either the saturation level threshold or the SNR threshold. Likewise, in one implementation, the nodes/and or remote server can adjust the low-gain level by evaluating a model of the DAC, self-receive signal generator, and ADC. Alternatively, the third method S300 an include adjusting the low-gain level by a predefined adjustment amount in the direction necessary to satisfy either the saturation level threshold or the SNR threshold.
However, the adjustments made to the high-gain level and the low-gain level for subsequent synchronization signals can be calculated using any other process that satisfies the saturation level threshold and the SNR threshold at the transmitting and receiving nodes.
3.4 Signal Offset
After the high-gain level and the low-gain level for the subsequent high-gain synchronization signal and the subsequent low-gain synchronization signal have been calculated, the third method S300 includes calculating a signal offset between the high-gain synchronization signal and the low-gain synchronization signal. Generally, the signal offset is calculated based on factors such as: the high-gain level; the low-gain level; the slew rate of the DAC in both nodes, the slew rate of the ADC in both nodes, and/or the transmitter amplifier; and the dynamic range of the DAC and/or ADC of both nodes.
More specifically, the third method S300 includes determining whether the ratio of the high-gain level and the low-gain level exceeds a threshold ratio. If the ratio exceeds the threshold ratio then the gain is modulated at the variable amplifier. If the ratio does not exceed the threshold ratio then the gain is modulated digitally by the FPGA or DSP. After determining whether the gains of the synchronization signals will be modulated by the amplifier or digitally by the FPGA or DSP, the nodes and/or remote server executing the third method S300 calculate the minimum time required to produce each of the synchronization signals at the required gains.
If the gains are modulated at the amplifier, the third method S300 includes dividing the difference between the high-gain level and the low-gain level by the slew rate of the amplifier to determine a minimum signal offset (a small buffer can be added to ensure that the synchronization signals are generated accurately). If the gains are modulated digitally at the FPGA or DSP, then the third method S300 includes determining a minimum slew rate between the DAC of the transmitting node and the ADC of the receiving node (note the transmitting node and receiving node may be the same node in the case of the low-gain synchronization signal because the low-level synchronization signal is self-received). The minimum slew rate is multiplied by the difference between the high-gain level and the low-gain level to determine a minimum signal offset with an optional addition of a small buffer.
In one implementation, when the slew rates or dynamic ranges of the ADC, DAC, and/or amplifier of the transmitting node and/or receiving node are not available, the third method S300 can include calculating the signal offset based estimated slew rates and/or dynamic ranges of the ADC and DAC to substitute for the unavailable slew rates and/or dynamic ranges.
3.5 Gain Recalibration
As shown in FIG. 10 , the third method S300 includes a process for determining when to recalibrate the gain levels of synchronization signals. Generally, the nodes and/or remote server executing the third method S300 can measure and record changes in environmental conditions or whether the saturation threshold or SNR thresholds have not been satisfied by the previous high-gain synchronization signal or low-gain synchronization signal.
More specifically, the third method S300 includes first recording the saturation level and SNR of the synchronization signals from one or more previous synchronization slots and comparing the recorded saturation levels and SNRs to the saturation level threshold and the SNR threshold. In response to detecting that either threshold has not been satisfied for a predetermined number of synchronization slots, the third method S300 can include reinitiating the gain calibration process.
However, if the both the saturation level threshold and the SNR level threshold are satisfied at both nodes, the method includes evaluating environmental criteria to reinitiate the gain calibration process. In one implementation, if one or both of the nodes records greater than a threshold change in positional data (based on IMU data or a Doppler shift detected in a synchronization signal) then the nodes and/or remote server can reinitiate the gain calibration process. Additionally or alternatively, the third method S300 can include reinitiating the gain calibration process in response to a detected change in temperature, humidity, or pressure.
However, the third method S300 can include reinitiating or continuously executing the gain recalibration process in response to any factors or conditions recorded at the transmitting node, receiving node, and/or the remote server.
The systems and methods described herein can be embodied and/or implemented at least in part as a machine configured to receive a computer-readable medium storing computer-readable instructions. The instructions can be executed by computer-executable components integrated with the application, applet, host, server, network, website, communication service, communication interface, hardware/firmware/software elements of a user computer or mobile device, wristband, smartphone, or any suitable combination thereof. Other systems and methods of the embodiment can be embodied and/or implemented at least in part as a machine configured to receive a computer-readable medium storing computer-readable instructions. The instructions can be executed by computer-executable components integrated by computer-executable components integrated with apparatuses and networks of the type described above. The computer-readable medium can be stored on any suitable computer readable media such as RAMs, ROMs, flash memory, EEPROMs, optical devices (CD or DVD), hard drives, floppy drives, or any suitable device. The computer-executable component can be a processor but any suitable dedicated hardware device can (alternatively or additionally) execute the instructions.
As a person skilled in the art will recognize from the previous detailed description and from the figures and claims, modifications and changes can be made to the embodiments of the invention without departing from the scope of this invention as defined in the following claims.

Claims (20)

We claim:
1. A transceiver comprising:
a transmit chain;
a receive chain;
a first clock; and
a processor configured to:
transmit a first calibration signal at a first time-of-departure measured by the first clock; and
transmit a second calibration signal at a second time-of-departure measured by the first clock and succeeding transmission of the first calibration signal by an initial signal interval;
receive a first time-of-arrival of the first calibration signal at a second transceiver, the first time-of-arrival measured by a second clock of the second transceiver;
receive a second time-of-arrival of the second calibration signal at the second transceiver measured by the second clock of the second transceiver;
define a first calibration point, in a first set of calibration points, the first calibration point representing the first time-of-departure and the first time-of-arrival;
define a second calibration point, in the first set of calibration points, the second calibration point representing the second time-of-departure and the second time-of-arrival; and
calculate a first frequency offset between the first clock and the second clock based on the first set of calibration points.
2. The transceiver of claim 1, wherein the processor is further configured to calculate the first frequency offset between the first clock and the second clock by:
calculating a first regression on the first set of calibration points; and
calculating a slope of the first regression and solving for c1−c2 in: β=1+c1−c2, wherein β represents a slope of the first regression, wherein c1 represents a first frequency offset of the first clock from a nominal frequency, and wherein c2 represents a second frequency offset of the second clock from the nominal frequency.
3. The transceiver of claim 2, wherein the processor is further configured to:
calculate a residual of the first regression;
calculate an adjusted signal interval based on the residual of the first regression;
transmit a third calibration signal at a third time-of-departure measured by the first clock;
transmit a fourth calibration signal at a fourth time-of-departure measured by the first clock and succeeding transmission of the third calibration signal by the adjusted signal interval;
receive a third time-of-arrival of the third calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
receive a fourth time-of-arrival of the fourth calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
define a third calibration point in a second set of calibration points, the third calibration point representing the third time-of-departure and the third time-of-arrival;
define a fourth calibration point in the second set of calibration points, the fourth calibration point representing the fourth time-of-departure and the fourth time-of-arrival; and
calculate a second frequency offset between the first clock and the second clock based on the second set of calibration points.
4. The transceiver of claim 3, wherein the processor is further configured to calculate the adjusted signal interval based on residual of the first regression by calculating the adjusted signal interval based on a desired accuracy and the residual of the first regression.
5. The transceiver of claim 4, wherein the processor is further configured to calculate the adjusted signal interval based on a desired accuracy and the residual of the first regression by:
calculating an outlier probability based on a timestamping noise;
calculating a number of calibration signals for an adjusted calibration period based on the desired accuracy and the outlier probability; and
dividing the adjusted calibration period by the number of calibration signals to calculate the adjusted signal interval.
6. The transceiver of claim 2, wherein the processor is further configured to:
transmit a third calibration signal at a third time-of-departure measured by the first clock and succeeding transmission of the first calibration signal by an initial calibration period;
receive a third time-of-arrival of the third calibration signal at the second transceiver measured by the second clock of the second transceiver; and
define a final calibration point of the first set of calibration points, the final calibration point of the first set of calibration points comprising the third time-of-departure and the third time-of-arrival.
7. The transceiver of claim 6, wherein the processor is further configured to:
calculate a timestamping noise of the second clock relative to the first clock based on a residual of the first regression;
calculate an adjusted calibration period based on a desired precision and the timestamping noise;
transmit a fourth calibration signal at a fourth time-of-departure measured by the first clock;
transmit a fifth calibration signal at a fifth time-of-departure measured by the first clock and succeeding transmission of the fourth calibration signal by an adjusted single interval;
transmit a sixth calibration signal at a sixth time-of-departure measured by the first clock and succeeding transmission of the fourth calibration signal by the adjusted calibration period;
receive a fourth time-of-arrival of the fourth calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
receive a fifth time-of-arrival of the fifth calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
receive a sixth time-of-arrival of the sixth calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
define a fourth calibration point in a second set of calibration points, the fourth calibration point representing the fourth time-of-departure and the fourth time-of-arrival;
define a fifth calibration point in the second set of calibration points, the fifth calibration point representing the fifth time-of-departure and the fifth time-of-arrival;
define a sixth calibration point in the second set of calibration points, the sixth calibration point of the second set of calibration points comprising the sixth time-of-departure and the sixth time-of-arrival; and
calculate a second frequency offset between the first clock and the second clock based on the second set of calibration points.
8. The transceiver of claim 7, wherein the processor is further configured to calculate the adjusted calibration period by solving for mmax−mmin in: mmax−mminmax/δ, wherein Δmax represents the timestamping noise, wherein δ represents the desired precision, and wherein mmax−mmin represents the adjusted calibration period.
9. The transceiver of claim 1, wherein the processor is further configured to:
access a first set of clock characteristics of the first clock;
access a second set of clock characteristics of the second clock; and
calculate the initial signal interval based on the first set of clock characteristics and the second set of clock characteristics.
10. The transceiver of claim 1, wherein the processor is further configured to, in response to detecting a change in temperature at the transceiver:
transmit a third calibration signal at a third time-of-departure measured by the first clock;
transmit a fourth calibration signal at a fourth time-of-departure measured by the first clock;
receive a third time-of-arrival of the third calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
receive a fourth time-of-arrival of the fourth calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
define a third calibration point in a second set of calibration points, the third calibration point representing the third time-of-departure and the third time-of-arrival;
define a fourth calibration point in the second set of calibration points, the fourth calibration point representing the fourth time-of-departure and the fourth time-of-arrival; and
calculate a second frequency offset between the first clock and the second clock based on the second set of calibration points.
11. The transceiver of claim 1, wherein the processor is further configured to, in response to detecting motion at the transceiver:
transmit a third calibration signal at a third time-of-departure measured by the first clock;
transmit a fourth calibration signal at a fourth time-of-departure measured by the first clock;
receive a third time-of-arrival of the third calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
receive a fourth time-of-arrival of the fourth calibration signal at the second transceiver measured by the second clock of the second transceiver adjusted by the first frequency offset;
define a third calibration point in a second set of calibration points, the third calibration point representing the third time-of-departure and the third time-of-arrival;
define a fourth calibration point in the second set of calibration points, the fourth calibration point representing the fourth time-of-departure and the fourth time-of-arrival; and
calculate a second frequency offset between the first clock and the second clock based on the second set of calibration points.
12. The transceiver of claim 1, wherein the processor is further configured to:
transmit the first calibration signal at the first time-of-departure measured by the first clock of the first transceiver by transmitting the first calibration signal at a first phase-of-departure measured by the first clock of the first transceiver, the first phase-of-departure, ∠1,1, equal to 2πfcT1,1 mod 2π, wherein:
T1,1 represents the first time-of-departure; and
fc represents a carrier frequency of the first calibration signal;
transmit the second calibration signal at the second time-of-departure measured by the first clock and succeeding the first time-of-departure by an initial signal interval comprises transmitting the second calibration signal at a second phase-of-departure measured by the first clock, the second phase-of-departure, ∠2,1, equal to 2πfcT2,1 mod 2π, wherein T2,1 represents the second time-of-departure;
receive the first time-of-arrival of the first calibration signal at the second transceiver, the first time-of-arrival measured by the second clock of the second transceiver by receiving a first phase-of-arrival of the first calibration signal at the second transceiver measured by the second clock of the second transceiver, the first phase-of-arrival, ∠1,2, equal to 2πfcT1,2 mod 2π, wherein T1,2 represents the first phase-of-arrival; and
receive the second time-of-arrival of the second calibration signal at the second transceiver, the second time-of-arrival measured by the second clock of the second transceiver by receiving a second phase-of-arrival of the second calibration signal at the second transceiver measured by the second clock of the second transceiver, the second phase-of-arrival, ∠2,2, equal to 2πfcT2,2 mod 2π, wherein T2,2 represents the second phase-of-arrival.
13. The transceiver of claim 12, wherein the processor is further configured to:
for each carrier frequency, fc, in a range of carrier frequencies, calculating ∠1,1, ∠2,1, ∠1,2, and ∠2,2;
define the first calibration point, in the first set of calibration points, the first calibration point representing the first phase-of-departure and the first phase-of-arrival by, for each carrier frequency, fc, in the range of carrier frequencies, defining the first calibration point, in the first set of calibration points as (∠1,1, ∠1,2);
define a second calibration point, in the first set of calibration points, the second calibration point representing the second phase-of-departure and the second phase-of-arrival by, for each carrier frequency, fc, in the range of carrier frequencies, defining the second calibration point, in the first set of calibration points as (∠2,1, ∠2,2); and
calculate the first frequency offset between the first clock and the second clock based on the first set of calibration points by calculating the first frequency offset between the first clock and the second clock based on the first set of calibration points for each carrier frequency, fc, in the range of carrier frequencies.
14. The transceiver of claim 1, wherein the first clock comprises a crystal oscillator clock.
15. The transceiver of claim 1, wherein the processor is further configured to compensate the first clock by the first frequency offset.
16. A server comprising a processor configured to:
schedule transmission, from a first transceiver, of a first calibration signal at a first time-of-departure measured by a first clock of the first transceiver;
schedule transmission, from the first transceiver, of a second calibration signal at a second time-of-departure measured by the first clock and succeeding transmission of the first calibration signal by an initial signal interval;
receive, from a second transceiver, a first time-of-arrival measured by a second clock of the second transceiver, the first time-of-arrival corresponding to reception of the first calibration signal at the second transceiver;
receive, from the second transceiver, a second time-of-arrival measured by the second clock, the second time-of-arrival corresponding to reception of the second calibration signal at the second transceiver;
define a first calibration point in a first set of calibration points, the first calibration point representing the first time-of-departure and the first time-of-arrival;
define a second calibration point in the first set of calibration points, the second calibration point representing the second time-of-departure and the second time-of-arrival; and
calculating a first frequency offset between the first clock and the second clock based on the first set of calibration points.
17. The server of claim 16, wherein the processor is further configured to schedule a data transfer slot for the first transceiver, the data transfer slot characterized by a slot duration less than the initial signal interval by at least a duration of the first calibration signal.
18. The server of claim 16, wherein the processor is further configured to:
schedule transmission, from the first transceiver, of the first calibration signal at the first time-of-departure by scheduling transmission, from the first transceiver, of the first calibration signal at the first time-of-departure during a transmission slot at the first transceiver;
schedule transmission, from the first transceiver, of the second calibration signal at the second time-of-departure by scheduling transmission, from the first transceiver, of the second calibration signal at the second time-of-departure during the transmission slot at the first transceiver; and
schedule, at the second transceiver, a reception slot spanning the transmission slot at the first transceiver.
19. The server of claim 16, wherein the processor is further configured to:
receive, from a third transceiver, a third time-of-arrival measured by a third clock of the third transceiver, the third time-of-arrival corresponding to reception of the first calibration signal at the third transceiver;
receive, from the third transceiver, a fourth time-of-arrival measured by the third clock, the fourth time-of-arrival corresponding to reception of the second calibration signal at the third transceiver;
define a third calibration point in a second set of calibration points, the third calibration point representing the first time-of-departure and the third time-of-arrival;
define a fourth calibration point in the second set of calibration points, the fourth calibration point representing the second time-of-departure and the fourth time-of-arrival; and
calculate a second frequency offset between the first clock and the third clock based on the second set of calibration points.
20. The server of claim 16, wherein the processor is further configured to:
calculating a first regression based on the first set of calibration points;
calculate a timestamping noise of the second clock relative to the first clock based on a residual of the first regression;
calculate an adjusted signal interval based on the timestamping noise;
schedule transmission, from the first transceiver, of a third calibration signal at a third time-of-departure measured by the first clock;
schedule transmission, from the first transceiver, of a fourth calibration signal at a fourth time-of-departure measured by the first clock and succeeding transmission of the third calibration signal by the adjusted signal interval;
receive, from a third transceiver, a third time-of-arrival measured by a third clock of the third transceiver, the third time-of-arrival corresponding to reception of the third calibration signal at the third transceiver;
receive, from the third transceiver, a fourth time-of-arrival measured by the third clock, the fourth time-of-arrival corresponding to reception of the fourth calibration signal at the third transceiver;
define a third calibration point in a second set of calibration points, the third calibration point representing the third time-of-departure and the third time-of-arrival;
define a fourth calibration point in the second set of calibration points, the fourth calibration point representing the fourth time-of-departure and the fourth time-of-arrival; and
calculate a second frequency offset between the first clock and the third clock based on the second set of calibration points.
US17/586,241 2018-09-28 2022-01-27 Frequency and gain calibration for time synchronization in a network Active US11632226B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/586,241 US11632226B1 (en) 2018-09-28 2022-01-27 Frequency and gain calibration for time synchronization in a network
US18/113,542 US11909852B1 (en) 2018-09-28 2023-02-23 Frequency and gain calibration for time synchronization in a network

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201862738889P 2018-09-28 2018-09-28
US16/588,722 US10911211B1 (en) 2018-09-28 2019-09-30 Frequency and gain calibration for time synchronization in a network
US17/135,566 US11271709B1 (en) 2018-09-28 2020-12-28 Frequency and gain calibration for time synchronization in a network
US17/586,241 US11632226B1 (en) 2018-09-28 2022-01-27 Frequency and gain calibration for time synchronization in a network

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US17/135,566 Continuation US11271709B1 (en) 2018-05-07 2020-12-28 Frequency and gain calibration for time synchronization in a network

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/113,542 Continuation US11909852B1 (en) 2018-09-28 2023-02-23 Frequency and gain calibration for time synchronization in a network

Publications (1)

Publication Number Publication Date
US11632226B1 true US11632226B1 (en) 2023-04-18

Family

ID=74260860

Family Applications (4)

Application Number Title Priority Date Filing Date
US16/588,722 Active US10911211B1 (en) 2018-05-07 2019-09-30 Frequency and gain calibration for time synchronization in a network
US17/135,566 Active US11271709B1 (en) 2018-05-07 2020-12-28 Frequency and gain calibration for time synchronization in a network
US17/586,241 Active US11632226B1 (en) 2018-09-28 2022-01-27 Frequency and gain calibration for time synchronization in a network
US18/113,542 Active US11909852B1 (en) 2018-09-28 2023-02-23 Frequency and gain calibration for time synchronization in a network

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US16/588,722 Active US10911211B1 (en) 2018-05-07 2019-09-30 Frequency and gain calibration for time synchronization in a network
US17/135,566 Active US11271709B1 (en) 2018-05-07 2020-12-28 Frequency and gain calibration for time synchronization in a network

Family Applications After (1)

Application Number Title Priority Date Filing Date
US18/113,542 Active US11909852B1 (en) 2018-09-28 2023-02-23 Frequency and gain calibration for time synchronization in a network

Country Status (1)

Country Link
US (4) US10911211B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11909852B1 (en) * 2018-09-28 2024-02-20 ZaiNar, Inc. Frequency and gain calibration for time synchronization in a network

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11686805B1 (en) 2016-07-10 2023-06-27 ZaiNar, Inc. Method and system for radiofrequency localization of transmitting devices via a mesh network
US10833840B2 (en) 2018-05-07 2020-11-10 ZaiNar, Inc. Methods for nanosecond-scale time synchronization over a network
US11658798B1 (en) 2018-05-07 2023-05-23 ZaiNar, Inc. Methods for time synchronization and localization in a mesh network
EP3703241B1 (en) * 2019-02-26 2022-07-13 Hitachi Energy Switzerland AG Communication in a converter device
US11644314B2 (en) * 2019-03-28 2023-05-09 Phasorlab, Inc. Synthetic mega gyroscope
CN113472468B (en) * 2020-03-31 2023-04-07 华为技术有限公司 Synchronization method, device, equipment and storage medium
US11063738B1 (en) * 2020-04-27 2021-07-13 Equinix, Inc. Time synchronization using a weighted regression analysis
US11350409B2 (en) * 2020-05-14 2022-05-31 At&T Intellectual Property I, L.P. Radio resource management for full-duplex operation of integrated access and backhaul for 5G or other next generation network
US11956744B2 (en) * 2021-03-30 2024-04-09 Crystal Instruments Corporation Sampling synchronization through GPS signals
EP4106275A1 (en) * 2021-06-18 2022-12-21 Rohde & Schwarz GmbH & Co. KG Jitter determination method, jitter determination module, and packet-based data stream receiver
CN114142957B (en) * 2021-11-06 2024-04-26 中国电子科技集团公司第五十四研究所 Remote time-frequency equipment testing method
EP4199384A1 (en) * 2021-12-14 2023-06-21 u-blox AG Method and apparatus for determining a clock frequency offset
US20230379666A1 (en) 2022-04-20 2023-11-23 ZaiNar, Inc. System and methods for asset tracking, asset grouping, and error recovery

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060215583A1 (en) 2005-03-23 2006-09-28 Cisco Technology, Inc. Slot-based transmission synchronization mechanism in wireless mesh networks
US20090232113A1 (en) 2008-03-17 2009-09-17 Tsuyoshi Tamaki Wireless communication system, base station and transmission timing control method
US20130322426A1 (en) 2012-05-30 2013-12-05 University Of Southern California Timing synchronization of wireless networks
US20150295702A1 (en) 2012-11-29 2015-10-15 Nec Corporation Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
US20160099700A1 (en) 2014-10-03 2016-04-07 Armin Tavakol CMOS Tuner And Related Tuning Algorithm For A Passive Adaptive Antenna Matching Network Suitable For Use With Agile RF Transceivers
US20160127066A1 (en) * 2014-11-03 2016-05-05 Qualcomm Incorporated Relative clock drift calibration for channel stitching
US20190199286A1 (en) * 2017-12-22 2019-06-27 Wiser Systems, Inc. Methods for Correcting Oscillator Offsets in Ultra-Wideband (UWB) Networks
US20210006389A1 (en) 2018-05-07 2021-01-07 ZaiNar, Inc. Methods for nanosecond-scale time synchronization over a network
US10903915B1 (en) 2018-12-18 2021-01-26 ZaiNar, Inc. System for generating accurate reference signals for time-of-arrival based time synchronization
US20210243713A1 (en) 2018-09-28 2021-08-05 Intel IP Corporation Methods and devices for communications in device-to-device networks

Family Cites Families (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5828670A (en) 1995-06-06 1998-10-27 Symmetricom, Inc. Distribution of synchronization in a synchronous optical environment
US5920287A (en) 1997-01-21 1999-07-06 Widata Corporation Radio location system for precisely tracking objects by RF transceiver tags which randomly and repetitively emit wideband identification signals
US6237051B1 (en) 1997-07-24 2001-05-22 Data Capture Institute Asset tracking within and across enterprise boundaries
US6040805A (en) 1998-05-08 2000-03-21 Antcom Corp. Low profile ceramic choke
GB2353910A (en) 1999-09-03 2001-03-07 Ibm Asset tracking using local beacons
US6490727B1 (en) * 1999-10-07 2002-12-03 Harmonic, Inc. Distributed termination system for two-way hybrid networks
US6920287B1 (en) 2000-08-01 2005-07-19 Nortel Networks Limited Smart connect
US6445927B1 (en) 2000-09-18 2002-09-03 Motorola, Inc. Method and apparatus for calibrating base station locations and perceived time bias offsets in an assisted GPS transceiver
US7688349B2 (en) 2001-12-07 2010-03-30 International Business Machines Corporation Method of detecting and tracking groups of people
FR2840756B1 (en) 2002-06-06 2004-12-17 Cit Alcatel METHOD FOR SYNCHRONIZING DECT BASE STATIONS INTERCONNECTED VIA AN IP ARCHITECTURE LAN NETWORK
US7839916B1 (en) 2003-10-08 2010-11-23 L-3 Communications Corporation Systems and methods for communication in a global positioning system (GPS) device
US7302269B1 (en) 2004-03-18 2007-11-27 Cisco Technology, Inc. Radiolocation in a wireless network using time difference of arrival
US7499423B1 (en) 2004-06-10 2009-03-03 Cisco Technology, Inc. (Us) System and method for clock distribution and synchronization and radio location
US7477191B2 (en) * 2006-03-03 2009-01-13 Cisco Technology, Inc. System and method for performing time difference of arrival location without requiring a common time base or clock calibration
US8223009B2 (en) 2006-05-15 2012-07-17 TRACK America Mobile asset tracking system and method
US7843335B2 (en) 2007-03-13 2010-11-30 Blackbird Technologies, Inc. Mobile asset tracking unit, system and method
US8300615B2 (en) 2008-04-04 2012-10-30 Powerwave Cognition, Inc. Synchronization of time in a mobile ad-hoc network
US8010267B2 (en) 2008-10-31 2011-08-30 General Electric Company Methods and system for time of arrival control using available speed authority
US8102784B1 (en) 2009-02-18 2012-01-24 Dust Networks, Inc. Localization in a network
BR112012002103B1 (en) 2009-07-29 2021-05-04 Mix Telematics International (Proprietary) Limited asset tracking system, mobile base station module and asset tracking method
US8314704B2 (en) 2009-08-28 2012-11-20 Deal Magic, Inc. Asset tracking using alternative sources of position fix data
US8674822B2 (en) 2010-06-04 2014-03-18 Microsoft Corporation Low-cost high-fidelity asset tracking in data center facilities
EP2525236B1 (en) 2011-05-16 2017-08-02 Nanotron Technologies GmbH Method and System for multipath reduction for wireless synchronizing and/or locating
US9945940B2 (en) 2011-11-10 2018-04-17 Position Imaging, Inc. Systems and methods of wireless position tracking
EP3139193A1 (en) 2012-06-05 2017-03-08 NextNav, LLC Systems and methods for location positioning of user device
US9734480B2 (en) 2012-08-23 2017-08-15 Nokia Technologies Oy Method and apparatus for secure asset tracking
US9253594B2 (en) 2013-03-06 2016-02-02 Qualcomm Incorporated Dynamic characterization of mobile devices in network-based wireless positioning systems
US9110157B2 (en) 2013-03-12 2015-08-18 Intel Corporation Using multiple sources of location-aid data to determine position information
US9160473B2 (en) * 2013-03-13 2015-10-13 Microsemi Frequency And Time Corporation Asymmetry correction for precise clock synchronization over optical fiber
US20140288996A1 (en) 2013-03-14 2014-09-25 Digital River, Inc. Technology asset tracking system and method
US10237836B2 (en) 2014-06-09 2019-03-19 Parallel Wireless, Inc. Frequency and phase synchronization using full duplex radios over wireless mesh networks
JP6553202B2 (en) 2015-03-17 2019-07-31 テレフオンアクチーボラゲット エルエム エリクソン(パブル) Synchronization in wireless communication networks
CN104968043B (en) 2015-04-29 2018-04-27 重庆邮电大学 A kind of clock synchronizing frequency deviation estimating method suitable for WIA-PA network
US10627474B1 (en) 2016-07-10 2020-04-21 ZaiNar, Inc. Method and system for radiofrequency localization of transmitting devices via a mesh network
US10455350B2 (en) 2016-07-10 2019-10-22 ZaiNar, Inc. Method and system for radiolocation asset tracking via a mesh network
RU2727176C1 (en) 2016-09-30 2020-07-21 Телефонактиеболагет Лм Эрикссон (Пабл) Node for radio network and method of operation
US10939400B2 (en) 2017-12-19 2021-03-02 Qualcomm Incorporated Time synchronization techniques for wireless communications
US10778473B2 (en) 2018-03-12 2020-09-15 Qualcomm Incorporated Coverage mode based observed time difference of arrival positioning
US10911211B1 (en) * 2018-09-28 2021-02-02 ZaiNar, Inc. Frequency and gain calibration for time synchronization in a network
US11442135B2 (en) 2018-05-31 2022-09-13 Qualcomm Incorporated Positioning methods for wireless networks that utilize beamformed communication
US11317414B2 (en) 2018-06-05 2022-04-26 Qualcomm Incorporated Exchanging location information of a base station that is associated with a plurality of different transmission point locations
US10944659B2 (en) 2018-10-05 2021-03-09 Qualcomm Incorporated Delay spread and average delay quasi-collocation sources for positioning reference signals

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060215583A1 (en) 2005-03-23 2006-09-28 Cisco Technology, Inc. Slot-based transmission synchronization mechanism in wireless mesh networks
US20090232113A1 (en) 2008-03-17 2009-09-17 Tsuyoshi Tamaki Wireless communication system, base station and transmission timing control method
US20130322426A1 (en) 2012-05-30 2013-12-05 University Of Southern California Timing synchronization of wireless networks
US20150295702A1 (en) 2012-11-29 2015-10-15 Nec Corporation Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
US20160099700A1 (en) 2014-10-03 2016-04-07 Armin Tavakol CMOS Tuner And Related Tuning Algorithm For A Passive Adaptive Antenna Matching Network Suitable For Use With Agile RF Transceivers
US20160127066A1 (en) * 2014-11-03 2016-05-05 Qualcomm Incorporated Relative clock drift calibration for channel stitching
US20190199286A1 (en) * 2017-12-22 2019-06-27 Wiser Systems, Inc. Methods for Correcting Oscillator Offsets in Ultra-Wideband (UWB) Networks
US20210006389A1 (en) 2018-05-07 2021-01-07 ZaiNar, Inc. Methods for nanosecond-scale time synchronization over a network
US20210243713A1 (en) 2018-09-28 2021-08-05 Intel IP Corporation Methods and devices for communications in device-to-device networks
US10903915B1 (en) 2018-12-18 2021-01-26 ZaiNar, Inc. System for generating accurate reference signals for time-of-arrival based time synchronization
US10903866B1 (en) 2018-12-18 2021-01-26 ZaiNar, Inc. System for generating accurate reference signals for time-of-arrival based time synchronization

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
International Search Report and Written Opinion from International Application No. PCT/US22/25828, 10 pages.
Non-Final Office Action for U.S. Appl. No. 17/338,543 dated May 12, 2022.
Non-Final Office Action from U.S. Appl. No. 16/862,080 dated May 6, 2022.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11909852B1 (en) * 2018-09-28 2024-02-20 ZaiNar, Inc. Frequency and gain calibration for time synchronization in a network

Also Published As

Publication number Publication date
US11909852B1 (en) 2024-02-20
US10911211B1 (en) 2021-02-02
US11271709B1 (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US11632226B1 (en) Frequency and gain calibration for time synchronization in a network
US12081643B2 (en) Methods for nanosecond-scale time synchronization over a network
US10859666B1 (en) Method and system for radiofrequency localization of transmitting devices via a mesh network
US11658798B1 (en) Methods for time synchronization and localization in a mesh network
US8102784B1 (en) Localization in a network
US11187775B2 (en) Time of arrival (TOA) measurements
JP6876794B2 (en) Positioning based on telegram division
US8837530B2 (en) Method and system for adaptive synchronization of timing information generated by independently clocked communication nodes
Thorbjornsen et al. Radio frequency (RF) time-of-flight ranging for wireless sensor networks
US11804871B2 (en) Systems and methods for synchronizing time, frequency, and phase among a plurality of devices
KR101836837B1 (en) METHOD FOR Time difference compensation in positioning system and positioning system therefor
Dotlic et al. Ranging methods utilizing carrier frequency offset estimation
Bidigare et al. Initial over-the-air performance assessment of ranging and clock synchronization using radio frequency signal exchange
US11252687B2 (en) Remote signal synchronization
US20220239541A1 (en) Sub-nanosecond rf synchronization for mimo software defined radio sensor networks
Pelka et al. S-TDoA—Sequential time difference of arrival—A scalable and synchronization free approach forl positioning
JP2020535772A (en) Methods for wireless measurement applications
WO2022226233A1 (en) Methods for time synchronization and localization in a mesh network
Vashistha et al. E-DTDOA based localization for wireless sensor networks with clock drift compensation
EP4431982A1 (en) Method of time-of-flight ranging between wireless devices
Yan et al. Asynchronous differential TDOA for non-GPS navigation using signals of opportunity
US20230280439A1 (en) Method and system for radiofrequency localization of transmitting devices via a mesh network
US7359711B2 (en) Methods and apparatus for improving accuracy of radio timing measurements
CN111077513B (en) Method and system for realizing timing positioning based on chirp spread spectrum
US7327314B2 (en) Two-way ranging between radio transceivers

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO SMALL (ORIGINAL EVENT CODE: SMAL); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

STCF Information on status: patent grant

Free format text: PATENTED CASE