A timing method, timing device, equipment, medium and product
By detecting and identifying interfering signals, using the coupling technology between satellite signals and local clocks, the accuracy and reliability problems of existing timing technology under long-term signal interference or multi-source interference are solved, and high-precision and stable time synchronization are achieved. .
Patent Information
- Application Number
- CN202410842583.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The existing timing technology is difficult to achieve accurate and reliable time synchronization under long-term signal interference or multi-source interference, resulting in cumulative errors and security issues in timing results.
By receiving satellite signals, detecting interference signals, identifying them using machine learning models, and coupling the timing information of the satellite signal with the timing information of the local clock, calculating time deviations to adjust the local clock, and improving the accuracy and reliability of the timing results.
Effectively prevent the impact of interference and spoofing signals on timing results, improve timing accuracy and reliability, and ensure stable operation of time synchronization.
Smart Images

Figure CN118759820B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of timing technology, and in particular to a timing method, timing device, equipment, medium and product. Background Art
[0002] Accurate time synchronization is very important in various scenarios of today's human society, such as power systems, financial transactions, communication networks, sports competitions, etc. Its synchronization method relies on the combination of radio satellite communication technology and timing technology. In practical applications, timing information is often affected by signal interference or deception. In order to obtain accurate timing information, it is necessary to effectively deal with the interference or deception signals in the environment to avoid adverse effects on the normal operation of the timing system.
[0003] The current treatment methods include hardware filtering and algorithm identification, but these two treatment methods still have some problems. For example, when there is long-term signal interference or deception for more than several hours in the environment, even if the local atomic clock is used for timing, the timing results will produce a large cumulative error as time shifts; for example, when there are multiple interference or deception sources or multiple types of interference or deception in the environment, the existing treatment solutions cannot eliminate all interference or deception signals, which will affect the safety and accuracy of timing.
[0004] Therefore, how to achieve a timing solution with ideal accuracy and reliability has become a technical problem that needs to be solved in this field. Summary of the invention
[0005] In view of this, the present application proposes a timing method, a timing device, equipment, a medium and a product to improve the accuracy and reliability of the timing results.
[0006] In a first aspect, the present application proposes a timing method, comprising:
[0007] Receiving and detecting satellite signals to determine whether there is an interference signal in the satellite signals;
[0008] In response to the presence of an interference signal in the satellite signal, coupling the timing information of the satellite signal with the timing information of the local clock to obtain a time deviation; and
[0009] The local clock is adjusted according to the time deviation to obtain a timing result.
[0010] Preferably, the satellite signal is a global navigation satellite system signal.
[0011] Preferably, the determining whether there is an interference signal in the satellite signal includes:
[0012] The historical samples of the interference signal are used as a training set for machine learning training to obtain an interference signal recognition model, and whether there is an interference signal in the satellite signal is determined based on the interference signal recognition model.
[0013] Preferably, the coupling of the timing information of the satellite signal and the timing information of the local clock further includes:
[0014] One-way coupling or two-way coupling is performed between the timing information of the satellite signal and the timing information of the local clock.
[0015] Further preferably, the bidirectional coupling includes:
[0016] Acquire the timing weight of the satellite signal, the timing weight of the local clock, the timing information of the satellite signal and the timing information of the local clock;
[0017] Calculate the time deviation according to the timing weight of the satellite signal, the timing weight of the local clock, the timing information of the satellite signal and the timing information of the local clock;
[0018] The calculation formula is:
[0019] Δt S =Δt G *w G +Δt L *w L ;
[0020] Among them, Δt G is the timing information of the satellite signal, w G is the timing weight of the satellite signal, Δt L is the timing information of the local clock, w L is the timing weight of the local clock, Δt S is the time deviation.
[0021] Further preferably, the acquiring the timing weight of the satellite signal, the timing weight of the local clock, and the timing information of the satellite signal includes:
[0022] Analyzing the satellite signal to obtain early warning information of the satellite signal;
[0023] The timing weight of the satellite signal, the timing weight of the local clock and the timing information of the satellite signal are obtained according to the early warning information of the satellite signal.
[0024] Further preferably, the step of analyzing the satellite signal to obtain the early warning information of the satellite signal includes:
[0025] Analyzing the satellite signal to obtain characteristic parameters of the satellite signal;
[0026] Obtaining early warning information of the satellite signal according to characteristic parameters of the satellite signal;
[0027] The characteristic parameters of the satellite signal include: the integral value of the satellite signal in the E and / or P and / or L correlator of the in-phase path and / or the integral value of the E and / or P and / or L correlator of the orthogonal path; or the automatic gain control value of the satellite signal.
[0028] Further preferably, obtaining the timing weight of the satellite signal and the timing weight of the local clock according to the early warning information of the satellite signal includes:
[0029] According to the early warning information of the satellite signal, the initial timing weight of the satellite signal and the initial timing weight of the local clock are adjusted to obtain the adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock, and the time deviation is calculated according to the adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock;
[0030] The adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock are negatively correlated.
[0031] Further preferably, the adjusting the initial timing weight of the satellite signal and the initial timing weight of the local clock includes:
[0032] The timing information of the local clock and the historical samples of satellite signals with interference signals are used as training sets for machine learning training to obtain a weight calculation model;
[0033] The weight calculation model is used to obtain the initial timing weight of the satellite signal and the initial timing weight of the local clock, so as to adjust the initial timing weight of the satellite signal and the initial timing weight of the local clock obtained by using the weight calculation model according to the early warning information.
[0034] Further preferably, obtaining the timing information of the satellite signal according to the early warning information of the satellite signal includes:
[0035] Obtaining a weight of the satellite signal according to the early warning information of the satellite signal;
[0036] Calculating the timing information of the satellite signal according to the weight of the satellite signal;
[0037] The calculation formula is:
[0038]
[0039] Among them, Δt G is the timing information of the satellite signal; d itis the actual distance from the signal receiving position to the i-th satellite calculated based on the position of the i-th satellite and the signal receiving position, d iρ is the distance from the signal receiving position to the i-th satellite obtained based on the satellite signal of the i-th satellite, t i is the clock error of the ith satellite obtained from the ephemeris, w i is the weight of the satellite signal of the i-th satellite, N is the number of satellites, c is the speed of light, and i is a natural number from 0 to N.
[0040] Further preferably, obtaining the timing information of the local clock includes:
[0041] Using the local clock of the current device, the timing information of the local clock is obtained.
[0042] In a second aspect, the present application proposes a timing device, comprising:
[0043] A detection module, the detection module is used to receive and detect satellite signals to determine whether there is an interference signal in the satellite signals;
[0044] a coupling module, wherein the coupling module is configured to couple the timing information of the satellite signal with the timing information of the local clock to obtain a time deviation in response to the presence of an interference signal in the satellite signal according to a judgment result of the detection module; and
[0045] A timing module is used to adjust the local clock according to the time deviation to obtain a timing result.
[0046] In a third aspect, the present application provides an electronic device, comprising:
[0047] processor;
[0048] a memory for storing instructions executable by the processor;
[0049] The processor is used to read the executable instructions from the memory and execute the instructions to implement the method in the first aspect above.
[0050] In a fourth aspect, the present application proposes a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method in the first aspect.
[0051] In a fifth aspect, the present application proposes a computer program product, comprising a computer program or instructions, characterized in that the computer program or the instructions implement the method in the above-mentioned first aspect when executed by a computer.
[0052] According to the technical solution of the present application, it is determined whether there is an interference signal in the satellite signal. In response to the presence of the interference signal in the satellite signal, the timing information of the satellite signal and the timing information of the local clock are coupled to obtain the time deviation and adjust the local clock. This effectively prevents interference and deception signals from having an adverse effect on the timing results, while improving the accuracy and reliability of the timing results, thereby providing a guarantee for the stable operation of the system on which it is carried in terms of time synchronization.
[0053] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings constituting a part of the present application are used to provide a further understanding of the present application, and the schematic implementation modes and descriptions of the present application are used to explain the present application. In the accompanying drawings:
[0055] Figure 1 It is a flowchart of a timing method according to a preferred embodiment of the present application;
[0056] Figure 2 A schematic diagram of a timing device for applying for a preferred embodiment;
[0057] Figure 3 A schematic diagram of the structure of an electronic device according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0058] The technical solution of the present application will be described in detail below with reference to the accompanying drawings and in combination with the implementation modes.
[0059] First of all, a timing method proposed in this application is as follows: Figure 1 The process shown includes steps 110 - 130 .
[0060] Step 110, receiving and detecting satellite signals to determine whether there is an interference signal in the satellite signals;
[0061] Specifically, the satellite signal itself is relatively weak and is easily interfered by other radio signals. For example, during signal transmission, if a nearby radio transmitter sends a false signal with a frequency close to or the same as the satellite signal to the target receiver, it may cover or confuse the real satellite signal, causing the receiver to receive incorrect information. Therefore, the application first needs to determine whether there is an interference signal in the satellite signal in order to identify the real and usable satellite signal.
[0062] It is understandable that the interference signals described in this application include two forms: "interference" and "deception". Among them, "interference" refers to a high-power signal near the signal frequency, common single-tone interference, sweep frequency interference, broadband interference, etc., as well as some unintentional electromagnetic interference, which prevents the signal receiver from working properly. "Deception" is to imitate the real signal structure to achieve a fake effect, so that the receiver demodulates the signal to obtain false information, thereby being "deceived". Both forms of signals need to be identified in this application.
[0063] Preferably, in the present application, whether there is an interference signal in the satellite signal can be identified by a deep learning model. The model is trained by a large number of interference and deception signal samples, and can detect and identify interference or deception signals in the environment in real time.
[0064] Specifically, the historical samples of the interference signal are first used as a training set for machine learning training to obtain an interference signal recognition model, and then the interference signal recognition model is used to determine whether there is an interference signal in the satellite signal. The present application does not limit the specific algorithm and model category.
[0065] Preferably, in the present application, it is determined whether there is an interference signal in the satellite signal, and the identification can also be achieved through a signal gain model. The model calculates the gain coefficient of the receiver low noise amplifier and / or intermediate frequency amplifier in the interference and / or deception environment and compares it with the gain coefficient of the normal signal to calculate the threshold, so as to detect and identify the interference or deception signal in the environment in real time.
[0066] Specifically, the satellite signal is subjected to gain processing to obtain a corresponding actual gain coefficient. Then, based on the actual gain coefficient and the theoretical gain coefficient, it is determined whether there is an interference signal in the satellite signal. In response to the actual gain coefficient being within the threshold range of the theoretical gain coefficient, it is confirmed that there is no interference signal in the satellite signal; in response to the actual gain coefficient being equal to the threshold of the theoretical gain coefficient or being outside the threshold range of the theoretical gain coefficient, it is confirmed that there is an interference signal in the satellite signal.
[0067] The gain processing is implemented by at least one of the following devices: a broadband amplifier; a gain block amplifier; a logarithmic amplifier; a low noise amplifier; a power amplifier such as an intermediate frequency amplifier; and a linear amplifier.
[0068] Preferably, the satellite signal in the present application is a Global Navigation Satellite System (GNSS). Compared with other signals, GNSS signals have stronger global coverage and higher accuracy. GNSS includes China's Beidou Navigation Satellite System (BDS), the United States' Global Positioning System (GPS), Russia's GLONASS and the European Union's Galileo Navigation Satellite System (GALILEO).
[0069] Preferably, the satellite signals received and detected by the present application can be multiple or single, that is, the present application can receive and detect signals from multiple different satellites or receive and detect a specific satellite signal, and use it to provide timing information based on multiple or single satellite signals in the following steps.
[0070] Step 120, in response to the presence of an interference signal in the satellite signal, coupling the timing information of the satellite signal with the timing information of the local clock to obtain a time deviation;
[0071] Specifically, if it is confirmed that there is an interference signal in the satellite signal, it means that there is a certain risk in the satellite signal. If these satellite signals with interference are directly excluded and only the timing information of the local clock is relied upon, the timing result may produce a large cumulative error as time shifts, and the error may become larger and larger because it cannot be corrected from the satellite signal. At the same time, in practical applications, the timing information of the satellite signal with interference is not completely unavailable. If the degree of interference to the satellite signal is low, or although the satellite signal is interfered to a certain extent, its timing information can be mutually verified with the timing information of other satellite signals, then the timing information of the satellite signal can still be considered for use. Therefore, the timing information of the satellite signal with interference is not directly excluded in this application, but the timing information of these satellite signals and the timing information of the local clock are coupled and processed to improve the reliability of the final timing result.
[0072] Preferably, the coupling process in the present application includes unidirectional coupling or bidirectional coupling between the timing information of the satellite signal and the timing information of the local clock.
[0073] More specifically, for bidirectional coupling, the method for obtaining the time deviation by using bidirectional coupling in the present application includes:
[0074] Obtain the timing weight of the satellite signal, the timing weight of the local clock, the timing information of the satellite signal, and the timing information of the local clock. According to the timing weight of the satellite signal, the timing weight of the local clock, the timing information of the satellite signal, and the timing information of the local clock, calculate the time deviation, and the calculation formula is as follows:
[0075] Δt S =Δt G *w G +Δt L *w L (1)
[0076] Among them, Δt G is the timing information of the satellite signal, w G is the timing weight of the satellite signal, Δt L is the timing information of the local clock, w L is the timing weight of the local clock, Δt S It is the time deviation, which is used to correct the timing results.
[0077] That is to say, in the bidirectional coupling mode, a weight is assigned to the satellite signal and the local clock. These two weights are used to weigh the reliability of the satellite signal and the local clock. By weighing the reliability of the satellite signal and the local clock, the risk of using satellite signals with interference can be minimized while ensuring the accuracy of timing.
[0078] Next, we will further explain the four parameters in the bidirectional coupling method: the timing weight w of the satellite signal G , the timing weight w of the local clock L , satellite signal timing information Δt G And the timing information of the local clock Δt L The acquisition method of the satellite signal timing weight w G , the timing weight w of the local clock L And the timing information of the satellite signal Δt G All of them are obtained based on the early warning information of satellite signals.
[0079] Among them, the timing weight w of the satellite signal is obtained G and the timing weight w of the local clock L methods, including:
[0080] Analyze the satellite signal to obtain the early warning information of the satellite signal. According to the early warning information of the satellite signal, adjust the initial timing weight of the satellite signal and the initial timing weight of the local clock respectively to obtain the adjusted satellite signal timing weight w G and the adjusted timing weight w of the local clock L , used to adjust the timing weight w of the satellite signal later G and the adjusted timing weight w of the local clock L , the time deviation is calculated. And the timing weight w of the adjusted satellite signal G The adjusted local clock timing weight w L , which is a negative correlation.
[0081] The warning information can be understood as a value that measures the reliability of the satellite signal. In this application, the satellite signal and the local clock each have two initial timing weights. When bidirectionally coupled, the two initial weights are adjusted according to the current satellite signal warning information. If the current satellite signal warning information indicates that the current satellite signal risk level is high, the initial timing weight of the satellite signal is adaptively lowered to obtain the adjusted satellite signal timing weight w G , and at the same time increase the initial timing weight of the local clock to obtain the adjusted timing weight w of the local clock L ,vice versa.
[0082] Furthermore, the present application does not limit the adjustment range of the weights, which can be obtained through machine learning training or directly preset according to specific application scenarios. The present application does not limit specific algorithms and model categories.
[0083] In a specific embodiment, it is assumed that two satellites are currently required to perform bidirectional coupling timing, and the first satellite signal warning information is "2", the second satellite signal warning information is "8", the initial timing weight of the first satellite signal is "0.2", the initial timing weight of the second satellite signal is "0.3", and the initial timing weight of the local clock is "0.5". Then, according to the value "2" of the first satellite signal warning information, the initial timing weight of the first satellite signal is increased by 2 percentage points, and the initial timing weight of the local clock is decreased by 2 percentage points, and according to the value "8" of the second satellite signal warning information, the initial timing weight of the second satellite signal is decreased by 8 percentage points, and the initial timing weight of the local clock is increased by 8 percentage points. The final timing weight of the first satellite signal is "0.22" (0.2+0.02), the timing weight of the second satellite signal is "0.22" (0.3-0.08), and the timing weight of the local clock is "0.56" (0.5-0.02+0.08).
[0084] With respect to the above two initial weights, the above adjustment of the initial timing weight of the satellite signal and the initial timing weight of the local clock includes:
[0085] The initial timing weight is calculated through machine learning training, or the initial timing weight of the satellite signal and the initial timing weight of the local clock are directly preset according to the specific application scenario.
[0086] The calculation of the initial timing weight through machine learning training includes: using the timing information of the local clock and the historical samples of the satellite signal with the interference signal as the training set for machine learning training to obtain a weight calculation model. Then, the initial timing weight of the satellite signal and the initial timing weight of the local clock are obtained by using the weight calculation model to adjust the initial timing weight of the satellite signal and the initial timing weight of the local clock obtained by using the weight calculation model according to the early warning information. The present application does not limit the specific algorithm and model category.
[0087] Regarding the warning information, the method for parsing satellite signals to obtain the warning information of satellite signals includes:
[0088] Analyze the satellite signal to obtain the characteristic parameters of the satellite signal, and then obtain the early warning information of the satellite signal based on the characteristic parameters of the satellite signal.
[0089] Among them, the characteristic parameters of the satellite signal can be understood as the observed quantity information of the satellite signal, including: the integral value of the E and / or P and / or L correlator of the satellite signal in the in-phase path (I path) and / or the integral value of the E and / or P and / or L correlator of the quadrature path (Q path), or the automatic gain control (AGC) value of the satellite signal. A correlator refers to a tool that uses the correlation characteristics of a signal to extract a useful signal from interference and noise. The code loop generally replicates three GNSS codes with different phases, which are called early, prompt and late replica codes, and are represented by the letters E, P, and L, respectively, where the code phase of the early code is slightly ahead of the phase of the prompt code, and the code phase of the late code is slightly behind the phase of the prompt code. When these three replica codes with different phases are correlated with the received signal at the same time, the integral value of the E and / or P and / or L correlator can be obtained. In addition, the demodulation of the satellite signal can also obtain observation information including signal amplitude, frequency, duration, pseudorange, pseudorange residual, carrier-to-noise ratio, carrier phase, positioning results, AD sampling truncation, calculated clock bias / clock drift and Doppler observation values. These observation information can all be used as characteristic parameters of the satellite signal, and this application does not limit this.
[0090] With respect to the characteristic parameters of the satellite signal, the early warning information of the satellite signal is obtained according to the characteristic parameters of the satellite signal, including:
[0091] The characteristic parameters of the satellite signal obtained by the analysis are compared with at least one warning threshold or at least one warning threshold range, and the warning information of the satellite signal is determined according to the comparison result.
[0092] Among them, the warning information includes: single-parameter warning information and complex-parameter warning information. The single-parameter warning information is the warning information for a single characteristic parameter, and the complex-parameter warning information is the warning information obtained by numerical calculation for two or more single-parameter warning information, which can be the sum of two or more single-parameter warning information.
[0093] In a specific embodiment, the correspondence table between the characteristic parameters of the satellite signal and the warning information is shown in Table 1:
[0094] I-channel P correlator integral value Warning Level I Q-path P correlator integral value Warning level Q >50000 4 >2000 4 >45000 3 >1700 3 >40000 2 >1400 2 >35000 1 >1100 1 <=35000 0 <=1100 0
[0095] Table 1
[0096] Among them, the I-path P correlator integral value and the Q-path P correlator integral value are both characteristic parameters of the satellite signal. Their values are divided into five threshold ranges, and five warning levels I and five warning levels Q are set respectively. After parsing the current satellite signal to obtain the I-path P correlator integral value and the Q-path P correlator integral value, the corresponding warning level I value and warning level Q value can be obtained by substituting them into Table 1. The values of the two warning levels are added together to obtain the warning information of the current satellite signal.
[0097] The above has explained the timing weight w of the satellite signal G and the timing weight w of the local clock L The following is a method for obtaining the timing information Δt of the satellite signal. G Method of obtaining .
[0098] Get the timing information Δt of the satellite signal G ,include:
[0099] According to the early warning information of the satellite signal, the weight of the satellite signal is obtained, and according to the weight of the satellite signal, the timing information of the satellite signal is calculated. The calculation formula is as follows:
[0100]
[0101] Among them, Δt G It is the timing information of satellite signal; it is the actual distance from the signal receiving position to the i-th satellite calculated based on the position of the i-th satellite and the signal receiving position, d iρ is the distance from the signal receiving position to the i-th satellite calculated by demodulating the satellite signal of the i-th satellite, t i is the clock error of the ith satellite obtained from the ephemeris, w iis the weight of the satellite signal of the i-th satellite, N is the number of satellites, c is the speed of light, and i is a natural number from 0 to N. For timing equipment, the signal receiving position is fixed and can be extracted or obtained through positioning in a normal environment; the satellite position can be calculated by demodulating the satellite signal ephemeris.
[0102] It is understandable that w i is the weight of the satellite signal itself, which is also obtained based on the warning information, but is different from the timing weight w of the satellite signal mentioned above. G The initial timing weight of the satellite signal and the timing weight of the satellite signal w G The initial timing weights of the satellite signal and the initial timing weights of the satellite signal correspond to the weights of the timing information, and the weight of the satellite signal w i It corresponds to the weight of the satellite itself, which are two different concepts. In addition, the timing weight of the satellite signal w G Although the warning information is also used in the calculation process, it is the weight obtained after adjusting the initial weight according to the warning information. The warning information is the warning information of the entire satellite system. The weight of the satellite signal itself is w i It is obtained based on the early warning information of the satellite. It can also be seen from here that w G With w i They are two different concepts.
[0103] Furthermore, the present application does not limit the weight w of the satellite signal obtained according to the warning information. i The specific method can also be obtained through machine learning training, or can also be directly preset according to the specific application scenario. This application does not limit the specific algorithm and model category.
[0104] The above has explained the timing weight w of the satellite signal G , the timing weight w of the local clock L And the timing information of the satellite signal Δt G The acquisition method is as follows: The timing information Δt of the local clock is further described L Method of obtaining .
[0105] Get the timing information Δt of the local clock L ,include:
[0106] The local clock of the current device is used to obtain the timing information of the local clock. Alternatively, if the local clock of the current device cannot be operated or cannot be read, the local clock of other devices within the detection range of the current device can be used to obtain the timing information of the local clock.
[0107] The above has fully explained the timing weight w of the satellite signal in bidirectional coupling. G , the timing weight w of the local clock L, satellite signal timing information Δt G And the timing information of the local clock Δt L A method for obtaining the bidirectional coupling method provided by the present application can be implemented by those skilled in the art according to the contents of the present application.
[0108] As for the one-way coupling, the method of obtaining the time deviation by using the one-way coupling in the present application includes:
[0109] Get the warning information of the satellite signal and determine whether the warning information of the current satellite signal is less than the preset value. If it is less than, it means that the current satellite signal is relatively reliable. Then according to the timing information Δt of the satellite signal G Calculate the adjustment value based on the timing information Δt of the local clock L The time deviation is obtained by comparing the adjustment value; if it is not less than, it means that the current satellite signal is unreliable, and the timing information of the current satellite signal Δt is excluded. G , the timing information of the local clock is not L Make adjustments.
[0110] Among them, the early warning information of satellite signals and the timing information of satellite signals Δt G And the timing information of the local clock Δt L The method for obtaining is as described in the above-mentioned bidirectional coupling and will not be repeated here.
[0111] In this application, compared with unidirectional coupling, the timing method based on bidirectional coupling adds the timing information weight adjustment, which can minimize the risk of using satellite signals with interference while ensuring the accuracy of timing; and compared with bidirectional coupling, the timing method based on unidirectional coupling has fewer processing steps and a relatively faster calculation process. Those skilled in the art can select the coupling method according to the actual application needs.
[0112] Preferably, after obtaining the warning information of the satellite signal, the warning information can be further utilized to generate warning prompt information according to the warning information and output it to the user terminal to prompt the user that the current satellite signal has risks.
[0113] Step 130, adjusting the local clock according to the time deviation to obtain a timing result;
[0114] Specifically, after the time deviation is obtained through the above steps, the local clock is numerically adjusted in nanoseconds, picoseconds, femtoseconds or attoseconds according to the time deviation, or the local clock is adjusted in second pulses according to the time deviation to obtain the timing result.
[0115] The timing method provided in the present application determines whether there is an interference signal in the satellite signal. In response to the presence of the interference signal in the satellite signal, the timing information of the satellite signal and the timing information of the local clock are coupled to obtain the time deviation and adjust the local clock. While effectively preventing interference and deception signals from having an adverse effect on the timing results, the accuracy and reliability of the timing results are improved, thereby providing a guarantee for the stable operation of the system on which it is carried in terms of time synchronization.
[0116] Correspondingly, the embodiment of the present invention also provides a timing device for implementing the above timing method, such as Figure 2 As shown, the timing device includes: a detection module 21, a coupling module 22, and a timing module 23.
[0117] A detection module 21, the detection module is used to receive and detect satellite signals to determine whether there is an interference signal in the satellite signals;
[0118] A coupling module 22, wherein the coupling module is configured to couple the timing information of the satellite signal with the timing information of the local clock to obtain a time deviation in response to the presence of an interference signal in the satellite signal according to a judgment result of the detection module; and
[0119] The timing module 23 is used to adjust the local clock according to the time deviation to obtain a timing result.
[0120] Preferably, the detection module 21 includes: a recognition training module 211; the recognition training module 211 is used to:
[0121] The historical samples of the interference signal are used as a training set for machine learning training to obtain an interference signal recognition model, and whether there is an interference signal in the satellite signal is determined based on the interference signal recognition model.
[0122] Preferably, the detection module 21 further includes: a gain processing module 212; the gain processing module 212 is used to:
[0123] The satellite signal is subjected to gain processing by using a gain processing module to obtain a corresponding actual gain coefficient; and whether there is an interference signal in the satellite signal is determined based on the actual gain coefficient and the theoretical gain coefficient. In response to the actual gain coefficient being within a threshold range of the theoretical gain coefficient, it is confirmed that there is no interference signal in the satellite signal; in response to the actual gain coefficient being equal to a threshold of the theoretical gain coefficient or being outside the threshold range of the theoretical gain coefficient, it is confirmed that there is an interference signal in the satellite signal.
[0124] Preferably, the coupling module 22 further includes: a unidirectional coupling module 22 or a bidirectional coupling module 22 .
[0125] Preferably, the bidirectional coupling module 22 is used for:
[0126] Acquire the timing weight of the satellite signal, the timing weight of the local clock, the timing information of the satellite signal and the timing information of the local clock;
[0127] Calculate the time deviation according to the timing weight of the satellite signal, the timing weight of the local clock, the timing information of the satellite signal and the timing information of the local clock;
[0128] The calculation formula is formula (1):
[0129] Δt S =Δt G *w G +Δt L *w L (1)
[0130] Among them, Δt G is the timing information of the satellite signal, w G is the timing weight of the satellite signal, Δt L is the timing information of the local clock, w L is the timing weight of the local clock, Δt S is the time deviation.
[0131] Preferably, the bidirectional coupling module 22 further includes: an early warning module 221, wherein the early warning module 221 is used to:
[0132] Analyzing the satellite signal to obtain characteristic parameters of the satellite signal;
[0133] Obtaining early warning information of the satellite signal according to the characteristic parameters of the satellite signal;
[0134] The characteristic parameters of the satellite signal include: the integral value of the satellite signal in the E and / or P and / or L correlator of the in-phase path and / or the integral value of the E and / or P and / or L correlator of the orthogonal path; or the automatic gain control value of the satellite signal.
[0135] Preferably, the bidirectional coupling module 22 further includes: a timing weight acquisition module 222; the timing weight acquisition module 222 is used to:
[0136] According to the early warning information of the satellite signal, the initial timing weight of the satellite signal and the initial timing weight of the local clock are adjusted to obtain the adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock, and the time deviation is calculated according to the adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock;
[0137] The adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock are negatively correlated.
[0138] Preferably, the bidirectional coupling module 22 further includes: a timing information acquisition module 223; the timing information acquisition module 223 is used to:
[0139] Obtain timing information from satellite signals, including:
[0140] Obtaining a weight of the satellite signal according to the early warning information of the satellite signal;
[0141] Calculating the timing information of the satellite signal according to the weight of the satellite signal;
[0142] The calculation formula is formula (2):
[0143]
[0144] Among them, Δt G is the timing information of the satellite signal; d it is the actual distance from the signal receiving position to the i-th satellite calculated based on the position of the i-th satellite and the signal receiving position, d iρ is the distance from the signal receiving position to the i-th satellite obtained based on the satellite signal of the i-th satellite, t i is the clock error of the ith satellite obtained from the ephemeris, w i is the weight of the satellite signal of the i-th satellite, N is the number of satellites, c is the speed of light, and i is a natural number from 0 to N.
[0145] Get the timing information of the local clock, including:
[0146] Using the local clock of the current device, the timing information of the local clock is obtained.
[0147] Preferably, the timing module 23 is also used for:
[0148] According to the time deviation, the local clock is numerically adjusted in nanoseconds, picoseconds, femtoseconds, or attoseconds; or the local clock is pulse-per-second adjusted according to the time deviation.
[0149] Other preferred embodiments, specific descriptions, technical problems that can be solved and effects that can be brought about by the timing device disclosed in this application are the same as those of the above-mentioned timing method and will not be repeated here.
[0150] Below, reference Figure 3 The electronic device 11 according to an embodiment of the present application is described. Figure 3 A block diagram of an electronic device according to an embodiment of the present application is shown.
[0151] like Figure 3 As shown, the electronic device 11 includes one or more processors 111 and a memory 112 .
[0152] The processor 111 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 11 to perform desired functions.
[0153] The memory 112 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 111 may run the program instructions to implement the test methods of the various embodiments of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0154] In one example, the electronic device 11 may further include: an input device 113 and an output device 114 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0155] The input device 113 may include, for example, a keyboard, a mouse, etc.
[0156] The output device 114 can output various information to the outside, including determined distance information, direction information, etc. The output device 114 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0157] Of course, to simplify, Figure 3 Only some of the components related to the present application in the electronic device 11 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 11 may also include any other appropriate components.
[0158] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the testing method according to various embodiments of the present application described in the above “Exemplary Method” section of this specification.
[0159] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0160] In addition to the above-mentioned methods, apparatuses, devices and media, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the testing method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0161] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0162] The preferred embodiments of the present application are described in detail above; however, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, a variety of simple modifications can be made to the technical solution of the present application, and these simple modifications all fall within the protection scope of the present application.
[0163] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, this application will not further describe various possible combinations.
[0164] In addition, the various implementation modes of the present application may be arbitrarily combined, and as long as they do not violate the concept of the present application, they should also be regarded as the contents disclosed by the present invention.
Claims
1. A timing method, It is characterized in that The timing method comprises: Receiving and detecting satellite signals to determine whether there is an interference signal in the satellite signals; In response to the presence of an interference signal in the satellite signal, bidirectionally coupling the timing information of the satellite signal and the timing information of the local clock to obtain a time deviation; and Adjusting the local clock according to the time deviation to obtain a timing result; Wherein, the bidirectional coupling includes: Analyzing the satellite signal to obtain early warning information of the satellite signal; Obtaining the timing information of the satellite signal according to the early warning information of the satellite signal, and adjusting the initial timing weight of the satellite signal and the initial timing weight of the local clock according to the early warning information of the satellite signal to obtain the adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock, so as to calculate the time deviation according to the adjusted timing weight of the satellite signal, the adjusted timing weight of the local clock, the timing information of the satellite signal and the timing information of the local clock; The calculation formula is: Δt S =Δt G *w G +Δt L *w L ; Among them, Δt G is the timing information of the satellite signal, w G is the timing weight of the satellite signal, Δt L is the timing information of the local clock, w L is the timing weight of the local clock, Δt S is the time deviation; The adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock are negatively correlated.
2. The timing method according to claim 1, It is characterized in that The satellite signal is a global navigation satellite system signal.
3. The timing method according to claim 1, It is characterized in that The determining whether there is an interference signal in the satellite signal includes: The historical samples of the interference signal are used as a training set for machine learning training to obtain an interference signal recognition model, and whether there is an interference signal in the satellite signal is determined based on the interference signal recognition model.
4. The timing method according to claim 1, It is characterized in that The step of analyzing the satellite signal to obtain early warning information of the satellite signal includes: Analyzing the satellite signal to obtain characteristic parameters of the satellite signal; Obtaining early warning information of the satellite signal according to characteristic parameters of the satellite signal; The characteristic parameters of the satellite signal include: the integral value of the satellite signal in the E and / or P and / or L correlator of the in-phase path and / or the integral value of the E and / or P and / or L correlator of the orthogonal path; or the automatic gain control value of the satellite signal.
5. The timing method according to claim 1, It is characterized in that The adjusting the initial timing weight of the satellite signal and the initial timing weight of the local clock includes: The timing information of the local clock and the historical samples of satellite signals with interference signals are used as training sets for machine learning training to obtain a weight calculation model; The weight calculation model is used to obtain the initial timing weight of the satellite signal and the initial timing weight of the local clock, so as to adjust the initial timing weight of the satellite signal and the initial timing weight of the local clock obtained by using the weight calculation model according to the early warning information.
6. The timing method according to claim 1 or 4, It is characterized in that Obtaining the timing information of the satellite signal according to the early warning information of the satellite signal, including: Obtaining a weight of the satellite signal according to the early warning information of the satellite signal; Calculating the timing information of the satellite signal according to the weight of the satellite signal; The calculation formula is: Among them, Δt G is the timing information of the satellite signal; d it is the actual distance from the signal receiving position to the i-th satellite calculated based on the position of the i-th satellite and the signal receiving position, d iρ is the distance from the signal receiving position to the i-th satellite obtained based on the satellite signal of the i-th satellite, t i is the clock error of the ith satellite obtained from the ephemeris, w i is the weight of the satellite signal of the i-th satellite, N is the number of satellites, c is the speed of light, and i is a natural number from 0 to N.
7. The timing method according to claim 1, It is characterized in that Obtaining the timing information of the local clock, including: Using the local clock of the current device, the timing information of the local clock is obtained.
8. A timing device, It is characterized in that The timing device comprises: A detection module, the detection module is used to receive and detect satellite signals to determine whether there is an interference signal in the satellite signals; A coupling module, wherein the coupling module is used to bidirectionally couple the timing information of the satellite signal and the timing information of the local clock to obtain a time deviation in response to the presence of an interference signal in the satellite signal according to the judgment result of the detection module; Wherein, the bidirectional coupling includes: Analyzing the satellite signal to obtain early warning information of the satellite signal; Obtaining the timing information of the satellite signal according to the early warning information of the satellite signal, and adjusting the initial timing weight of the satellite signal and the initial timing weight of the local clock according to the early warning information of the satellite signal to obtain the adjusted timing weight of the satellite signal and the adjusted timing weight of the local clock, so as to calculate the time deviation according to the adjusted timing weight of the satellite signal, the adjusted timing weight of the local clock, the timing information of the satellite signal and the timing information of the local clock; The calculation formula is: Δt S =Δt G *w G +Δt L *w L ; Among them, Δt G is the timing information of the satellite signal, w G is the timing weight of the satellite signal, Δt L is the timing information of the local clock, w L is the timing weight of the local clock, Δt S is the time deviation; The adjusted satellite signal timing weight and the adjusted local clock timing weight are in a negative correlation; and A timing module is used to adjust the local clock according to the time deviation to obtain a timing result.
9. An electronic device, include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program or instructions, It is characterized in that When the computer program or the instruction is executed by a computer, the method according to any one of claims 1 to 7 is implemented.
