# US 2025/0219752 A1 · Method of clock synchronization between transmitter and receiver

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0219752 A1
- Document ID: US20250219752A1
- Status: Published application
- Kind: A1
- Application number: 18/398,163
- Filed: 2023-12-28
- Published: 2025-07-03
- Earliest claimed: 2023-12-28
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Yu-Shen Chou; Ko-Yin Lai; Chih-Kang Hsu
- Web page: https://patentgrep.com/patent/US20250219752A1

## CPC

- H04J 3/0667: {Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays (arrangements for monitoring round trip delays in packet switching networks H04L43/0864)}
- H04J 3/0617: {the synchronising signal being characterised by the frequency or phase}
- H04W 56/001: {Synchronization between nodes}
- H04W 56/0015: {one node acting as a reference for the others}
- H04J: MULTIPLEX COMMUNICATION (transmission in general H04B; peculiar to transmission of digital information H04L5/00; systems for the simultaneous or sequential transmission of more than one television signal H04N7/08; in exchanges H04Q11/00; stereophonic systems H04S)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A method of clock synchronization between a transmitter and a receiver includes sampling a first receiver timestamp and a second receiver timestamp of the receiver at a first time and a second time respectively, sampling a first transmitter timestamp and a second transmitter timestamp of the transmitter at a third time and a fourth time respectively, sampling a first timing synchronization function (TSF) receiver timestamp and a second TSF receiver timestamp by a Wi-Fi TSF at the first time and the second time respectively, sampling a first TSF transmitter timestamp and a second TSF transmitter timestamp by the Wi-Fi TSF at the third time and the fourth time respectively, generating an initial timestamp, generating an initial TSF timestamp, generating a target phase difference, and performing a coarse tune at a receiver system clock periodically to compensate the target phase difference.

## Claims

### Claim 1

A method of clock synchronization between a transmitter and a receiver, comprising:
sampling a first receiver timestamp and a second receiver timestamp of the receiver at a first time and a second time respectively;
sampling a first transmitter timestamp and a second transmitter timestamp of the transmitter at a third time and a fourth time respectively;
sampling a first timing synchronization function (TSF) receiver timestamp and a second TSF receiver timestamp by a Wi-Fi TSF at the first time and the second time respectively;
sampling a first TSF transmitter timestamp and a second TSF transmitter timestamp by the Wi-Fi TSF at the third time and the fourth time respectively;
generating an initial timestamp according to the first receiver timestamp and the first transmitter timestamp;
generating an initial TSF timestamp according to the first TSF receiver timestamp and the first TSF transmitter timestamp;
generating a target phase difference according to the initial timestamp, the initial TSF timestamp, the first receiver timestamp, the second receiver timestamp, the first TSF receiver timestamp, the second TSF receiver timestamp, the second TSF transmitter timestamp, and the second transmitter timestamp; and
performing a coarse tune at a receiver system clock periodically to compensate the target phase difference.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the initial timestamp according to the first receiver timestamp and the first transmitter timestamp is subtracting the first transmitter timestamp from the first receiver timestamp to generate the initial timestamp.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the initial TSF timestamp according to the first TSF receiver timestamp and the first TSF transmitter timestamp is subtracting the first TSF transmitter timestamp from the first TSF receiver timestamp to generate the initial timestamp.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the target phase difference according to the initial timestamp, the initial TSF timestamp, the first receiver timestamp, the second receiver timestamp, the first TSF receiver timestamp, the second TSF receiver timestamp, the second TSF transmitter timestamp, and the second transmitter timestamp is:
Target
⁢
Phase
⁢
Difference
=
(
R
1
-
T
INI
)
+
(
R
2
-
R
1
)
*
T
⁢
S
⁢
F
T
⁢
2
-
(
T
⁢
S
⁢
F
R
⁢
1
-
T
⁢
S
⁢
F
INI
)
T
⁢
S
⁢
F
R
⁢
2
-
T
⁢
S
⁢
F
R
⁢
1
-
T
2
wherein:
R1 is the first receiver timestamp;
R2 is the second receiver timestamp;
TINI is the initial timestamp;
TSFT2 is the second TSF transmitter timestamp;
TSFR1 is the first TSF receiver timestamp;
TSFINI is the initial TSF timestamp;
TSFR2 is the second TSF receiver timestamp; and
T2 is the second transmitter timestamp.

### Claim 5 (depends on 4)

The method of claim 4 wherein the coarse tune is performed according to a following equation:
Coarse
⁢
tune
=
Target
⁢
Phase
⁢
Difference
(
TS
⁢
F
T
⁢
2
-
TSF
T
⁢
1
)
*
Tf
×
TSFf
wherein:
TSFT1 is the first TSF transmitter timestamp;
Tf is a frequency of a system clock; and
TSFf is a frequency of a TSF clock.

### Claim 6 (depends on 5)

