A standard clock switching method and system based on Beidou or GPS dual system

Through the intelligent switching method of Beidou or GPS dual systems, the problem of time synchronization stability of a single satellite navigation system in complex environments is solved, achieving higher accuracy and adaptability, and reducing resource consumption.

CN118655600BActive Publication Date: 2024-11-08NANJING YUYUAN TECH DEV CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411095508.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-08
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

A single satellite navigation system may face signal occlusion, interference or system failure in complex environments, making it difficult for the stability and reliability of time synchronization to meet complex and changeable environmental needs.

Method used

The standard clock switching method based on Beidou or GPS dual systems is adopted. Through intelligent evaluation and fast switching mechanisms, the most reliable time source is selected as the standard clock, and the signal strength and signal response delay are monitored in real time to ensure the accuracy and stability of time synchronization.

Benefits of technology

In complex environments, the accuracy and stability of time synchronization are improved, the system's adaptability is enhanced, and the system's resource consumption is reduced and the overall energy efficiency ratio is improved by distinguishing between high-frequency and low-frequency update periods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655600B_ABST
    Figure CN118655600B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of time signal synchronization, and specifically relates to a standard clock switching method and system based on Beidou or GPS dual systems. The present invention can determine the output time source and alternative time source that need to be executed currently by evaluating the quality of Beidou satellite signals and GPS satellite signals, and then perform real-time monitoring and evaluation based on the signal strength and signal response delay of the output time source and the alternative time source, which not only realizes the instant judgment of the performance of a single time source, but also ensures the flexibility and accuracy of time source switching under the dual system architecture, and enhances its ability to adapt to complex environments and changing needs. In addition, when the output time source is in a stable execution period, by distinguishing between high-frequency update periods and low-frequency update periods, the system can not only ensure time accuracy, but also effectively reduce the consumption of system resources, thereby improving the energy efficiency of the overall system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of time signal synchronization, and in particular relates to a standard clock switching method and system based on Beidou or GPS dual systems. Background Art

[0002] With the rapid development of science and technology and the increasing requirements for time accuracy, standard clock switching technology based on satellite positioning systems has become an important means to ensure the accuracy of time synchronization. Beidou and GPS, as the two major global satellite navigation systems, have demonstrated excellent performance and broad application prospects in their respective fields.

[0003] However, a single satellite navigation system may face risks such as signal blocking, interference or system failure in actual applications. These uncertainties directly affect the stability and reliability of time synchronization. The stability and reliability of a single system are often difficult to meet the needs of complex and changing environments. Therefore, the standard clock switching method based on Beidou or GPS dual systems proposed in this scheme aims to further improve the accuracy and stability of time synchronization by means of parallel operation and intelligent switching of dual systems. Summary of the invention

[0004] The purpose of the present invention is to provide a standard clock switching method and system based on Beidou or GPS dual systems, which can ensure the accurate and stable output of the standard clock through intelligent evaluation and fast switching mechanism in a complex and changeable environment.

[0005] The technical solution adopted by the present invention is as follows:

[0006] A standard clock switching method based on Beidou or GPS dual systems, comprising:

[0007] Pre-process the acquired satellite signals, extract the time information of Beidou satellite signals and GPS satellite signals, and record them as Beidou time information and GPS time information respectively;

[0008] Performing quality assessment on the Beidou time information and the GPS time information, and outputting the confidence levels of the Beidou time information and the GPS time information respectively;

[0009] According to the confidence level, selecting an output time source and an alternative time source from the Beidou time information and the GPS time information, and recording the time information output by the output time source as a standard clock;

[0010] Monitoring the signal strength and signal response delay of the output time source, and determining the execution state of the output time source according to the signal strength and signal response delay of the output time source, wherein the execution state includes a normal execution state and an abnormal execution state;

[0011] In the normal execution state, the output time source continues to be used as a standard clock, and the signal strength and signal response delay of the output time source are synchronously recorded;

[0012] In the abnormal execution state, the signal strength and signal response delay of the candidate time source and the output time source are compared and evaluated, and the output time source is reselected as the standard clock based on the evaluation result.

[0013] In a preferred embodiment, the steps of preprocessing the acquired satellite signals, extracting the time information of the Beidou satellite signals and the GPS satellite signals, and recording them as the Beidou time information and the GPS time information respectively include:

[0014] Classifying the satellite signals into Beidou satellite signals and GPS satellite signals according to the signal sources of the satellite signals;

[0015] Decoding and demodulating the Beidou satellite signal and the GPS satellite signal to obtain Beidou time information and GPS time information;

[0016] The Beidou time information and the GPS time information are standardized to obtain Beidou time information and GPS time information in a unified format.

[0017] In a preferred embodiment, the step of performing quality assessment on the Beidou time information and the GPS time information and outputting the confidence of the Beidou time information and the GPS time information respectively comprises:

[0018] Acquire historical data of the Beidou time information and the GPS time information, wherein the historical data includes historical environmental factors and satellite signal quality parameters, and each of the environmental factors corresponds to a satellite signal quality parameter;

[0019] Get the environmental factors under the current node and record them as the current environmental factors;

[0020] Performing vector processing on the current environmental factors and the historical environmental factors to obtain a current environmental vector and a historical environmental vector;

