# US 2023/0155807 A1 · Clock quartz oscillator synchronization method, apparatus and system

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

- Number: US 2023/0155807 A1
- Document ID: US20230155807A1
- Status: Published application
- Kind: A1
- Application number: 18/086,928
- Filed: 2022-12-22
- Published: 2023-05-18
- Earliest claimed: 2021-11-13
- Assignees: Kingfar International Inc.
- Applicants: Kingfar International Inc.
- Inventors: Qichao ZHAO; Ran YANG
- Web page: https://patentgrep.com/patent/US20230155807A1

## 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)}
- H04L 7/0037: {Delay of clock signal}
- G06F 1/12: Synchronisation of different clock signals {provided by a plurality of clock generators}
- 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)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present application relates to a clock quartz oscillator synchronization method, system and apparatus, in which the method includes, when a calculation unit is in network connection, calculating a first deviation between a calculation unit time and a network clock time; updating a fundamental deviation according to the first deviation; updating the calculation unit time and calculating an actual refresh frequency of the calculation unit according to the fundamental deviation; calculating a second deviation between the calculation unit time and a sensor time; and according to the second deviation, updating the sensor time and calculating an actual interruption frequency of the sensor. The present application provides a synchronization method for calculation, estimation, correction, compensation of time deviation caused by the clock quartz oscillator, which has a benefit of time deviation reduction when one or more sensors are in data exchange with one or more calculation units.

## Claims

### Claim 1

A clock quartz oscillator synchronization method, comprising:
when a calculation unit is in network connection, calculating a first deviation between a calculation unit time and a network clock time;
updating a fundamental deviation based on the first deviation;
updating the calculation unit time and calculating an actual refresh frequency of the calculation unit based on the fundamental deviation;
calculating a second deviation between the calculation unit time and a sensor time; and
updating the sensor time and calculating an actual interruption frequency of a sensor based on the second deviation.

### Claim 2 (depends on 1)

The clock quartz oscillator synchronization method according to claim 1, wherein calculating a first deviation between a calculation unit time and a network clock time comprises:
calculating and recording a network delay at intervals of a first preset time; and
calculating the first deviation between the calculation unit time and the network clock time based on the network delay at intervals of a second preset time.

### Claim 3 (depends on 2)

The clock quartz oscillator synchronization method according to claim 2, wherein, calculating and recording a network delay at intervals of a first preset time comprises:
sending a request to a network clock, and recording a request sending time T1;
receiving a response from the network clock, recording a response receiving time T4, a request receiving time T2, and a response sending time T3; wherein,
the request receiving time T2 is a time when the network clock receives the request, the response sending time T3 is a time when the network clock returns the response; and
calculating the network delay d=(T2−T1)+(T4−T3).

### Claim 4 (depends on 2)

The clock quartz oscillator synchronization method according to claim 2, wherein calculating the first deviation between the calculation unit time and the network clock time based on the network delay at intervals of a second preset time comprises:
sorting all network delays d during the second preset time in ascending order to obtain a delay data set, and counting a total amount of the all network delays d during the second preset time as n;
establishing a fundamental data set by, starting from an
n
8
-th network delay d, continuously acquiring
n
2
values of the network delays in the delay data set;
based on the fundamental data set, calculating an operation frequency and a drift frequency corresponding to each network delay d in the fundamental data set, and obtain an operation frequency difference set and a drift frequency difference set; and
determining a first deviation fitting line based on the operation frequency difference set and the drift frequency difference set, calculating a first gradient of the first deviation fitting line, and calculating the first deviation based on the first gradient.

### Claim 5 (depends on 1)

The clock quartz oscillator synchronization method according to claim 1, wherein calculating a second deviation between the calculation unit time and a sensor time comprises:
obtaining a data sending time every time the sensor sends data and a data receiving time at which the calculation unit receives the data, and calculating a first difference value between each of the data receiving time and each of the data sending time;
determining a maximum value of the first difference value within a third preset time at intervals of the third preset time; and
at intervals of a fourth preset time, based on a maximum value of the first difference value in each of the third preset time and a data sending time corresponding to the maximum value of the first difference value, calculating the second deviation between the sensor time and the calculation unit time, wherein the fourth preset time comprises a plurality of the third preset times.

### Claim 6 (depends on 5)

The clock quartz oscillator synchronization method according to claim 5, wherein, at intervals of a fourth preset time, based on a maximum value of the first difference value in each of the third preset time and a data sending time corresponding to the maximum value of the first difference value, calculating the second deviation between the sensor time and the calculation unit time comprises:
in the fourth preset time, based on the maximum value of the first difference value in each of the third preset time and the data sending time corresponding to the maximum value of the first difference value, determining a first difference value set and a data sending time set; and
determining a second deviation fitting line based on the first difference value set and the data sending time set, calculating a second gradient of the second deviation fitting line, and calculating the second deviation based on the second gradient.

### Claim 7 (depends on 1)

The clock quartz oscillator synchronization method according to claim 1, wherein, calculating an actual interruption frequency of a sensor comprises:
calculating an initial interruption time interval t1 based on an initial interruption frequency f0;
calculating an actual interruption time interval t2 based on the initial interruption time interval t1 and the second deviation x2; wherein, the actual interruption time interval t2=t1+x2×106; and
calculating the actual interruption frequency f1 based on the actual interruption time interval t2; wherein, the actual interruption frequency
f
1
=
1
t
2
.

### Claim 8 (depends on 1)

A clock quartz oscillator synchronization apparatus, comprising: a processor, a memory with a computer program stored thereon, wherein the computer program is configured to be executed by the processor to implement the clock quartz oscillator synchronization method according to claim 1.

### Claim 9 (depends on 8)

A clock quartz oscillator synchronization system, comprising: the sensor, the calculation unit and the clock quartz oscillator synchronization apparatus according to claim 8; wherein,
the sensor is configured to measure and send data to be processed;
the calculation unit is configured to receive the data to be processed from the sensor;
the clock quartz oscillator synchronization apparatus is configured to:
when the calculation unit is in network connection, calculate the first deviation between the calculation unit time and the network clock time;
update the fundamental deviation based on the first deviation;
update the calculation unit time and calculate the actual refresh frequency of the calculation unit based on the fundamental deviation;
calculate the second deviation between the calculation unit time and the sensor time; and
update the sensor time and calculate the actual interruption frequency of the sensor based on the second deviation.
