CN114020096A - Time synchronization anti-interference method and device, time-frequency terminal and storage medium - Google Patents

Time synchronization anti-interference method and device, time-frequency terminal and storage medium Download PDF

Info

Publication number
CN114020096A
CN114020096A CN202111364771.5A CN202111364771A CN114020096A CN 114020096 A CN114020096 A CN 114020096A CN 202111364771 A CN202111364771 A CN 202111364771A CN 114020096 A CN114020096 A CN 114020096A
Authority
CN
China
Prior art keywords
time
external standard
standard time
sources
accuracy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111364771.5A
Other languages
Chinese (zh)
Other versions
CN114020096B (en
Inventor
许俊
熊嘉明
董道鹏
郭庆峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Spaceon Electronics Co Ltd
Original Assignee
Chengdu Spaceon Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Spaceon Electronics Co Ltd filed Critical Chengdu Spaceon Electronics Co Ltd
Priority to CN202111364771.5A priority Critical patent/CN114020096B/en
Publication of CN114020096A publication Critical patent/CN114020096A/en
Application granted granted Critical
Publication of CN114020096B publication Critical patent/CN114020096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The invention relates to the technical field of time synchronization, and discloses a time synchronization anti-interference method, a time synchronization anti-interference device, a time-frequency terminal and a storage medium. The invention provides a time synchronization scheme for realizing the system-level anti-interference purpose, namely, after the time frequency terminal measures the time accuracy with a plurality of external standard time sources, the time synchronization scheme can firstly calculate the relative time accuracy between the external standard time sources, and then the current abnormal external standard time source is determined based on the characteristic that the relative time accuracy is not changed under the condition that the two external standard time sources are normal, so that the abnormal external standard time source can be actively eliminated, the reference time with a fault is found, the system-level anti-interference purpose can be realized, the accuracy and the safety of output time are ensured, the reliability and the safety of the whole time-using system are improved, and the time synchronization scheme is convenient for practical application and popularization.

Description

Time synchronization anti-interference method and device, time-frequency terminal and storage medium
Technical Field
The invention belongs to the technical field of time synchronization, and particularly relates to a time synchronization anti-interference method, a time synchronization anti-interference device, a time-frequency terminal and a storage medium.
Background
The time-frequency terminal is a common device which needs to perform time synchronization with an external standard time source, such as an internet of things terminal and an industrial control terminal. Generally, a time frequency terminal performs time synchronization through a certain external standard time source, but when the external standard time source has abnormal conditions such as clock errors or instability, the time frequency device is difficult to find that the reference time has a fault, and at this time, the accuracy and the safety of the output time cannot be guaranteed, and potential safety hazards may be brought to the whole time system. Therefore, how to enable the time-frequency terminal to find the current abnormal time source from a plurality of external standard time sources is a subject to be urgently researched by the technical staff in the field.
Disclosure of Invention
The invention aims to provide a time synchronization anti-interference method, a time synchronization anti-interference device, a time frequency terminal and a computer readable storage medium, which can enable the time frequency terminal to actively eliminate an abnormal external standard time source and discover the fault reference time, so that the system-level anti-interference purpose can be realized, the accuracy and the safety of the output time are ensured, the reliability and the safety of the whole time system are improved, and the practical application and popularization are facilitated.
In a first aspect, the present invention provides a time synchronization anti-interference method, applied to a time-frequency terminal, including:
measuring time accuracy corresponding to each external standard time source in the N external standard time sources relative to the local time source, wherein N is a natural number greater than two;
calculating the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source;
for each pair of external standard time sources, judging whether the corresponding relative time accuracy is greater than a corresponding accuracy threshold, wherein the accuracy threshold of each pair of external standard time sources is determined by measuring the time accuracy of the two external standard time sources when the two corresponding external standard time sources are normal in advance;
and according to all judgment results, determining the currently abnormal external standard time source from the N external standard time sources.
Based on the content of the invention, a time synchronization scheme for achieving the purpose of system-level anti-interference is provided, namely after a time frequency terminal measures and obtains the time accuracy of a plurality of external standard time sources, the relative time accuracy between the external standard time sources can be obtained by calculation, then the current abnormal external standard time source is determined based on the characteristic that the relative time accuracy is not changed under the condition that the two external standard time sources are normal, so that the abnormal external standard time source can be actively eliminated, the reference time with a fault is found, the purpose of system-level anti-interference can be further achieved, the accuracy and the safety of output time are ensured, the reliability and the safety of the whole time-using system are improved, and the time synchronization scheme is convenient to actually apply and popularize.
In one possible design, for each of the N external standard time sources, measuring a corresponding time accuracy relative to the local time source includes:
acquiring time information of an external standard time source;
measuring to obtain a time difference value between the time information and local time information, wherein the local time information is from a local time source;
after a plurality of time difference values are obtained through continuous measurement, the standard deviation of the time difference values is calculated and is used as the time accuracy of the external standard time source relative to the local time source.
In one possible design, calculating the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source includes:
the relative time accuracy sigma of some external standard time source is calculated according to the following formulaRTA
σRTA=|σ12|
In the formula, σ1Representing the time accuracy, σ, of the first external standard time source2The time accuracy of a second external standard time source is represented, | | represents an absolute value operator, and the first external standard time source and the second external standard time source constitute the certain external standard time source.
In one possible design, determining the external standard time source still in normal from the N external standard time sources according to all the determination results includes:
for a range of values [0, N]The corresponding interval range [ F ] is obtained by calculating each numerical value x in the following formulamin(x),Fmax(x)]:
Figure BDA0003360471880000021
In the formula, i and j are natural numbers respectively;
determining that the relative time accuracy of M pairs of external standard time sources is greater than a corresponding accuracy threshold according to all judgment results, wherein the value range of M is [0, N (N-1)/2 ];
for each value x, judging whether M is positioned in a corresponding interval range [ Fmin(x),Fmax(x)]If so, taking the corresponding numerical value as the possible number of abnormal time sources in the N external standard time sources;
determining, from the possible number, an external standard time source that is still normal from the N external standard time sources, and determining remaining external standard time sources from the N external standard time sources as external standard time sources that are currently abnormal.
In one possible design, determining the external standard time source that is still normal from the N external standard time sources according to the possible number includes:
determining a minimum number from at least one of the possible numbers;
and determining the external standard time source which is still in a normal state from the N external standard time sources according to the minimum number.
In one possible design, determining the external standard time source that is still normal from the N external standard time sources according to the minimum number includes:
if the minimum number is zero, taking the N external standard time sources as the external standard time sources which are still in normal;
if the minimum number is any value y in the range from 1 to N-1, taking the external standard time source with the occurrence frequency of M to the external standard time source equal to y as the external standard time source which is still in normal;
if the minimum number is N, the external standard time source which is in the N external standard time sources and has the minimum time accuracy is used as the external standard time source which is still normal.
In one possible design, after determining the external standard time source of the current anomaly from the N external standard time sources, the method further includes:
removing the current abnormal external standard time source from the N external standard time sources to obtain at least one external standard time source still in normal state;
and selecting the external standard time source with the minimum time accuracy from the at least one external standard time source for time synchronization.
In a second aspect, the invention provides a time synchronization anti-jamming device, which is arranged at a time-frequency terminal and comprises a time measurement module, a relative calculation module, a condition judgment module and a determination module which are sequentially in communication connection;
the time measuring module is used for measuring and obtaining the corresponding time accuracy relative to the local time source aiming at each external standard time source in the N external standard time sources, wherein N is a natural number larger than two;
the relative calculation module is used for calculating the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source;
the condition judging module is used for judging whether the corresponding relative time accuracy is greater than the corresponding accuracy threshold value or not aiming at each pair of external standard time sources, wherein the accuracy threshold value of each pair of external standard time sources is determined by measuring the time accuracy of the two external standard time sources when the two corresponding external standard time sources are normal in advance;
and the determining module is used for determining the current abnormal external standard time source from the N external standard time sources according to all judgment results.
In a third aspect, the present invention provides a time-frequency terminal, including a memory, a processor and a transceiver, which are sequentially connected in a communication manner, where the memory is used to store a computer program, the transceiver is used to transmit and receive information, and the processor is used to read the computer program and execute the time synchronization anti-interference method as described in the first aspect or any possible design of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon instructions which, when executed on a computer, perform the time synchronization immunity method according to the first aspect or any possible design of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the time synchronization immunity method as described in the first aspect or any possible design thereof.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a time synchronization anti-interference method provided by the present invention.
Fig. 2 is a schematic structural diagram of a time synchronization anti-interference apparatus provided in the present invention.
Fig. 3 is a schematic structural diagram of a time-frequency terminal provided by the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. Specific structural and functional details disclosed herein are merely representative of exemplary embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another. For example, a first object may be referred to as a second object, and similarly, a second object may be referred to as a first object, without departing from the scope of example embodiments of the present invention.
It should be understood that, for the term "and/or" as may appear herein, it is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, B exists alone or A and B exist at the same time; for the term "/and" as may appear herein, which describes another associative object relationship, it means that two relationships may exist, e.g., a/and B, may mean: a exists singly or A and B exist simultaneously; in addition, for the character "/" that may appear herein, it generally means that the former and latter associated objects are in an "or" relationship.
As shown in fig. 1, the time synchronization anti-interference method provided in the first aspect of this embodiment may be executed by, but not limited to, a time-frequency terminal with certain computing resources, for example, an internet of things terminal, an industrial control terminal, a Personal Computer (PC, which refers to a multipurpose Computer with a size, price, and performance suitable for Personal use, and all of a desktop Computer, a notebook Computer, a mini-notebook Computer, a tablet Computer, a super-notebook, and the like belong to a Personal Computer), a smart phone, a Personal digital assistant (PAD), or a wearable device, so that after the time-frequency terminal measures time accuracies with multiple external standard time sources, the relative time accuracy between the external standard time sources may be calculated first, and then the relative time accuracy is unchanged under normal conditions of the two external standard time sources based on the characteristic that the relative time accuracy is obtained, the abnormal external standard time source is determined, so that the abnormal external standard time source can be actively eliminated, the reference time with a fault is found, the system-level anti-interference purpose can be further realized, the accuracy and the safety of output time are ensured, the reliability and the safety of the whole time-using system are improved, and the practical application and the popularization are facilitated. As shown in fig. 1, the time synchronization anti-interference method is applied to a time-frequency terminal, and may include, but is not limited to, the following steps S1 to S4.
S1, measuring time accuracy corresponding to each external standard time source in N external standard time sources and relative to a local time source, wherein N is a natural number greater than two.
In step S1, each external standard time source is a time source with which the time-frequency terminal can communicate and perform time synchronization. Time accuracy (time accuracuracy) is a power noun published in 2020, meaning the deviation of the time of a clock output from a standard time (e.g., beijing time), and thus in this embodiment, refers to the time deviation of an external standard time source from a local time source. Specifically, for each external standard time source in the N external standard time sources, measuring the time accuracy corresponding to the local time source, including but not limited to the following steps S11-S13: S11. acquiring the time information of the external standard time source; s12, measuring to obtain a time difference value between the time information and local time information, wherein the local time information is from a local time source; and S13, after a plurality of time difference values are obtained through continuous measurement, calculating standard deviation of the time difference values, and taking the standard deviation as the time accuracy of the external standard time source relative to the local time source. The aforementioned steps S11-S13 can be executed in any time period after the time-frequency terminal is turned on, so that after the reference time that has failed is found, the external standard time source that is still normal can be actively selected or replaced for time synchronization. In addition, in the step S13, the plurality of time difference values are measured continuously within 100 seconds, and then the standard deviation is calculated.
And S2, calculating to obtain the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source.
In step S2, the relative time accuracy σ of some external standard time source can be calculated according to the following formulaRTA
σRTA=|σ12|
In the formula, σ1Representing the time accuracy, σ, of the first external standard time source2The time accuracy of a second external standard time source is represented, | | represents an absolute value operator, and the first external standard time source and the second external standard time source constitute the certain external standard time source.
And S3, judging whether the corresponding relative time accuracy is greater than a corresponding accuracy threshold value or not aiming at each pair of external standard time sources, wherein the accuracy threshold value of each pair of external standard time sources is determined by measuring the time accuracy of the two external standard time sources when the corresponding two external standard time sources are normal in advance.
In step S3, the time accuracy of the two external standard time sources under normal conditions is considered to be a fixed value, and the time accuracy can be obtained through actual measurement, so that the accuracy threshold of each pair of external standard time sources can be determined in advance by measurement, specifically can be equal to or slightly greater than the time accuracy of the two corresponding external standard time sources under normal conditions.
And S4, determining the current abnormal external standard time source from the N external standard time sources according to all judgment results.
In the step S4, also based on the feature that the relative time accuracy is not changed in the normal case of both external standard time sources, the following conditions are satisfied in the normal case of each external standard time source pair: the corresponding relative time accuracy is less than or equal to the corresponding accuracy threshold. When an abnormal condition such as a clock error or instability occurs in a certain external standard time source, the output time thereof is delayed, resulting in an increase in relative time accuracy with another external standard time source in a normal condition, so that the pair of external standard time sources consisting of the certain external standard time source and the another external standard time source will no longer satisfy the aforementioned condition. Thus, the external standard time source of the current abnormity and the external standard time source still in the normal state can be determined based on the judgment result.
After the step S4, the time-frequency terminal may select the external standard time source still in normal for time synchronization based on the determination result, so as to ensure the accuracy and safety of the output time, i.e. after determining the external standard time source of the current anomaly from the N external standard time sources, the method further includes, but is not limited to, the following steps S51-S52: s51, eliminating the current abnormal external standard time source from the N external standard time sources to obtain at least one external standard time source which is still normal; s52, selecting the external standard time source with the minimum time accuracy from the at least one external standard time source for time synchronization. Therefore, the reference time with the minimum time deviation can be selected for time synchronization, and the accuracy and the safety of the output time are further guaranteed.
Therefore, based on the time synchronization anti-jamming method described in the foregoing steps S1 to S4, a time synchronization scheme for achieving the purpose of system-level anti-jamming is provided, that is, after the time-frequency terminal measures the time accuracies with the plurality of external standard time sources, the relative time accuracy between the external standard time sources can be calculated first, and then the current abnormal external standard time source is determined based on the characteristic that the relative time accuracy is not changed under the condition that both external standard time sources are normal, so that the abnormal external standard time source can be actively eliminated, the reference time with a fault is found, and the purpose of system-level anti-jamming can be achieved, the accuracy and safety of output time are ensured, the reliability and safety of the whole time-use system are improved, and practical application and popularization are facilitated.
In this embodiment, on the basis of the technical solution of the first aspect, a first possible design for specifically determining the external standard time source still in normal is further provided, that is, the external standard time source still in normal is determined from the N external standard time sources according to all the determination results, which includes, but is not limited to, the following steps S41 to S44.
S41, aiming at the numerical range [0, N ]]The corresponding interval range [ F ] is obtained by calculating each numerical value x in the following formulamin(x),Fmax(x)]:
Figure BDA0003360471880000071
In the formula, i and j are natural numbers respectively.
In step S41, the value x is the possible number of abnormal time sources in the N external standard time sources, for example, the abnormal time sources may be 0,1, 2, … or N external standard time sources. Considering that some external standard time source may also satisfy the condition when all the external standard time sources are abnormal: the corresponding relative time accuracy is less than or equal to the corresponding accuracy threshold, for example, when N is 5, if both time source a and time source B are abnormal (i.e. x is equal to 2), then the aforementioned condition may be satisfied or not satisfied for both time source a and time source B, so that in all the determination results, only 6 or 7 pairs of time sources are found not to satisfy the aforementioned condition. Therefore, in all the determination results, for different values x, there is a certain value range for the corresponding external standard time source logarithm that does not satisfy the condition, as shown in table 1 below, for example.
Table 1. relationship of different values x to corresponding external standard time source logarithm that does not satisfy the condition (N ═ 5)
Figure BDA0003360471880000072
The external standard time source logarithm range of each numerical value x and not satisfying the condition can be derived according to the table:
[Fmin(x),Fmax(x)]。
s42, according to all judgment results, determining that the relative time accuracy of M pairs of external standard time sources is greater than a corresponding accuracy threshold, wherein the value range of M is [0, N (N-1)/2 ].
S43, judging whether M is located in the corresponding interval range [ F ] or not according to each numerical value xmin(x),Fmax(x)]If so, taking the corresponding numerical value as the possible number of the abnormal time sources in the N external standard time sources.
S44, according to the possible number, determining the external standard time source which is still normal from the N external standard time sources, and determining the rest external standard time sources from the N external standard time sources as the external standard time sources which are abnormal currently.
In the step S44, M may be in the range of a plurality of values x [ Fmin(x),Fmax(x)]When N is 5, for example, M is 4 in the interval [4,4 ═ 4]、[4,10]And [0,10]Thus, the values 1, 4 and 5 may be the possible number of the abnormal time sources currently occurring in the N external standard time sources, and considering the actual situation, the more the time sources have smaller probability of occurring abnormality, so the value 1 may be preferentially used as the current most probable number to determine the external standard time source still in normal, i.e. preferably, the external standard time source still in normal is determined from the N external standard time sources according to the possible number, including but not limited to the following steps S441 to S442: s441. from at least one of the possibilitiesDetermining the minimum number from the numbers; s442, according to the minimum number, determining the external standard time source which is still normal from the N external standard time sources.
In step S442, specifically, if the minimum number is zero, the N external standard time sources are used as the external standard time sources that are still normal, that is, when M is 0, there is no abnormal time source. If the minimum number is any value y in the range from 1 to N-1, the external standard time source whose occurrence number of M pairs of external standard time sources is equal to y is used as the external standard time source which is still normal, for example, if the minimum number is 1, the external standard time source whose occurrence number of M pairs of external standard time sources is equal to 1 is used as the external standard time source B to E which is still normal, and then the time source a is determined to be abnormal. And if the minimum number is N, taking the external standard time source with the minimum time accuracy in the N external standard time sources as the external standard time source still in normal, wherein although the probability of the abnormality of all the time sources is minimum, in order to enable the time-frequency terminal to perform time synchronization, only the external standard time source with the minimum time accuracy can be taken as the external standard time source still in normal, so that time synchronization is performed on the basis of the reference time with the minimum time deviation.
Therefore, based on the possible design one described in the foregoing steps S41 to S44, the most likely external standard time source that is still in a normal state can be determined from the multiple external standard time sources according to all the determination results, which is suitable for the case where different numbers of time sources are abnormal, and meets the actual time synchronization requirement, thereby further achieving the purpose of system-level anti-interference.
As shown in fig. 2, a second aspect of this embodiment provides a virtual device for implementing the time synchronization anti-interference method according to any one of the first aspect or the first aspect, where the virtual device is disposed at a time-frequency terminal and includes a time measurement module, a relative calculation module, a condition judgment module, and a determination module, which are in sequential communication connection;
the time measuring module is used for measuring and obtaining the corresponding time accuracy relative to the local time source aiming at each external standard time source in the N external standard time sources, wherein N is a natural number larger than two;
the relative calculation module is used for calculating the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source;
the condition judging module is used for judging whether the corresponding relative time accuracy is greater than the corresponding accuracy threshold value or not aiming at each pair of external standard time sources, wherein the accuracy threshold value of each pair of external standard time sources is determined by measuring the time accuracy of the two external standard time sources when the two corresponding external standard time sources are normal in advance;
and the determining module is used for determining the current abnormal external standard time source from the N external standard time sources according to all judgment results.
For the working process, working details, and technical effects of the foregoing apparatus provided in the second aspect of this embodiment, reference may be made to the time synchronization anti-interference method described in the first aspect or any one of the first aspects that may be designed, which is not described herein again.
As shown in fig. 3, a third aspect of this embodiment provides a time-frequency terminal for performing the time synchronization anti-interference method according to any one of the first aspect or the first aspect, where the time-frequency terminal includes a memory, a processor, and a transceiver, which are sequentially connected in a communication manner, where the memory is used for storing a computer program, the transceiver is used for transceiving information, and the processor is used for reading the computer program and performing the time synchronization anti-interference method according to any one of the first aspect or the first aspect. For example, the Memory may include, but is not limited to, a Random-Access Memory (RAM), a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a First-in First-out (FIFO), and/or a First-in Last-out (FILO), and the like; the processor may be, but is not limited to, a microprocessor of the model number STM32F105 family. In addition, the time-frequency terminal can also include, but is not limited to, a power module, a display screen and other necessary components.
For the working process, working details, and technical effects of the time-frequency terminal provided in the third aspect of this embodiment, reference may be made to the time synchronization anti-interference method possibly designed in the first aspect or any one of the first aspects, which is not described herein again.
A fourth aspect of the present invention provides a computer-readable storage medium storing instructions including the instructions of the first aspect or any possible design of the time synchronization immunity method of the first aspect, where the instructions are stored on the computer-readable storage medium, and when the instructions are executed on a computer, the time synchronization immunity method of the first aspect or any possible design of the first aspect is performed. The computer-readable storage medium refers to a carrier for storing data, and may include, but is not limited to, a computer-readable storage medium such as a floppy disk, an optical disk, a hard disk, a flash Memory, a flash disk and/or a Memory Stick (Memory Stick), and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
For a working process, working details, and technical effects of the foregoing computer-readable storage medium provided in the fourth aspect of this embodiment, reference may be made to the first aspect or any one of the first aspects that may be designed to implement the time synchronization anti-interference method, which is not described herein again.
A fifth aspect of the present embodiments provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the time synchronization immunity method according to the first aspect or any one of the possible designs of the first aspect. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices.
Finally, it should be noted that the present invention is not limited to the above alternative embodiments, and that various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.