[0021] Obtaining an evaluation function, and inputting the current environment vector and the historical environment vector into the evaluation function together, and recording the output result of the evaluation function as a screening condition parameter;

[0022] Arrange the screening condition parameters in descending order, and record the satellite signal quality parameter under the historical environment vector corresponding to the screening condition parameter with the highest ranking as the satellite signal quality evaluation value under the current environment, wherein the satellite signal quality evaluation value includes the Beidou satellite signal quality evaluation value and the GPS satellite signal quality evaluation value;

[0023] The Beidou satellite signal quality assessment value and the GPS satellite signal quality assessment value are compared with a preset confidence assessment interval to determine the confidence of the Beidou time information and the GPS time information respectively, wherein a plurality of confidence assessment intervals are provided and each confidence assessment interval corresponds to a confidence level.

[0024] In a preferred embodiment, the step of selecting an output time source and an alternative time source from the Beidou time information and the GPS time information according to the confidence level comprises:

[0025] Obtaining the confidence of the Beidou time information and the GPS time information;

[0026] If the confidence level of the Beidou time information is greater than or equal to the confidence level of the GPS time information, the Beidou time information is output as an output time source, and the GPS time information is output as an alternative time source;

[0027] If the confidence level of the Beidou satellite signal is less than the confidence level of the GPS satellite signal, the GPS time information is output as an output time source, and the Beidou time information is output as an alternative time source.

[0028] In a preferred embodiment, the step of monitoring the signal strength and signal response delay of the output time source and determining the execution state of the output time source according to the signal strength and signal response delay of the output time source comprises:

[0029] Counting the execution period of the output time source, and setting a plurality of sampling nodes within the execution period;

[0030] Collecting the signal strength of the output time source and the signal response delay of the output time source at each sampling node;

[0031] Obtaining an evaluation function, and inputting the signal strength and the signal response delay into the evaluation function, and calibrating the output result of the evaluation function as an evaluation condition parameter;

[0032] An evaluation threshold is obtained, and the evaluation threshold is compared with an evaluation condition parameter. When the evaluation condition parameter is greater than the evaluation threshold, the execution state of the output time source is recorded as a normal execution state. Otherwise, the execution state of the output time source is recorded as an abnormal execution state.

[0033] In a preferred solution, in the normal execution state, the signal strength and signal response delay of adjacent sampling nodes are respectively subjected to difference processing to obtain multiple groups of signal strength fluctuation values ​​corresponding to the signal strength and delay fluctuation values ​​corresponding to the signal response delay;

[0034] Obtaining a pre-calculation function, and inputting the signal strength fluctuation value and the delay fluctuation value into the pre-calculation function respectively, to obtain a signal strength trend value corresponding to the signal strength, and a delay trend value corresponding to the signal response delay;

[0035] Obtain a post-measurement function, and input the signal strength trend value and the delay trend value into the post-measurement function respectively, to obtain a first stable duration corresponding to the signal strength, and a second stable duration corresponding to the signal response delay;

[0036] The first stable duration is compared with the second stable duration, and when the first stable duration is greater than or equal to the second stable duration, the second stable duration is calibrated as the stable execution period of the output time source; otherwise, the first stable duration is calibrated as the stable execution period of the output time source.

[0037] In a preferred solution, after the stable execution period is output, the stable execution period is divided into a high-frequency update period and a low-frequency update period according to the length of the stable execution period. The specific process is as follows:

[0038] Obtaining the duration of the stable execution period and comparing it with the duration of the high-frequency update period;

[0039] If the duration of the stable execution period is longer than the duration of the high-frequency update period, dividing the stable execution period into a high-frequency update period and a low-frequency update period, wherein the high-frequency update period is executed after the low-frequency update period;

[0040] If the time length of the stable execution period is less than or equal to the standard execution period, the stable execution period is directly divided into a high-frequency update period.

[0041] In a preferred solution, the step of comparing and evaluating the signal strength and signal response delay of the candidate time source and the output time source, and reselecting the output time source as the standard clock according to the evaluation result, includes:

[0042] Acquire the signal strength and signal response delay of the candidate time source at the current moment, and simultaneously record the signal strength and signal response delay of the output time source at the same time point;

[0043] Obtaining a comparison function, and inputting the signal strength and signal response delay of the candidate time source and the output time source into the comparison function, and recording the output result of the comparison function as a comparison score;

[0044] If the comparison score is positive, it indicates that the candidate time source performs better than the output time source, and a clock source switching operation is performed to promote the candidate time source to the output time source;

[0045] If the comparison score is negative, it indicates that the output time source performs better than the candidate time source, and the clock source switching operation is not performed.

[0046] The present invention also provides a standard clock switching system based on Beidou or GPS dual systems, using the above-mentioned standard clock switching method based on Beidou or GPS dual systems, including:

[0047] A data acquisition module, wherein the data acquisition module is used to pre-process the acquired satellite signals, extract the time information of the Beidou satellite signals and the GPS satellite signals, and record them as Beidou time information and GPS time information respectively;

[0048] A quality assessment module, wherein the quality assessment module is used to perform quality assessment on the Beidou time information and the GPS time information, and output the confidence levels of the Beidou time information and the GPS time information respectively;

[0049] A standard clock output module, wherein the standard clock output module is used to select an output time source and an alternative time source from the Beidou time information and the GPS time information according to the confidence level, and record the time information output by the output time source as a standard clock;

