Hardware clock synchronization method in Wi-Fi environment, terminal and storage medium

The invention provides a hardware clock synchronization method in a Wi-Fi environment, a terminal and a storage medium, and the method comprises the steps: calculating time represented by a TSF clock by taking a TSF counter based on an IEEE 802.11 protocol as a source of a hardware timestamp, and th...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YANG ZHICE, CHEN PAIZHUO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a hardware clock synchronization method in a Wi-Fi environment, a terminal and a storage medium, and the method comprises the steps: calculating time represented by a TSF clock by taking a TSF counter based on an IEEE 802.11 protocol as a source of a hardware timestamp, and the time comprises master clock time and slave clock time; synchronizing the master clock time with the first system clock time; synchronizing the slave clock time to the master clock time based on a PTP clock synchronization mechanism; and synchronizing the second system clock time to the slave clock time, so that the second system clock time is synchronized with the first system clock time. According to the invention, a hardware PTP clock synchronization scheme can be realized by using the TSF counter in the existing Wi-Fi network card in the market, the working mode is the same as that of the traditional Ethernet network card, the existing operating system kernel support can be directly butted, and the existing us