Claims (10)

1. A time synchronization anti-interference method is characterized in that the method is applied to a time frequency terminal and comprises the following steps:
measuring time accuracy corresponding to each external standard time source in the N external standard time sources relative to the local time source, wherein N is a natural number greater than two;
calculating the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source;
for each pair of external standard time sources, judging whether the corresponding relative time accuracy is greater than a corresponding accuracy threshold, wherein the accuracy threshold of each pair of external standard time sources is determined by measuring the time accuracy of the two external standard time sources when the two corresponding external standard time sources are normal in advance;
and according to all judgment results, determining the currently abnormal external standard time source from the N external standard time sources.
2. The time synchronized immunity method of claim 1, wherein measuring, for each of the N external standard time sources, a corresponding time accuracy relative to the local time source comprises:
acquiring time information of an external standard time source;
measuring to obtain a time difference value between the time information and local time information, wherein the local time information is from a local time source;
after a plurality of time difference values are obtained through continuous measurement, the standard deviation of the time difference values is calculated and is used as the time accuracy of the external standard time source relative to the local time source.
3. The method of claim 1, wherein calculating the relative time accuracy of each pair of external standard time sources based on the time accuracy of each external standard time source comprises:
the relative time accuracy sigma of some external standard time source is calculated according to the following formulaRTA
σRTA=|σ12|
In the formula, σ1Representing the time accuracy, σ, of the first external standard time source2The time accuracy of a second external standard time source is represented, | | represents an absolute value operator, and the first external standard time source and the second external standard time source constitute the certain external standard time source.
4. The method for time synchronization and interference rejection of claim 1, wherein determining a currently abnormal external standard time source from said N external standard time sources based on all said determinations comprises:
for a range of values [0, N]The corresponding interval range [ F ] is obtained by calculating each numerical value x in the following formulamin(x),Fmax(x)]:
Figure FDA0003360471870000011
In the formula, i and j are natural numbers respectively;
determining that the relative time accuracy of M pairs of external standard time sources is greater than a corresponding accuracy threshold according to all judgment results, wherein the value range of M is [0, N (N-1)/2 ];
for each value x, judging whether M is positioned in a corresponding interval range [ Fmin(x),Fmax(x)]If so, taking the corresponding numerical value as the possible number of abnormal time sources in the N external standard time sources;
determining, from the possible number, an external standard time source that is still normal from the N external standard time sources, and determining remaining external standard time sources from the N external standard time sources as external standard time sources that are currently abnormal.
5. The time-synchronized immunity method of claim 4, wherein determining from said possible number, the external standard time source that is still in normal from said N external standard time sources comprises:
determining a minimum number from at least one of the possible numbers;
and determining the external standard time source which is still in a normal state from the N external standard time sources according to the minimum number.
6. The time-synchronized immunity method of claim 5, wherein determining from said minimum number, which of said N external standard time sources is still a normal external standard time source, comprises:
if the minimum number is zero, taking the N external standard time sources as the external standard time sources which are still in normal;
if the minimum number is any value y in the range from 1 to N-1, taking the external standard time source with the occurrence frequency of M to the external standard time source equal to y as the external standard time source which is still in normal;
if the minimum number is N, the external standard time source which is in the N external standard time sources and has the minimum time accuracy is used as the external standard time source which is still normal.
7. The time-synchronized immunity method of claim 1, wherein after determining the currently anomalous external standard time source from said N external standard time sources, said method further comprises:
removing the current abnormal external standard time source from the N external standard time sources to obtain at least one external standard time source still in normal state;
and selecting the external standard time source with the minimum time accuracy from the at least one external standard time source for time synchronization.
8. A time synchronization anti-jamming device is characterized in that the time synchronization anti-jamming device is arranged at a time frequency terminal and comprises a time measuring module, a relative calculating module, a condition judging module and a determining module which are sequentially in communication connection;
the time measuring module is used for measuring and obtaining the corresponding time accuracy relative to the local time source aiming at each external standard time source in the N external standard time sources, wherein N is a natural number larger than two;
the relative calculation module is used for calculating the relative time accuracy of each pair of external standard time sources according to the time accuracy of each external standard time source;
the condition judging module is used for judging whether the corresponding relative time accuracy is greater than the corresponding accuracy threshold value or not aiming at each pair of external standard time sources, wherein the accuracy threshold value of each pair of external standard time sources is determined by measuring the time accuracy of the two external standard time sources when the two corresponding external standard time sources are normal in advance;
and the determining module is used for determining the current abnormal external standard time source from the N external standard time sources according to all judgment results.
9. A time-frequency terminal, comprising a memory, a processor and a transceiver, which are sequentially connected in communication, wherein the memory is used for storing a computer program, the transceiver is used for sending and receiving information, and the processor is used for reading the computer program and executing the time synchronization anti-interference method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon instructions for performing the method of time synchronization immunity of any one of claims 1-7 when the instructions are run on a computer.
CN202111364771.5A 2021-11-17 2021-11-17 Time synchronization anti-interference method and device, time-frequency terminal and storage medium Active CN114020096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111364771.5A CN114020096B (en) 2021-11-17 2021-11-17 Time synchronization anti-interference method and device, time-frequency terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111364771.5A CN114020096B (en) 2021-11-17 2021-11-17 Time synchronization anti-interference method and device, time-frequency terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114020096A true CN114020096A (en) 2022-02-08
CN114020096B CN114020096B (en) 2023-09-15