[0050] A state output module, the state output module is used to monitor the signal strength and signal response delay of the output time source, and determine the execution state of the output time source according to the signal strength and signal response delay of the output time source, wherein the execution state includes a normal execution state and an abnormal execution state;

[0051] A first intervention module, the first intervention module is used to continue to use the output time source as a standard clock in the normal execution state, and synchronously record the signal strength and signal response delay of the output time source;

[0052] The second intervention module is used to compare and evaluate the signal strength and signal response delay of the candidate time source and the output time source in the abnormal execution state, and reselect the output time source as the standard clock according to the evaluation result.

[0053] And, an electronic device, the electronic device comprising:

[0054] at least one processor;

[0055] and a memory communicatively coupled to the at least one processor;

[0056] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned standard clock switching method based on the Beidou or GPS dual system.

[0057] The technical effects achieved by the present invention are:

[0058] The present invention can determine the output time source and the alternative time source that need to be executed currently by evaluating the quality of Beidou satellite signals and GPS satellite signals, and then perform real-time monitoring and evaluation based on the signal strength and signal response delay of the output time source and the alternative time source, which not only realizes the instant judgment of the performance of a single time source, but also ensures the flexibility and accuracy of time source switching under the dual system architecture, and enhances its ability to adapt to complex environments and changing needs. In addition, when the output time source is in a stable execution period, by distinguishing between a high-frequency update period and a low-frequency update period, the system can not only ensure the time accuracy, but also effectively reduce the consumption of system resources, thereby improving the energy efficiency of the overall system. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a schematic flow chart of the method of the present invention;

[0060] Figure 2 It is a schematic diagram of the system module of the present invention;

[0061] Figure 3 It is a schematic diagram of the structure of an electronic device of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0063] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0064] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The phrase "in a preferred embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.

[0065] See also Figure 1As shown, the present invention provides a standard clock switching method based on Beidou or GPS dual systems, comprising:

[0066] S1. Preprocess the acquired satellite signals, extract the time information of Beidou satellite signals and GPS satellite signals, and record them as Beidou time information and GPS time information respectively;

[0067] S2, perform quality assessment on Beidou time information and GPS time information, and output the confidence of Beidou time information and GPS time information respectively;

[0068] S3. Select an output time source and an alternative time source from the Beidou time information and the GPS time information according to the confidence level, and record the time information output by the output time source as a standard clock;

[0069] S4, monitoring the signal strength and signal response delay of the output time source, and determining the execution state of the output time source according to the signal strength and signal response delay of the output time source, wherein the execution state includes a normal execution state and an abnormal execution state;

[0070] S5. In the normal execution state, the output time source continues to be used as the standard clock, and the signal strength and signal response delay of the output time source are synchronously recorded;

[0071] S6. Under the abnormal execution state, the signal strength and signal response delay of the alternative time source and the output time source are compared and evaluated, and the output time source is reselected as the standard clock based on the evaluation result.

[0072] As described in the above steps S1-S6, with the continuous development and improvement of the Beidou satellite and GPS satellite systems, they can both provide high-precision time services. However, considering the potential risks of a single system, such as satellite failure, signal interference, etc., this solution realizes a standard clock switching mechanism by integrating the Beidou and GPS systems. First, a series of preprocessing is performed on the signals received from the satellite, including parsing and extracting the time information carried by the Beidou satellite and the GPS satellite, and marking them as Beidou time information and GPS time information respectively. After the Beidou time information and the GPS time information are output, a corresponding quality assessment is performed to calculate the confidence of the Beidou time information and the GPS time information, so as to quantify the reliability of the Beidou time information and the GPS time information. Then, based on the confidence of the Beidou time information and the GPS time information, the Beidou time information and the GPS time information are classified into two time sources, one as the main output time source and the other as the output time source. For the alternative time source, specifically, the confidence level is used to determine which time source is more reliable, thereby determining the output time source, and outputting the time information under the output time source as the standard clock. After the output time source is determined, the signal strength and signal response delay of the output time source will be continuously monitored, and the output time source will be determined to be in a normal execution state or an abnormal execution state based on the signal strength and signal response delay of the output time source. In the normal execution state, the output time source will continue to be used as the standard clock, and its signal strength and signal response delay will be recorded in real time for continuous performance evaluation. Once the output time source is in an abnormal execution state, the alternative time source will be started and compared with the output time source, including a comprehensive comparison of the signal strength and signal response delay of the alternative time source and the output time source, and a more reliable time source will be reselected as the new standard clock based on the evaluation results to ensure that accurate time information can be continuously provided.

[0073] In a preferred embodiment, the steps of preprocessing the acquired satellite signals, extracting the time information of the Beidou satellite signals and the GPS satellite signals, and recording them as the Beidou time information and the GPS time information respectively include:

[0074] S101, classifying the satellite signals into Beidou satellite signals and GPS satellite signals according to the signal sources of the satellite signals;

[0075] S102, decoding and demodulating Beidou satellite signals and GPS satellite signals to obtain Beidou time information and GPS time information;

[0076] S103, performing standardization processing on Beidou time information and GPS time information to obtain Beidou time information and GPS time information in a unified format.

