IP Library › Granted Patent US 12,506,554
Granted Patent B2
US 12,506,554 · App. 18/170,593 · Granted Dec 23, 2025

Time synchronization method, device and apparatus, and storage medium

Inventor: Ziyuan Zhang (Shenzhen, CN)
Assignee: SANECHIPS TECHNOLOGY CO., LTD.
H04J3/0647H04J3/0605
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,506,554
App. No.
18/170,593
Granted
Dec 23, 2025
Kind
B2
Abstract

Disclosed are a time synchronization method, a time synchronization device, a time synchronization apparatus and a storage medium. The method includes: periodically generating, by a local device, a synchronization request signal, and determining a first reference ID of the local device; sending the synchronization request signal and the first reference ID to peer devices; receiving a second reference ID and time information sent from each peer device through a communication link; and updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices.

Claims (82)

1 . A time synchronization method, comprising:

receiving first routing information sent from each peer device;

generating a first routing table according to the first routing information, the first routing table being configured to determine a communication state between each peer device and the local device in the local area network;

determining the communication state between each peer device and the local device in the local area network according to the first routing table;

periodically generating, by the local device, a synchronization request signal, and determining a first reference ID of the local device;

sending the synchronization request signal and the first reference ID to the peer devices;

receiving a second reference ID and time information sent from each peer device through a communication link; and

updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices;

wherein the local device and the peer devices are in a same local area network, and the first routing information comprising a peer device ID, a link reachability state and link information of each peer device.

2 . The method of claim 1 , wherein the periodically generating the synchronization request signal comprises:

counting an operating time of the local device cyclically; and

generating the synchronization request signal in response that a count value of each cycle reaches a preset value.

3 . The method of claim 1 , wherein the link reachability state comprises a reachability state and an unreachability state, and the determining the communication state between each peer device and the local device in the local area network according to the first routing table comprises:

determining a number of reachability states of the peer devices; and

determining that each peer device is in communication with the local device in response that the number of reachability states is equal to a total number of the peer devices in the local area network; or

determining that part of the peer devices are in communication with the local device in response that the number of reachability states is different from a total number of the peer devices in the local area network.

4 . The method of claim 1 , further comprising:

sending second routing information to each peer device through each communication link in a polling manner, the second routing information comprising a local device ID, a link reachability state and link information of the local device; and

generating a second routing table according to the second routing information.

5 . The method of claim 3 , wherein the determining the first reference ID of the local device comprises:

in response that each peer device is in communication with the local device, determining the local device ID as the first reference ID; or

in response that part of the peer devices are in communication with the local device, determining whether the local device is a master device; and

in response that the local device is the master device, determining the local device ID as the first reference ID; or

in response that the local device is not the master device, determining the peer device ID with minimum or maximum number in the local area network as the first reference ID.

6 . The method of claim 1 , wherein the updating the time of the local device according to the time information transmitted from the calibration link comprises:

in response that multiple calibration links exist, determining a calibration link with a maximum or minimum link number among the multiple calibration links as a target link; and

updating the time of the local device according to the time information transmitted from the target link.

7 . The method of claim 1 , wherein the updating the time of the local device according to the time information transmitted from the calibration link comprises:

in response that only one calibration link exist, updating the time of the local device according to the time information transmitted from the only one calibration link.

8 . The method of claim 1 , wherein the sending, by the local device, the synchronization request signal and the first reference ID to peer devices comprises:

sending, by the local device, the synchronization request signal and the first reference ID to the communication link of the local device;

transmitting, by the communication link of the local device, the synchronization request signal and the first reference ID to communication links of the peer devices; and

transmitting, by the communication links of the peer devices, the synchronization request signal and the first reference ID to the peer devices.

9 . The method of claim 1 , wherein the target reference ID is a second reference ID with the minimum or maximum number among the second reference IDs.

10 . A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, to implement a time synchronization method comprising:

receiving first routing information sent from each peer device;

generating a first routing table according to the first routing information, the first routing table being configured to determine a communication state between each peer device and the local device in the local area network;

determining the communication state between each peer device and the local device in the local area network according to the first routing table;

periodically generating, by the local device, a synchronization request signal, and determining a first reference ID of the local device;

sending the synchronization request signal and the first reference ID to the peer devices;

receiving a second reference ID and time information sent from each peer device through a communication link; and

updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices;

wherein the local device and the peer devices are in a same local area network, and the first routing information comprising a peer device ID, a link reachability state and link information of each peer device.

11 . A non-transitory computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, to implement a time synchronization method comprising:

receiving first routing information sent from each peer device;

generating a first routing table according to the first routing information, the first routing table being configured to determine a communication state between each peer device and the local device in the local area network;

determining the communication state between each peer device and the local device in the local area network according to the first routing table;

periodically generating, by the local device, a synchronization request signal, and determining a first reference ID of the local device;

sending the synchronization request signal and the first reference ID to the peer devices;

receiving a second reference ID and time information sent from each peer device through a communication link; and

updating time of the local device according to the time information transmitted from a calibration link, the calibration link being a corresponding communication link of a target reference ID in second reference IDs sent from the peer devices;

wherein the local device and the peer devices are in a same local area network, and the first routing information comprising a peer device ID, a link reachability state and link information of each peer device.

