A clock error measurement method and system
By measuring the interrogation signal and the response signal between node A and node B, the interrogation-response method is used to calculate the clock deviation and compensate it, which solves the complex clock error measurement problem in the existing technology and achieves high accuracy between low-cost devices. Clock synchronization, especially the problem of clock synchronization during satellite navigation interference.
Patent Information
- Application Number
- CN202210665108.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-06-13
AI Technical Summary
The existing clock error measurement method is too complex and cannot achieve high-precision clock synchronization in equipment that does not use high-precision clocks and equipment that provides satellite navigation timing when satellite navigation interferes.
Through the measurement inquiry signal and measurement response signal between node A and node B, the inquiry-response method is used to quickly calculate the clock deviation value and perform clock compensation to achieve high-precision time synchronization between devices.
Achieving high-precision clock difference measurement within a query-response cycle solves the problem of clock synchronization between low-cost equipment and satellite navigation equipment when interference occurs, ensuring high-precision time synchronization between equipment.
Smart Images

Figure CN115085848B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication synchronization technology, and in particular to a clock difference measurement method and system. Background Art
[0002] With the continuous development of communication technology, satellite navigation, military data links, aerospace, industrial networks, industrial control and other fields are increasingly dependent on high-precision clocks. For example, in satellite navigation, if the clock accuracy can reach 1ns, the spatial measurement accuracy can reach 30cm. The higher the clock accuracy, the more accurate the navigation and positioning accuracy. In military data links, with the continuous improvement of the informatization level of military equipment, high-precision clocks ensure the time synchronization of multiple communication nodes and effectively improve communication performance. In aerospace, precise synchronization of multiple devices and systems is also required to measure and control the status of aircraft, etc.
[0003] However, high-precision clocks such as rubidium atomic clocks and cesium atomic clocks are usually very expensive. Due to cost constraints, they cannot be deployed on all devices. At present, a large number of devices choose to use the high-precision timing information of satellite navigation to correct the errors of their own clocks. However, if the satellite navigation signal is interfered with, the satellite navigation will fail, and these devices will find it difficult to ensure normal operation by relying on their own clocks. At this time, if the precise clock difference between devices can be measured and the clock of the devices can be compensated, high-precision time synchronization between the systems can also be achieved. However, the current clock difference measurement methods are usually too complicated, so it is of great significance to design a method to achieve fast and accurate clock difference measurement. Summary of the invention
[0004] The main purpose of the present invention is to provide a clock error measurement method and system, aiming to solve the technical problem that the current clock error measurement methods are usually too complicated.
[0005] To achieve the above object, the present invention provides a clock error measurement method, which comprises the following steps:
[0006] S1: Node B sends a measurement inquiry signal to node A; wherein the measurement inquiry signal includes the measurement inquiry sending time position and the B node clock face of the time when the measurement inquiry signal is sent;
[0007] S2: Node A receives the measurement inquiry signal;
[0008] S3: Node A sends a measurement response signal to node B; wherein the measurement response signal includes the measurement response sending time position and the A node clock face of the time when the measurement response signal is sent;
[0009] S4: Node B receives the measurement response signal;
[0010] S5: Node B obtains the deviation value of the node B clock lagging behind the node A clock according to the measurement inquiry sending time position, the node B clock face of the measurement inquiry signal sending time position and the node A clock face of the measurement response signal sending time position.
[0011] Optionally, the step S1 is specifically as follows: Node B initiates a measurement inquiry signal to Node A at the starting position of its own clock, and the measurement inquiry sending time position provided by the navigation system of Node B is The clock time of Node B when sending the measurement inquiry signal is t p,TX .
[0012] Optionally, the step S2 is specifically as follows: Node A receives the measurement inquiry signal, and the position of the measurement inquiry signal received by the navigation system of node A is The clock time of node A when receiving the measurement inquiry signal is t p,RX .
[0013] Optionally, step S3 is specifically as follows: Node A sends a measurement response signal to Node B at the next start time of its own clock, and the measurement response signal sending time position provided by the navigation system of Node A is The clock time of node A when sending the measurement response signal is t a,TX .
[0014] Optionally, the step S4 is specifically as follows: Node B receives the measurement response signal, and the measurement inquiry signal reception time position provided by the navigation system of Node B is The clock time of Node B when receiving the measurement response signal is t a,RX .
[0015] Optionally, in step S5, the expression of the deviation value is:
[0016]
[0017] in, Based on location With location The calculated signal propagation distance estimate; Based on location With location The calculated estimated value of the signal propagation distance, c is the speed of light in a vacuum, which is 299792458 m / s.
[0018] Optionally, when the two-way propagation distances of node A and node B are equal, or the navigation system data cannot be obtained, the expression of the deviation value is:
[0019]
[0020] in,
[0021] Optionally, the method further includes step S6: Node B compensates its own clock according to the calculated deviation value to complete clock synchronization.
[0022] Optionally, if the clocks of node A and node B are unstable or change over time, after executing step S6, the process returns to execute step S1.
[0023] To achieve the above object, the present application also provides a clock error measurement system, the system comprising a node A and a node B; wherein:
[0024] Node B sends a measurement inquiry signal to node A; wherein the measurement inquiry signal includes the measurement inquiry sending time position and the B node clock face of the time when the measurement inquiry signal is sent;
[0025] Node A receives the measurement inquiry signal;
[0026] Node A sends a measurement response signal to node B; wherein the measurement response signal includes the measurement response sending time position and the A node clock face of the time when the measurement response signal is sent;
[0027] Node B receives the measurement response signal;
[0028] Node B obtains the deviation value of the node B clock lagging behind the node A clock based on the measurement inquiry sending time position, the node B clock face of the measurement inquiry signal sending time position and the node A clock face of the measurement response signal sending time position.
[0029] The beneficial effects of the present invention are:
[0030] (1) A high-precision clock error measurement method was implemented to solve the clock synchronization problem between low-cost devices that do not use high-precision clocks and devices that use satellite navigation timing when the satellite navigation is interfered with;
[0031] (2) Using the “inquiry-response” method, clock error measurement can be quickly achieved within one “inquiry-response” cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a flow chart of a clock error measurement method of the present invention.
[0033] Figure 2 This is a schematic diagram of the clock deviation measurement process of the present invention.
[0034] Figure 3 It is a schematic diagram of a specific example of the clock error measurement method of the present invention.
[0035] Figure 4Schematic diagram of the link layer frame structure of the inquiry-response signal of the present invention.
[0036] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0037] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0038] Currently, in the relevant technical field, existing clock error measurement methods are usually too complicated.
[0039] In order to solve this problem, various embodiments of the clock difference measurement method of the present invention are proposed. The clock difference measurement method provided by the present invention can quickly realize clock difference measurement within an inquiry-response cycle by acquiring a measurement inquiry signal and a measurement response signal containing position information and time information between node A and node B, using an inquiry-response method, thereby solving the clock synchronization problem between low-cost devices that do not use high-precision clocks and devices that use satellite navigation timing when satellite navigation is interfered.
[0040] The embodiment of the present invention provides a clock error measurement method, referring to Figure 1 , Figure 1 It is a flow chart of an embodiment of the clock error measurement method of the present invention.
[0041] In this embodiment, the clock error measurement method includes the following steps:
[0042] S1: Node B sends a measurement inquiry signal to node A; wherein the measurement inquiry signal includes the measurement inquiry sending time position and the B node clock face of the time when the measurement inquiry signal is sent;
[0043] S2: Node A receives the measurement inquiry signal;
[0044] S3: Node A sends a measurement response signal to node B; wherein the measurement response signal includes the measurement response sending time position and the A node clock face of the time when the measurement response signal is sent;
[0045] S4: Node B receives the measurement response signal;
[0046] S5: Node B obtains the deviation value of the node B clock lagging behind the node A clock according to the measurement inquiry sending time position, the node B clock face of the measurement inquiry signal sending time position and the node A clock face of the measurement response signal sending time position.
[0047] This embodiment proposes a method for realizing fast and accurate clock error measurement. Figure 2 As shown, in the embodiment, the following detailed steps are included:
[0048] (1) First, assume that the clocks of node B (inquiry station) and node A (response station) deviate. Node B initiates a measurement inquiry signal to node A at the starting position of its own clock. The measurement inquiry sending time and position provided by the navigation system of node B is The clock time of Node B when sending the measurement inquiry signal is t p,TX ;
[0049] (2) Node A receives the measurement query signal. At this time, the position of node A’s navigation system at the time of receiving the measurement query signal is The clock time of node A when receiving the measurement inquiry signal is t p,RX ;
[0050] (3) Node A sends a measurement response signal to node B at the next start time of its own clock. The measurement response signal sent by the navigation system of node A is The clock time of node A when sending the measurement response signal is t a,TX ;
[0051] (4) Node B receives the measurement response signal. At this time, the measurement inquiry signal reception time position provided by the navigation system of Node B is The clock time of Node B when receiving the measurement response signal is t a,RX ;
[0052] (5) Node B calculates the deviation between the clock of Node B and the clock of Node A. The formula is as follows:
[0053]
[0054] in, Based on location With location The calculated signal propagation distance estimate; Based on location With location The calculated estimated value of the signal propagation distance, c is the speed of light in a vacuum, which is 299792458 m / s;
[0055] (6) Node B calculates the deviation value Compensate its own clock to complete clock synchronization.
[0056] In step (5), the calculation formula ignores the time variation of the clock error of node B relative to node A during the measurement process. If the two-way propagation distances of node A and node B are equal, or the navigation system data cannot be obtained, it can be considered that The deviation calculation formula can be simplified as:
[0057]
[0058] In step (6), if the clocks of node A and node B are unstable or change over time, the process from step (1) to step (6) can be repeated continuously to compensate the clocks in real time.
[0059] This embodiment provides a clock difference measurement method. By acquiring a measurement inquiry signal and a measurement response signal containing position information and time information between node A and node B, and utilizing an inquiry-response method, the clock difference measurement can be quickly implemented within one inquiry-response cycle, thereby solving the clock synchronization problem between low-cost equipment that does not use a high-precision clock and equipment that uses satellite navigation timing when the satellite navigation is interfered with.
[0060] In order to explain the present application more clearly, a specific example of a clock error measurement method is proposed.
[0061] See also Figure 3 , using two point-to-point communication devices, both of which use low-cost clocks and use satellite navigation data timing to compensate their own clocks in real time. When the device is interfered by strong satellite navigation, the satellite navigation fails to provide time for the device. The two devices use the "inquiry-response" method of this application to quickly measure the precise clock difference and compensate the clock in real time. Specifically:
[0062] (1) First, node B sends a measurement query signal to node A at the starting position of its own clock. The location of the measurement query sent by node B’s own navigation system is set to The clock time of Node B when sending the measurement inquiry signal is set to t p,TX The frame structure of the measurement inquiry signal sent to node A is as shown in the attached figure. Figure 4 However, due to strong interference, node B cannot obtain the current position. Therefore, Set to all 0s;
[0063] (2) Node A receives the measurement query signal. At this time, the position of node A’s navigation system at the time of receiving the measurement query signal is The clock time of node A when receiving the measurement inquiry signal is t p,RX . Node A is subject to strong interference and cannot obtain its current location. Therefore, Set to all 0s;
[0064] (3) Node A sends a measurement response signal to node B at the next start time of its own clock. The measurement response signal sent by the navigation system of node A is The clock time of node A when sending the measurement response signal is ta,TX The frame structure of the measurement response signal sent to Node B is as shown in the attached Figure 3 As shown in step (2), Set to all 0s;
[0065] (4) Node B receives the measurement response signal. At this time, the measurement inquiry signal reception time position provided by the navigation system of Node B is The clock time of Node B when receiving the measurement response signal is t a,RX , similar to step (1), Set to all 0s;
[0066] (5) Node B calculates the clock error based on the received information. Since all the location information is all 0, that is, the location information is unknown, the formula is used Calculate the deviation of node B clock from node A clock
[0067] (6) Node B calculates the deviation value Compensate its own clock to complete clock synchronization, and repeat steps (1) to (6) to ensure that the clock is compensated in real time.
[0068] The above are only preferred embodiments of the invention, and are not intended to limit the patent scope of the invention. Any equivalent structure or equivalent process transformation made using the contents of the invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the invention.
Claims
1. A clock error measurement method, It is characterized in that The method comprises the following steps: S1: Node B sends a measurement inquiry signal to node A; wherein the measurement inquiry signal includes the measurement inquiry sending time position and the B node clock face of the time when the measurement inquiry signal is sent, specifically including: Node B sends a measurement query signal to node A at the starting position of its own clock. The measurement query sending time and position provided by the navigation system of node B is The clock time of Node B when sending the measurement inquiry signal is t p,TX ; S2: Node A receives the measurement inquiry signal, specifically including: Node A receives the measurement inquiry signal, and the position of the measurement inquiry signal received by the navigation system of node A is The clock time of node A when receiving the measurement inquiry signal is t p, RX ; S3: Node A sends a measurement response signal to node B; wherein the measurement response signal includes the measurement response sending time position and the A node clock face of the time when the measurement response signal is sent, specifically including: Node A sends a measurement response signal to node B at the next start time of its own clock. The measurement response signal sent by the navigation system of node A is The clock time of node A when sending the measurement response signal is t a,TX ; S4: Node B receives the measurement response signal, specifically including: Node B receives the measurement response signal, and the measurement inquiry signal receiving time position provided by the navigation system of Node B is The clock time of Node B when receiving the measurement response signal is t a, RX ; S5: Node B obtains the deviation value of the clock of node B lagging behind the clock of node A according to the time position of sending the measurement inquiry, the clock face of node B at the time of sending the measurement inquiry signal, the time position of sending the measurement response and the clock face of node A at the time of sending the measurement response signal; The expression of the deviation value is: in, Based on location With location The calculated signal propagation distance estimate; Based on location With location The calculated estimated value of the signal propagation distance, c is the speed of light in a vacuum, which is 299792458 m / s.
2. The clock error measurement method according to claim 1, It is characterized in that When the two-way propagation distances of node A and node B are equal, or the navigation system data cannot be obtained, the expression of the deviation value is: in, 3. The clock error measurement method according to claim 1 or 2, It is characterized in that The method further comprises step S6: Node B compensates its own clock according to the calculated deviation value to complete clock synchronization.
4. The clock error measurement method according to claim 3, It is characterized in that If the clocks of node A and node B are unstable or change over time, after executing step S6, the process returns to execute step S1.
5. A clock error measurement system, It is characterized in that The system comprises a node A and a node B; wherein: Node B sends a measurement inquiry signal to node A; wherein the measurement inquiry signal includes the measurement inquiry sending time position and the B node clock face of the time when the measurement inquiry signal is sent, specifically including: Node B sends a measurement query signal to node A at the starting position of its own clock. The measurement query sending time and position provided by the navigation system of node B is The clock time of Node B when sending the measurement inquiry signal is t p, TX ; Node A receives the measurement inquiry signal, specifically including: Node A receives the measurement inquiry signal, and the position of the measurement inquiry signal received by the navigation system of node A is The clock time of node A when receiving the measurement inquiry signal is t p,RX ; Node A sends a measurement response signal to node B; wherein the measurement response signal includes the measurement response sending time position and the A node clock face of the time when the measurement response signal is sent, specifically including: Node A sends a measurement response signal to node B at the next start time of its own clock. The measurement response signal sent by the navigation system of node A is The clock time of node A when sending the measurement response signal is t a,TX ; The node B receives the measurement response signal, specifically including: the node B receives the measurement response signal, and the measurement inquiry signal receiving time position provided by the navigation system of the node B is The clock time of Node B when receiving the measurement response signal is t a, RX ; Node B obtains the deviation value of the node B clock lagging behind the node A clock according to the measurement inquiry sending time position, the B node clock face of the measurement inquiry signal sending time position, the measurement response sending time position and the A node clock face of the measurement response signal sending time position; The expression of the deviation value is: in, Based on location With location The calculated signal propagation distance estimate; Based on location With location The calculated estimated value of the signal propagation distance, c is the speed of light in a vacuum, which is 299792458 m / s.