[0077] As described in the above steps S101-S103, in order to ensure the accuracy and reliability of the satellite signals, corresponding preprocessing operations need to be performed on them so as to extract the time information carried by the Beidou satellite signals and the GPS satellite signals, and record these information as Beidou time information and GPS time information respectively. First, according to the signal source of the satellite signals, the satellite signals are divided into Beidou satellite signals and GPS satellite signals. Then, the Beidou satellite signals and the GPS satellite signals need to be decoded and demodulated. Decoding refers to converting the digital signals in the satellite signals into the original Beidou time information and GPS time information, while demodulation refers to extracting these time information from the signals so that they are readable and operable, thereby obtaining the Beidou time information and the GPS time information. Finally, the obtained Beidou time information and GPS time information need to be standardized so that they are in a unified format. The purpose is to facilitate subsequent data processing and analysis and improve the compatibility and versatility of the data. By standardizing the time information, it can be ensured that data from different sources and formats can be compared and analyzed on the same platform.

[0078] In a preferred embodiment, the steps of performing quality assessment on Beidou time information and GPS time information and outputting the confidence of Beidou time information and GPS time information respectively include:

[0079] S201, obtaining historical data of Beidou time information and GPS time information, where the historical data includes historical environmental factors and satellite signal quality parameters, and each environmental factor corresponds to a satellite signal quality parameter;

[0080] S202, obtaining the environmental factors under the current node and recording them as the current environmental factors;

[0081] S203, performing vector processing on the current environmental factors and the historical environmental factors to obtain a current environmental vector and a historical environmental vector;

[0082] S204, obtaining an evaluation function, and inputting the current environment vector and the historical environment vector into the evaluation function together, and recording the output result of the evaluation function as a screening condition parameter;

[0083] S205, arranging the screening condition parameters in descending order, and recording the satellite signal quality parameter under the historical environment vector corresponding to the screening condition parameter with the highest arrangement order as the satellite signal quality evaluation value under the current environment, wherein the satellite signal quality evaluation value includes the Beidou satellite signal quality evaluation value and the GPS satellite signal quality evaluation value;

[0084] S206. Compare the Beidou satellite signal quality assessment value and the GPS satellite signal quality assessment value with a preset confidence assessment interval to respectively determine the confidence of the Beidou time information and the GPS time information, wherein a plurality of confidence assessment intervals are provided, and each confidence assessment interval corresponds to a confidence level.

[0085] As in the above steps S201-S206, in order to ensure the accuracy of Beidou time information and GPS time information, it is first necessary to collect historical data of Beidou time information and GPS time information. The historical data covers various environmental factors and satellite signal quality parameters corresponding to each environmental factor. For example, environmental factors such as temperature, humidity, and light will affect the propagation and reception of satellite signals. These influences will be reflected through satellite signal quality parameters. Secondly, the environmental factors under the current node must be obtained and recorded as the current environmental factors, and the current environmental factors and historical environmental factors must be vectorized to obtain the current environmental vector and the historical environmental vector, respectively. The purpose is to convert complex environmental factors and satellite signal quality parameters into numerical vectors that can be input into the evaluation function, and then introduce the evaluation function, and input the current environmental vector and the historical environmental vector into the evaluation function together. The expression of the evaluation function is: , where Indicates the filter condition parameters. Indicates the number of feature points in the current environment vector and the historical environment vector, represents the current environment vector, Represents the historical environment vector. The screening condition parameters can be obtained through the evaluation function and used as the basis for evaluating the satellite signal quality. After obtaining the screening condition parameters, the screening condition parameters are arranged in descending order. The satellite signal quality parameters under the historical environment vector corresponding to the highest-ranked screening condition parameter will be recorded as the satellite signal quality evaluation value under the current environment. Here, the satellite signal quality evaluation value covers the Beidou satellite signal quality evaluation value and the GPS satellite signal quality evaluation value. Finally, the Beidou satellite signal quality evaluation value and the GPS satellite signal quality evaluation value are compared with the preset confidence evaluation interval. Through the comparison results, the confidence of the Beidou time information and the GPS time information can be determined respectively. It is worth noting that there are multiple confidence evaluation intervals, and each confidence evaluation interval corresponds to a specific confidence.

[0086] In a preferred embodiment, the step of selecting an output time source and an alternative time source from Beidou time information and GPS time information according to the confidence level comprises:

[0087] Get the confidence of Beidou time information and GPS time information;

[0088] If the confidence level of the Beidou time information is greater than or equal to the confidence level of the GPS time information, the Beidou time information is output as the output time source, and the GPS time information is output as the alternative time source;

[0089] If the confidence level of the Beidou satellite signal is less than that of the GPS satellite signal, the GPS time information is output as the output time source and the Beidou time information is output as the alternative time source.

[0090] In this implementation, in order to ensure the accuracy and reliability of time synchronization, it is necessary to identify and select a suitable output time source and its backup time source from the Beidou time signal and the GPS time signal. First, the confidence of the Beidou satellite signal and the GPS satellite signal will be collected respectively, and corresponding comparisons will be made. During the comparison process, it will first be determined whether the confidence of the Beidou time signal reaches or exceeds the confidence of the GPS time signal. If the confidence of the Beidou time information is greater than or equal to the confidence of the GPS time information, the Beidou time signal will be determined as the main output time source and used as the standard clock. At the same time, the GPS time signal is set as an alternative time source. On the contrary, when the confidence of the Beidou time signal fails to reach the confidence level of the GPS time signal, the GPS time signal will be identified as the output time source, and the Beidou time signal will be correspondingly converted to an alternative time source. Its function is to be able to quickly switch to maintain the time accuracy of the standard clock when the GPS signal is unavailable or the reliability decreases.

[0091] In a preferred embodiment, the steps of monitoring the signal strength and signal response delay of the output time source and determining the execution state of the output time source according to the signal strength and signal response delay of the output time source include:

[0092] S401, counting and outputting the execution period of the time source, and setting a plurality of sampling nodes within the execution period;

[0093] S402, collecting the signal strength of the output time source and the signal response delay of the output time source at each sampling node;

[0094] S403, obtaining an evaluation function, and inputting the signal strength and the signal response delay into the evaluation function, and calibrating the output result of the evaluation function as an evaluation condition parameter;

[0095] S404, obtaining an evaluation threshold, and comparing the evaluation threshold with an evaluation condition parameter, and when the evaluation condition parameter is greater than the evaluation threshold, recording the execution state of the output time source as a normal execution state, otherwise, recording the execution state of the output time source as an abnormal execution state.

[0096] As described in the above steps S401-S404, after the output time source is determined, the signal strength and signal response delay of the output time source will be monitored, and the execution status of the output time source will be determined based on these monitoring data. First, it is necessary to count the execution period of the output time source, set multiple sampling nodes within the execution period, and collect the signal strength and signal response delay data of the output time source in different time periods under each sampling node, and then collect the signal strength and signal response delay of the output time source under each sampling node, including measuring the signal strength of the output time source at each sampling node, and evaluating the signal response delay, and then introduce an evaluation function, and input the signal strength and signal response delay data into the evaluation function together, wherein the expression of the evaluation function is: , where Represents the evaluation condition parameters, represents the weight coefficient of signal strength, Indicates the number of acquisitions of signal strength, The number of samples representing the signal response delay, Indicates signal strength, The weight coefficient representing the signal response delay, It represents the signal response delay. Through the processing of the evaluation function, the evaluation condition parameter can be obtained. Then the evaluation threshold is introduced, and the evaluation threshold is compared with the evaluation condition parameter. If the evaluation condition parameter is greater than the evaluation threshold, the execution status of the output time source is recorded as the normal execution status. On the contrary, if the evaluation condition parameter is less than or equal to the evaluation threshold, the execution status of the output time source is recorded as the abnormal execution status, and an alarm signal is issued after the abnormal execution status is output.

[0097] In a preferred embodiment, in a normal execution state, the signal strength and signal response delay at adjacent sampling nodes are respectively subjected to difference processing to obtain multiple groups of signal strength fluctuation values ​​corresponding to the signal strength and delay fluctuation values ​​corresponding to the signal response delay;

[0098] Obtain a pre-calculation function, and input the signal strength fluctuation value and the delay fluctuation value into the pre-calculation function respectively, to obtain a signal strength trend value corresponding to the signal strength, and a delay trend value corresponding to the signal response delay;

[0099] Obtain a post-measurement function, and input the signal strength trend value and the delay trend value into the post-measurement function respectively, to obtain a first stable duration corresponding to the signal strength, and a second stable duration corresponding to the signal response delay;

[0100] The first stable duration is compared with the second stable duration, and when the first stable duration is greater than or equal to the second stable duration, the second stable duration is calibrated as the stable execution period of the output time source; otherwise, the first stable duration is calibrated as the stable execution period of the output time source.

[0101] In this implementation, during the normal execution of the output time source, the signal strength received at adjacent sampling nodes and the delay of the signal response are carefully differentially processed. In this way, multiple groups of signal strength fluctuation values ​​representing the fluctuation of the signal strength and multiple groups of delay fluctuation values ​​corresponding to the changes in the signal response delay can be obtained, and then the pre-calculation function is first introduced, wherein the expression of the pre-calculation function is: , where Indicates the signal strength trend value, Indicates the latency trend value. Indicates the length of the execution period. A quantity that indicates signal strength and signal response delay. Indicates the signal strength fluctuation value during the execution period. It represents the delay fluctuation value within the execution period. By taking the signal strength fluctuation value and the delay fluctuation value as input parameters and applying them to the pre-calculation function, the corresponding signal strength trend value and delay trend value can be obtained. Then, the post-calculation function is introduced, and the signal strength trend value and the delay trend value are taken as input parameters and applied to the post-calculation function. The expression of the post-calculation function is: , where Indicates the first stable duration, Indicates the second stable duration, Indicates the minimum standard of signal strength. Indicates the signal strength at the current moment. Indicates the minimum standard of signal response delay. Represents the signal response delay at the current moment. After being processed by the post-measurement function, the first stable time corresponding to the signal strength and the second stable time corresponding to the signal response delay can be obtained. Finally, the first stable time and the second stable time are compared. If the first stable time is greater than or equal to the second stable time, the second stable time is used as the stable execution period of the output time source. Conversely, if the first stable time is less than the second stable time, the first stable time is used as the stable execution period of the output time source. In this way, the time period in which the output time source can be stably executed is predicted, providing data support for subsequent maintenance or optimization.

[0102] In a preferred embodiment, after the stable execution period is output, the stable execution period is divided into a high-frequency update period and a low-frequency update period according to the length of the stable execution period. The specific process is as follows:

[0103] Obtain the length of the stable execution period and compare it with the length of the high-frequency update period;

[0104] If the duration of the stable execution period is longer than the duration of the high-frequency update period, the stable execution period is divided into a high-frequency update period and a low-frequency update period, wherein the high-frequency update period is executed after the low-frequency update period;

[0105] If the time length of the stable execution period is less than or equal to the time length of the high-frequency update period, the stable execution period is directly divided into the high-frequency update period.

[0106] In the above, after completing the output work of the stable execution period, it is necessary to further divide it according to the specific duration of the stable execution period, and divide it into a high-frequency update period and a low-frequency update period. First, the total time length of the stable execution period needs to be obtained, and then the total time length of the stable execution period is compared with the time length of the high-frequency update period. When the total time length of the stable execution period is greater than the time length of the high-frequency update period, the stable execution period will be divided into two parts, one is the high-frequency update period, and the other is the low-frequency update period. It should be noted that the high-frequency update period will be carried out after the low-frequency update period, which can not only effectively reduce the corresponding resource occupancy, but also ensure the output validity of the standard clock time information. When the total time length of the stable execution period is less than or equal to the time length of the high-frequency update period, the stable execution period does not need to be divided again, and it can be directly regarded as a high-frequency update period to ensure the update validity of the output time source time information.

[0107] In a preferred embodiment, the step of comparing and evaluating the signal strength and signal response delay of the candidate time source and the output time source, and reselecting the output time source as the standard clock according to the evaluation result includes:

[0108] S601, obtaining the signal strength and signal response delay of the candidate time source at the current time, and recording the signal strength and signal response delay of the output time source at the same time point;

[0109] S602, obtaining a comparison function, and inputting the signal strength and signal response delay of the candidate time source and the output time source into the comparison function, and recording the output result of the comparison function as a comparison score;

[0110] If the comparison score is positive, it indicates that the candidate time source performs better than the output time source, and the clock source switching operation is performed to promote the candidate time source to the output time source;

[0111] If the comparison score is negative, it indicates that the output time source performs better than the alternative time source, and the clock source switching operation is not performed.

[0112] As described in the above steps S601-S602, in order to ensure the accuracy and response speed of the system time, it is first necessary to measure and record the signal strength and signal response delay of the alternative time source and the output time source at the current moment, including real-time monitoring of the output time source and the alternative time source to obtain their signal strength and signal response delay at the same time point, and then use a comparison function to quantitatively evaluate the signal strength and signal response delay, wherein the expression of the comparison function is: , where Represents the comparison score, Indicates the signal strength of the alternative time source, Indicates the signal strength of the output time source, Indicates the signal response delay of the alternative time source, It represents the signal response delay of the output time source, and then the comparison score is judged. If the comparison score of the alternative time source is higher than that of the output time source, it means that the performance of the alternative time source is better. At this time, the clock source switching operation will be performed, and the alternative time source will be set as the new output time source to ensure the accuracy and reliability of the system time. On the contrary, if the comparison score of the output time source is higher than that of the alternative time source, it means that the output time source still maintains a better performance in terms of signal strength and signal response delay. In this case, we will not perform the clock source switching operation and maintain the current output time source unchanged. Through such an evaluation and switching mechanism, the time source can be dynamically adjusted to ensure the best time accuracy and service response speed, thereby meeting the output requirements of the standard clock.

[0113] See also Figure 2 A standard clock switching system based on Beidou or GPS dual systems, using the above-mentioned standard clock switching method based on Beidou or GPS dual systems, including:

[0114] The data acquisition module is used to pre-process the acquired satellite signals, extract the time information of Beidou satellite signals and GPS satellite signals, and record them as Beidou time information and GPS time information respectively;

[0115] The quality assessment module is used to perform quality assessment on Beidou time information and GPS time information, and output the confidence of Beidou time information and GPS time information respectively;

[0116] The standard clock output module is used to select an output time source and an alternative time source from the Beidou time information and the GPS time information according to the confidence level, and record the time information output by the output time source as a standard clock;

[0117] A state output module, the state output module is used to monitor the signal strength and signal response delay of the output time source, and determine the execution state of the output time source according to the signal strength and signal response delay of the output time source, wherein the execution state includes a normal execution state and an abnormal execution state;

[0118] A first intervention module, the first intervention module is used to continue to use the output time source as a standard clock in a normal execution state, and synchronously record the signal strength and signal response delay of the output time source;

[0119] The second intervention module is used to compare and evaluate the signal strength and signal response delay of the candidate time source and the output time source under abnormal execution state, and reselect the output time source as the standard clock according to the evaluation result.

[0120] As mentioned above, the system includes a data acquisition module, a quality assessment module, a standard clock output module, a state output module, a first intervention module and a second intervention module. The data acquisition module is responsible for receiving and processing signals from satellites. During the processing, the system can accurately extract the time information carried by Beidou satellite signals and GPS satellite signals, and record this information as Beidou time information and GPS time information respectively. The quality assessment module will conduct in-depth analysis and evaluation of the collected Beidou time information and GPS time information, and output the confidence of the two, that is, the credibility measurement, for subsequent decision-making. Under the action of the standard clock output module, the system will decide which is the output time source and which is the alternative time source according to the confidence of Beidou time information and GPS time information. Then, the system will select the time information provided by the output time source as the standard clock to ensure the time synchronization of the entire system. The main function of the state output module is to ensure the time synchronization of the entire system. The task is to monitor the signal strength and signal response delay of the output time source in real time. Based on these monitoring data, the status output module can determine whether the output time source is in a normal execution state or an abnormal execution state. In the normal execution state, the first intervention module will continue to use the output time source as the standard clock, and synchronously record the signal strength and signal response delay of the output time source for subsequent analysis and evaluation. When the system detects an abnormal execution state, the second intervention module will intervene to conduct a detailed comparative evaluation of the signal strength and signal response delay of the alternative time source and the output time source. Based on this evaluation result, the system will reselect an output time source to ensure the accuracy and stability of the standard clock.

[0121] See also Figure 3 , an electronic device, characterized in that: the electronic device comprises:

[0122] at least one processor;

[0123] and a memory communicatively coupled to the at least one processor;

[0124] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the above-mentioned standard clock switching method based on the Beidou or GPS dual system.

[0125] In the above, the processor of the electronic device can be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP) or any other type of processing unit, which is responsible for executing the computer program stored in the memory of the electronic device. These processors have powerful computing power and can efficiently handle complex clock switching algorithms and data processing tasks to ensure the high accuracy and stability of the system time. The memory is an important component of the electronic device and is used to store operating systems, computer programs, data and various configuration files. In the scenario of the above electronic device, the memory stores computer programs that implement the standard clock switching method based on the Beidou or GPS dual system. When these programs are executed, they will guide the processor to complete a series of operations from data acquisition, quality assessment to clock source switching, thereby ensuring the accuracy and reliability of the standard clock.

[0126] In addition, the electronic device may also include other necessary hardware components, such as an arithmetic unit, input / output devices, and various interface circuits, etc. These components work together to form a complete system architecture of the electronic device.

[0127] In terms of specific implementation, the operator of an electronic device is responsible for performing arithmetic and logical operations, supporting the processor to process data efficiently. Input / output devices provide users with a way to interact with electronic devices, such as inputting instructions through a keyboard or viewing information such as clock status through a display. Interface circuits are responsible for connecting electronic devices to external devices or networks to achieve data transmission and sharing.

[0128] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0129] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.

Claims

1. A standard clock switching method based on Beidou or GPS dual system, characterized in that: include: Pre-process the acquired satellite signals, extract the time information of Beidou satellite signals and GPS satellite signals, and record them as Beidou time information and GPS time information respectively; Performing quality assessment on the Beidou time information and the GPS time information, and outputting the confidence levels of the Beidou time information and the GPS time information respectively; According to the confidence level, selecting an output time source and an alternative time source from the Beidou time information and the GPS time information, and recording the time information output by the output time source as a standard clock; Monitoring the signal strength and signal response delay of the output time source, and determining the execution state of the output time source according to the signal strength and signal response delay of the output time source, wherein the execution state includes a normal execution state and an abnormal execution state; In the normal execution state, the output time source continues to be used as the standard clock, and the signal strength and signal response delay of the output time source are synchronously recorded; In the abnormal execution state, the signal strength and signal response delay of the candidate time source and the output time source are compared and evaluated, and the output time source is reselected as the standard clock according to the evaluation result; The step of comparing and evaluating the signal strength and signal response delay of the candidate time source and the output time source, and reselecting the output time source as the standard clock according to the evaluation result, includes: Acquire the signal strength and signal response delay of the candidate time source at the current moment, and simultaneously record the signal strength and signal response delay of the output time source at the same time point; Obtaining a comparison function, and inputting the signal strength and signal response delay of the candidate time source and the output time source into the comparison function, and recording the output result of the comparison function as a comparison score; If the comparison score is positive, it indicates that the candidate time source performs better than the output time source, and a clock source switching operation is performed to promote the candidate time source to the output time source; If the comparison score is negative, it indicates that the output time source performs better than the candidate time source, and the clock source switching operation is not performed.

2. The standard clock switching method based on Beidou or GPS dual system according to claim 1, characterized in that: The steps of preprocessing the acquired satellite signals, extracting the time information of the Beidou satellite signals and the GPS satellite signals, and recording them as the Beidou time information and the GPS time information respectively include: Classifying the satellite signals into Beidou satellite signals and GPS satellite signals according to the signal sources of the satellite signals; Decoding and demodulating the Beidou satellite signal and the GPS satellite signal to obtain Beidou time information and GPS time information; The Beidou time information and the GPS time information are standardized to obtain Beidou time information and GPS time information in a unified format.

3. The standard clock switching method based on Beidou or GPS dual system according to claim 1, characterized in that: The step of performing quality assessment on the Beidou time information and the GPS time information and outputting the confidence of the Beidou time information and the GPS time information respectively comprises: Acquire historical data of the Beidou time information and the GPS time information, wherein the historical data includes historical environmental factors and satellite signal quality parameters, and each of the environmental factors corresponds to a satellite signal quality parameter; Get the environmental factors under the current node and record them as the current environmental factors; Performing vector processing on the current environmental factors and the historical environmental factors to obtain a current environmental vector and a historical environmental vector; Obtaining an evaluation function, and inputting the current environment vector and the historical environment vector into the evaluation function together, and recording the output result of the evaluation function as a screening condition parameter; Arrange the screening condition parameters in descending order, and record the satellite signal quality parameter under the historical environment vector corresponding to the screening condition parameter with the highest ranking as the satellite signal quality evaluation value under the current environment, wherein the satellite signal quality evaluation value includes the Beidou satellite signal quality evaluation value and the GPS satellite signal quality evaluation value; The Beidou satellite signal quality assessment value and the GPS satellite signal quality assessment value are compared with a preset confidence assessment interval to determine the confidence of the Beidou time information and the GPS time information respectively, wherein a plurality of confidence assessment intervals are provided and each confidence assessment interval corresponds to a confidence level.

4. The standard clock switching method based on Beidou or GPS dual system according to claim 1, characterized in that: The step of selecting an output time source and an alternative time source from the Beidou time information and the GPS time information according to the confidence level comprises: Obtaining the confidence of the Beidou time information and the GPS time information; If the confidence level of the Beidou time information is greater than or equal to the confidence level of the GPS time information, the Beidou time information is output as an output time source, and the GPS time information is output as an alternative time source; If the confidence level of the Beidou satellite signal is less than the confidence level of the GPS satellite signal, the GPS time information is output as an output time source, and the Beidou time information is output as an alternative time source.

5. The standard clock switching method based on Beidou or GPS dual system according to claim 1, characterized in that: The step of monitoring the signal strength and signal response delay of the output time source, and determining the execution state of the output time source according to the signal strength and signal response delay of the output time source, comprises: Counting the execution period of the output time source, and setting a plurality of sampling nodes within the execution period; Collecting the signal strength of the output time source and the signal response delay of the output time source at each sampling node; Obtaining an evaluation function, and inputting the signal strength and the signal response delay into the evaluation function, and calibrating the output result of the evaluation function as an evaluation condition parameter; An evaluation threshold is obtained, and the evaluation threshold is compared with an evaluation condition parameter. When the evaluation condition parameter is greater than the evaluation threshold, the execution state of the output time source is recorded as a normal execution state. Otherwise, the execution state of the output time source is recorded as an abnormal execution state.

6. The standard clock switching method based on Beidou or GPS dual system according to claim 5, characterized in that: In the normal execution state, the signal strengths and signal response delays at adjacent sampling nodes are subjected to difference processing to obtain multiple groups of signal strength fluctuation values ​​corresponding to the signal strengths and delay fluctuation values ​​corresponding to the signal response delays; Obtaining a pre-calculation function, and inputting the signal strength fluctuation value and the delay fluctuation value into the pre-calculation function respectively, to obtain a signal strength trend value corresponding to the signal strength, and a delay trend value corresponding to the signal response delay; Obtain a post-measurement function, and input the signal strength trend value and the delay trend value into the post-measurement function respectively, to obtain a first stable duration corresponding to the signal strength, and a second stable duration corresponding to the signal response delay; The first stable duration is compared with the second stable duration, and when the first stable duration is greater than or equal to the second stable duration, the second stable duration is calibrated as the stable execution period of the output time source; otherwise, the first stable duration is calibrated as the stable execution period of the output time source.

7. A standard clock switching method based on Beidou or GPS dual system according to claim 6, characterized in that: After the stable execution period is output, the stable execution period is divided into a high-frequency update period and a low-frequency update period according to the length of the stable execution period. The specific process is as follows: Obtaining the duration of the stable execution period and comparing it with the duration of the high-frequency update period; If the duration of the stable execution period is longer than the duration of the high-frequency update period, dividing the stable execution period into a high-frequency update period and a low-frequency update period, wherein the high-frequency update period is executed after the low-frequency update period; If the time length of the stable execution period is less than or equal to the time length of the high-frequency update period, the stable execution period is directly divided into the high-frequency update period.

8. A standard clock switching system based on Beidou or GPS dual system, characterized in that: The standard clock switching method based on Beidou or GPS dual system according to any one of claims 1 to 7 comprises: A data acquisition module, wherein the data acquisition module is used to pre-process the acquired satellite signals, extract the time information of the Beidou satellite signals and the GPS satellite signals, and record them as Beidou time information and GPS time information respectively; A quality assessment module, wherein the quality assessment module is used to perform quality assessment on the Beidou time information and the GPS time information, and output the confidence levels of the Beidou time information and the GPS time information respectively; A standard clock output module, wherein the standard clock output module is used to select an output time source and an alternative time source from the Beidou time information and the GPS time information according to the confidence level, and record the time information output by the output time source as a standard clock; A state output module, the state output module is used to monitor the signal strength and signal response delay of the output time source, and determine the execution state of the output time source according to the signal strength and signal response delay of the output time source, wherein the execution state includes a normal execution state and an abnormal execution state; A first intervention module, the first intervention module is used to continue to use the output time source as a standard clock in the normal execution state, and synchronously record the signal strength and signal response delay of the output time source; The second intervention module is used to compare and evaluate the signal strength and signal response delay of the candidate time source and the output time source in the abnormal execution state, and reselect the output time source as the standard clock according to the evaluation result.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the standard clock switching method based on the Beidou or GPS dual system as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for determining a period

    CN109804414A

  • Multi-clock-source high-reliability time synchronization method

    CN113422664A

  • Comprehensive source selection method based on multi-time source fusion

    CN115499082A

  • Clock optimization method and clock equipment

    CN115551069A

  • Standard time system

    CN210294824U