12 . The computer device of claim 10 , wherein the periodically generating the synchronization request signal comprises:

counting an operating time of the local device cyclically; and

generating the synchronization request signal in response that a count value of each cycle reaches a preset value.

13 . The computer device of claim 10 , wherein the link reachability state comprises a reachability state and an unreachability state, and the determining the communication state between each peer device and the local device in the local area network according to the first routing table comprises:

determining a number of reachability states of the peer devices; and

determining that each peer device is in communication with the local device in response that the number of reachability states is equal to a total number of the peer devices in the local area network; or

determining that part of the peer devices are in communication with the local device in response that the number of reachability states is different from a total number of the peer devices in the local area network.

14 . The computer device of claim 10 , wherein the time synchronization method further comprises:

sending second routing information to each peer device through each communication link in a polling manner, the second routing information comprising a local device ID, a link reachability state and link information of the local device; and

generating a second routing table according to the second routing information.

15 . The computer device of claim 13 , wherein the determining the first reference ID of the local device comprises:

in response that each peer device is in communication with the local device, determining the local device ID as the first reference ID; or

in response that part of the peer devices are in communication with the local device, determining whether the local device is a master device; and

in response that the local device is the master device, determining the local device ID as the first reference ID; or

in response that the local device is not the master device, determining the peer device ID with minimum or maximum number in the local area network as the first reference ID.

16 . The non-transitory computer-readable storage medium of claim 11 , wherein the periodically generating the synchronization request signal comprises:

counting an operating time of the local device cyclically; and

generating the synchronization request signal in response that a count value of each cycle reaches a preset value.

17 . The non-transitory computer-readable storage medium of claim 11 , wherein the link reachability state comprises a reachability state and an unreachability state, and the determining the communication state between each peer device and the local device in the local area network according to the first routing table comprises:

determining a number of reachability states of the peer devices; and

determining that each peer device is in communication with the local device in response that the number of reachability states is equal to a total number of the peer devices in the local area network; or

determining that part of the peer devices are in communication with the local device in response that the number of reachability states is different from a total number of the peer devices in the local area network.

18 . The non-transitory computer-readable storage medium of claim 11 , wherein the time synchronization method further comprises:

sending second routing information to each peer device through each communication link in a polling manner, the second routing information comprising a local device ID, a link reachability state and link information of the local device; and

generating a second routing table according to the second routing information.

19 . The non-transitory computer-readable storage medium of claim 18 , wherein the determining the first reference ID of the local device comprises:

in response that each peer device is in communication with the local device, determining the local device ID as the first reference ID; or

in response that part of the peer devices are in communication with the local device, determining whether the local device is a master device; and

in response that the local device is the master device, determining the local device ID as the first reference ID; or

in response that the local device is not the master device, determining the peer device ID with minimum or maximum number in the local area network as the first reference ID.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 17, 2023
From: ZHANG, ZIYUAN
To: SANECHIPS TECHNOLOGY CO., LTD.
Reel/Frame 062728/0541 →
Priority Claims (1)
CN 202010899715.0 · Aug 31, 2020 · national
Continuity (2)
Continuation PCTCN2021115099 · Aug 27, 2021
Related Publication 20230198648A1 · Jun 22, 2023
References Cited (26)
US 9226252B2 · Akhlaq · 2015 [cited by examiner]
US 10340980B1 · Wolter · 2019 [cited by examiner]
US 10554319B2 · Nishimura · 2020 [cited by examiner]
US 10901372B2 · Ogawa · 2021 [cited by examiner]
US 10972994B2 · Abedini · 2021 [cited by examiner]
US 11803516B2 · Jewell · 2023 [cited by examiner]
US 12184406B2 · Li · 2024 [cited by examiner]
US 12360952B2 · Jewell · 2025 [cited by examiner]
US 20070050523A1 · Emeott · 2007 [cited by examiner]
US 20090086764A1 · Lee · 2009 [cited by examiner]
US 20130010814A1 · Miyabe · 2013 [cited by examiner]
US 20140029603A1 · Nomura · 2014 [cited by examiner]
US 20140355628A1 · Akhlaq · 2014 [cited by examiner]
US 20180270005A1 · Nishimura · 2018 [cited by examiner]
US 20250038870A1 · Sakagami · 2025 [cited by examiner]
CN 101459502A · 2009 [cited by applicant]
CN 103312429A · 2013 [cited by applicant]
CN 110099439A · 2019 [cited by applicant]
CN 111092688A · 2020 [cited by applicant]
CN 111585679A · 2020 [cited by applicant]
WO 2019217047A1 · 2019 [cited by applicant]
WO 2020027850A1 · 2020 [cited by applicant]
International Search Report and Written Opinion issued in corresponding International Patent Application No. PCT/CN2021/115099; mailed Nov. 25, 2021; 11 pgs. [cited by applicant]
Extended Search Report in Corresponding European Application No. 21860529.3, dated Aug. 9, 2024; 10 pgs. [cited by applicant]
Grant Notice in Corresponding Chinese Application No. 202010899715.0, dated Jun. 5, 2024; 3 pgs. [cited by applicant]
First Office Action in Corresponding Chinese Application No. 202010899715.0, dated Jan. 27, 2024; 11 pgs. [cited by applicant]