Family

ID=80064852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111364771.5A Active CN114020096B (en) 2021-11-17 2021-11-17 Time synchronization anti-interference method and device, time-frequency terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114020096B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695188A (en) * 2009-10-15 2010-04-14 上海华为技术有限公司 Method for correcting local time and clock server
CN101848193A (en) * 2009-03-27 2010-09-29 华为技术有限公司 Method, system and network node for network synchronization
CN102238719A (en) * 2010-04-27 2011-11-09 中国移动通信集团公司 Time synchronization method and device and distributed time synchronization system
CN104049525A (en) * 2014-03-24 2014-09-17 成都可为科技发展有限公司 Method for eliminating phase differences between multiple time input sources in clock
CN106773635A (en) * 2016-12-27 2017-05-31 天津七六四通信导航技术有限公司 A kind of time service precision detecting system and implementation method
CN110061797A (en) * 2019-05-29 2019-07-26 海尔优家智能科技(北京)有限公司 Method for synchronizing time, device, storage medium and computer equipment
WO2020043181A1 (en) * 2018-08-31 2020-03-05 中兴通讯股份有限公司 Clock synchronization method and apparatus, system, storage medium, and electronic device
CN112887122A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Clock fault positioning method and network equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848193A (en) * 2009-03-27 2010-09-29 华为技术有限公司 Method, system and network node for network synchronization
CN101695188A (en) * 2009-10-15 2010-04-14 上海华为技术有限公司 Method for correcting local time and clock server
CN102238719A (en) * 2010-04-27 2011-11-09 中国移动通信集团公司 Time synchronization method and device and distributed time synchronization system
CN104049525A (en) * 2014-03-24 2014-09-17 成都可为科技发展有限公司 Method for eliminating phase differences between multiple time input sources in clock
CN106773635A (en) * 2016-12-27 2017-05-31 天津七六四通信导航技术有限公司 A kind of time service precision detecting system and implementation method
WO2020043181A1 (en) * 2018-08-31 2020-03-05 中兴通讯股份有限公司 Clock synchronization method and apparatus, system, storage medium, and electronic device
CN110061797A (en) * 2019-05-29 2019-07-26 海尔优家智能科技(北京)有限公司 Method for synchronizing time, device, storage medium and computer equipment
CN112887122A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Clock fault positioning method and network equipment

