Time calibration method and related apparatus
Abstract
A time calibration method includes a first station receives a first frame from a second station; the first station stores a receiving moment of the first frame; the first station receives a second frame from the second station, where the second frame includes a sending moment at which the second station sends the first frame; and the first station obtains a clock offset between a first clock of the first station and a second clock of the second station based on the receiving moment of the first frame and the sending moment of the first frame.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method implemented by a first station for obtaining a clock offset between a first clock of the first station and a second clock of a second station, the method comprising: receiving a first frame from the second station without establishing a fine timing measurement (FTM) session between the first station and the second station, wherein the first frame comprises a first sequence number; storing the first sequence number and a receiving moment of the first frame; receiving a second frame from the second station, wherein the second frame comprises a second sequence number and a sending moment at which the second station sends the first frame; retrieving the receiving moment based on the second sequence number; and obtaining a clock offset between a first clock of the first station and a second clock of the second station based on the receiving moment and the sending moment.
- Claim 2Depends on #1
The method according to claim 1, wherein the second sequence number is the same as the first sequence number.
- Claim 3Depends on #2
The method according to claim 2, further comprising storing an identifier of the second station.
- Claim 4Depends on #2
The method according to claim 2, wherein retrieving the receiving moment based on the second sequence number comprises searching for the receiving moment corresponding to the second sequence number.
- Claim 5Depends on #1
The method according to claim 1, wherein the second sequence number is greater than the first sequence number by one, and wherein retrieving the receiving moment based on the second sequence number comprises: subtracting one from the second sequence number to obtain the first sequence number; and searching for the receiving moment corresponding to the first sequence number.
- Claim 6Depends on #1
The method according to claim 1, wherein the second station is an access point, and wherein the first frame and the second frame are beacon frames.
- Claim 7Depends on #1
The method according to claim 1, wherein the receiving moment is when the first frame arrives at a physical layer component in the first station.
- Claim 8Depends on #1
The method according to claim 1, wherein the receiving moment is when a training field in a preamble of the first frame arrives at a physical layer component in the first station.
- Claim 9Depends on #1
The method according to claim 1, wherein obtaining the clock offset comprises obtaining the clock offset between the first clock and the second clock through calculation based on a hardware time delay of the first station, the receiving moment, and the sending moment.
- Claim 10Depends on #1
The method according to claim 1, wherein the first frame and/or the second frame further comprise/comprises first level information indicating a first level of the second station, and wherein the method further comprises: obtaining second level information indicating a second level of the first station; and following time of the second station based on the clock offset when the first level is higher than the second level.
- Claim 11Depends on #6
The method according to claim 6, wherein the sending moment of the first frame is located in a vendor-defined element of the second frame.
- Claim 12Independent Claim
A first station comprising: a memory configured to store instructions; and one or more processors coupled to the memory and configured to execute the instructions to cause the first station to: receive a first frame from a second station without establishing a fine timing measurement (FTM) session between the first station and the second station, wherein the first frame comprises a first sequence number; store the first sequence number and a receiving moment of the first frame; receive a second frame from the second station, wherein the second frame comprises a second sequence number and a sending moment at which the second station sends the first frame; retrieve the receiving moment based on the second sequence number; and obtain a clock offset between a first clock of the first station and a second clock of the second station based on the receiving moment and the sending moment.
- Claim 13Depends on #12
The first station according to claim 12, wherein the second station is an access point, and the first frame and the second frame are beacon frames.
- Claim 14Depends on #12
The first station according to claim 12, wherein the receiving moment is when the first frame arrives at a physical layer component in the first station.
- Claim 15Depends on #12
The first station according to claim 12, wherein the receiving moment is when a training field in a preamble of the first frame arrives at a physical layer component in the first station.
- Claim 16Depends on #12
The first station according to claim 12, wherein the first frame and/or the second frame further comprise/comprises first level information indicating a first level of the second station, and wherein the one or more processors are is further configured to execute the instructions to cause the first station to: obtain second level information indicating a second level of the first station; and follow time of the second station based on the clock offset when the first level is higher than the second level.
- Claim 17Depends on #12
The first station according to claim 12, wherein the second sequence number is the same as the first sequence number.
- Claim 18Depends on #17
The first station according to claim 17, wherein the one or more processors are further configured to execute the instructions to cause the first station to retrieve the receiving moment based on the second sequence number by searching: for the receiving moment corresponding to the second sequence number.
- Claim 19Depends on #17
The first station according to claim 17, wherein the second sequence number is greater than the first sequence number by one, and wherein the one or more processors are further configured to execute the instructions to cause the first station to retrieve the receiving moment based on the second sequence number by: subtracting one from the second sequence number to obtain the first sequence number; and searching for the receiving moment corresponding to the first sequence number.
- Claim 20Independent Claim
A non-transitory computer-readable storage medium storing program code, the program code comprising instructions, which when executed using a one or more processors of a first station cause the first station to: receive a first frame from a second station without establishing a fine timing measurement (FTM) session between the first station and the second station, wherein the first frame comprises a first sequence number; store the first sequence number and a receiving moment of the first frame; receive a second frame from the second station, wherein the second frame comprises a second sequence number and a sending moment at which the second station sends the first frame; retrieve the receiving moment based on the second sequence number; and obtain a clock offset between a first clock of the first station and a second clock of the second station based on the receiving moment and the sending moment.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to Chinese Patent Application No. 202111180893.9, filed on Oct. 11, 2021, and Chinese Patent Application No. 202111463298.6, filed on Dec. 2, 2021. The aforementioned patent applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD The present disclosure relates to the field of communication technologies, and in particular, to a time calibration method and a related apparatus. BACKGROUND In a wireless local area network (WLAN), a clock offset between stations (STAs) is calculated through fine timing measurement (FTM) to achieve time synchronization between the stations. Time synchronization in an FTM mechanism is implemented by using an FTM session. An FTM session includes three parts: negotiation, ranging exchange, and termination. Specifically, in a negotiation phase, a transmit end needs to send an FTM request frame to initiate an FTM session, and after receiving the FTM request frame, a receive end returns an FTM frame to perform ranging exchange. After receiving the FTM frame, the transmit end returns an acknowledgment (ACK) frame. The transmit end and the receive end determine a clock offset and complete time synchronization based on sending moments and receiving moments of the frames. However, in the FTM mechanism, the transmit end and the receive end need to exchange the frames in a one-to-one manner. This is time-consuming and has high air interface overheads. SUMMARY According to a first aspect, the present disclosure provides a time calibration method that includes: a first station receives a first frame from a second station; the first station stores a receiving moment of the first frame; the first station receives a second frame from the second station, where the second frame carries a sending moment at which the second station sends the first frame; and the first station obtains a clock offset between a clock of the first station and a clock of the sec
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (5)
- Geoffrey M. Garner,
- “
- IEEE 1588 Version 2
- ”
- , ISPCS, Sep. 24, 2008, 89 pages.