The method of claim 5, wherein the frequency of the system clock is about 10 MHz, and the frequency of the TSF clock is about 1 MHZ.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
sampling an ith receiver timestamp and an (i−1)th receiver timestamp by a receiver system clock at an ith time and an (i−1)th time respectively;
sampling an ith transmitter timestamp and an (i−1)th transmitter timestamp by a transmitter system clock at a jth time and a (j−1)th time respectively;
sampling an ith TSF receiver timestamp and an (i−1)th TSF receiver timestamp by the Wi-Fi TSF at the ith time and the (i−1)th time respectively;
sampling an ith TSF transmitter timestamp and an (i−1)th TSF transmitter timestamp by the Wi-Fi TSF at the jth time and the (j−1)th time respectively;
generating a phase difference according to the initial timestamp, the initial TSF timestamp, the ith receiver timestamp, the (i−1)th receiver timestamp, the ith TSF transmitter timestamp, the ith TSF receiver timestamp, the (i−1)th TSF receiver timestamp and the ith transmitter timestamp;
generating first differences between the target phase difference and phase differences;
applying a loop filter to filter the first differences to an average difference; and
performing a fine tune at receiver system clock periodically to compensate the average difference;
wherein i and j are integers larger than 2.

### Claim 8 (depends on 7)

The method of claim 7, wherein generating the phase difference according to the initial timestamp, the initial TSF timestamp, the ith receiver timestamp, the (i−1)th receiver timestamp, the ith TSF transmitter timestamp, the ith TSF receiver timestamp, the (i−1)th TSF receiver timestamp and the ith transmitter timestamp is:
Phase
⁢
Diff
=
(
R
i
-
1
-
T
INI
)
+
(
R
i
-
R
i
-
1
)
*
T
⁢
S
⁢
F
T
i
-
(
T
⁢
S
⁢
F
R
i
-
1
-
T
⁢
S
⁢
F
INI
)
T
⁢
S
⁢
F
R
i
-
T
⁢
S
⁢
F
R
i
-
1
-
T
i
wherein:
Ri-1 is the (i−1)th receiver timestamp;
Ri is the ith receiver timestamp;
TSFTi is the ith TSF transmitter timestamp;
TSFRi-1 is the (i−1)th TSF receiver timestamp;
TSFRi is the ith TSF receiver timestamp; and
Ti is the ith transmitter timestamp.

### Claim 9 (depends on 8)

The method of claim 8, wherein generating the first differences between the target phase difference and the phase differences comprises subtracting the target phase difference from the phase difference to generate a first difference.

### Claim 10 (depends on 9)

The method of claim 9, wherein the fine tune is performed according to a following equation:
fine
⁢
tune
=
∑
i
=
j
j
+
n
-
1
⁢
f
⁢
d
i
(
T
⁢
S
⁢
F
T
i
-
T
⁢
S
⁢
F
T
i
-
1
)
×
Tf
×
n
×
TSFf
wherein:
fdi is an ith first difference;
TSFTi-1 is an (i−1)th TSF transmitter timestamp;
Tf is a frequency of a system clock;
TSFf is a frequency of a TSF clock; and
n is an integer greater than 0.

### Claim 11 (depends on 10)

The method of claim 10, wherein the frequency of the system clock is about 10 MHz, and the frequency of the TSF clock is about 1 MHz.

### Claim 12 (depends on 7)

The method of claim 7, further comprising discarding the ith transmitter timestamp and the ith TSF transmitter timestamp when a following condition is satisfied:
|
T
⁢
S
⁢
F
T
i
-
T
⁢
S
⁢
F
T
i
-
1
-
T
o
⁢
b
|
>
⁢
threshold
wherein:
TSFTi is the ith TSF transmitter timestamp;
TSFTi-1 is an (i−1)th TSF transmitter timestamp; and
Tob is a time duration for observing transmitter timestamps.

### Claim 13 (depends on 1)

The method of claim 1, wherein receiver timestamps and transmitter timestamps are sampled at a frequency of 5 Hz.

### Claim 14

A method of clock synchronization between a transmitter and a receiver via a wireless communication protocol, comprising:
sampling at least two transmitting timestamps at the transmitter periodically in a reference time domain of the wireless communication protocol, the at least two transmitting timestamps being sampled at different time points and separated by a predetermined interval one after another;
sampling at least two receiving timestamps at the receiver in the reference time domain of the wireless communication protocol; and
adjusting a system clock frequency at the receiver according to an offset derived from the at least two transmitting timestamps, at least timestamps and the predetermined interval.

### Claim 15 (depends on 14)

The method of claim 14 further comprising performing a coarse tune at the receiver system clock periodically to compensate the offset.

### Claim 16 (depends on 14)

The method of claim 14 further comprising performing a fine tune at the receiver system clock periodically to compensate the offset.