Also Published As

Publication number Publication date
CN114020096B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN112035480A (en) Data table management method, device, equipment and storage medium
JP2023036681A (en) Task processing method, processing device, electronic equipment, storage medium, and computer program
US20150135159A1 (en) Event Based Code Generation
CN112784588B (en) Method, device, equipment and storage medium for labeling text
CN114020096A (en) Time synchronization anti-interference method and device, time-frequency terminal and storage medium
CN117195809A (en) Silk screen import method, device, equipment and storage medium
US20150006974A1 (en) Information processing technique for supporting data setting
CN115981996A (en) Test data generation method, device, equipment and storage medium
US8935710B1 (en) Unique event identification
CN115955518A (en) Communication conversion method, device and storage medium for communication between master equipment and slave equipment
CN113792232B (en) Page feature calculation method, page feature calculation device, electronic equipment, page feature calculation medium and page feature calculation program product
US11989560B2 (en) Method and device for executing instructions to perform artificial intelligence
CN115408034A (en) Vehicle-mounted controller upgrading method and device, electronic equipment and storage medium
CN112860811B (en) Method and device for determining data blood relationship, electronic equipment and storage medium
US20210241023A1 (en) Method for evaluating environmental noise of device, apparatus, medium and electronic device
CN113377476A (en) Interface display method, related device and computer program product
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN109522211A (en) Interface parameters transmission method, device, electronic equipment and storage medium
CN113434378B (en) Webpage stability detection method and device, electronic equipment and readable storage medium
CN115794255A (en) Data processing method and device, electronic equipment and storage medium
CN117056150A (en) Network attached storage detection method, device, equipment and storage medium
CN116841549A (en) Layer processing method and device, electronic equipment and storage medium
CN115421665A (en) Data storage method, device, equipment and storage medium
CN117768310A (en) Service topology generation method and device, electronic equipment and storage medium
CN118037472A (en) Financial data processing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant