Calibration method and device for B-code timing system based on satellite navigation

By obtaining the standard time and calculated time deviation from the satellite navigation system, calibrating the B-code time and adjusting the pulse threshold, the problem of time inconsistency within seconds in the B-code timing system is solved, and the timing accuracy and scope of application are improved.

CN117826560BActive Publication Date: 2024-09-17BEIJING BDSTAR NAVIGATION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410214267.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-27
Publication Date
2024-09-17
Estimated Expiration
2044-02-27

AI Technical Summary

Technical Problem

The existing B-code timing system based on satellite navigation cannot maintain consistent time within seconds, the timing accuracy is low, and the commonly used measurement and control equipment is not equipped with a tameable high-stable crystal oscillator, which limits the scope of application of the calibration method.

Method used

By obtaining the standard time from the target satellite navigation system, calculate the time deviation between the standard time and the B-code terminal, including the weekly deviation, the second count deviation within the week and the decimal deviation within seconds, calibrate the B-code time, and adjust the second based on the decimal deviation within seconds Pulse threshold and epoch pulse width enable accurate calibration of B-code terminals.

Benefits of technology

The accuracy of the B-code pulse signal is improved, so that the sub-system, measurement and control equipment and timing center can maintain consistency within seconds, improve the timing accuracy, and expand the scope of application of the calibration method, avoiding the need for tame high stability Dependence on crystal oscillator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117826560B
    Figure CN117826560B
Patent Text Reader

Abstract

The present application provides a calibration method and device for a B-code timing system based on satellite navigation, the method comprising: obtaining a standard time from a target satellite navigation system, the target satellite navigation system being a satellite navigation system currently accessed by a B-code terminal; calculating a time deviation between the standard time and the B-code time of the B-code terminal, the time deviation comprising a weekly deviation, a second count deviation within a week, and a decimal deviation within a second; calibrating the B-code time according to the weekly deviation and the second count deviation within a week to obtain a calibrated B-code time; and calibrating a pulse threshold within a second and an epoch pulse width of the B-code terminal according to the decimal deviation within a second during output of a B-code pulse signal corresponding to the calibrated B-code time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of time service, and in particular to a calibration method and device for a B code time service system based on satellite navigation. Background Art

[0002] The timing system is a communication system designed to maintain a highly unified time and frequency between the controlled object and the measurement system. The timing system is widely used in aerospace, military, communication, power and other engineering and scientific research fields. Recently, with the development of satellite navigation technology, the timing system based on satellite navigation has emerged, among which the B code timing system based on satellite navigation is the most widely used.

[0003] In the B-code timing system based on satellite navigation, the B-code terminal of the measurement and control equipment calculates high-precision time information from the satellite navigation signal, uses the satellite time information to maintain the B-code time, and generates a B-code pulse signal according to the B-code time and outputs the generated B-code pulse signal to each subsystem in the timing system. The B-code time refers to the time determined by the B-code terminal itself through the crystal oscillator timing. In this way, the subsystem and the measurement and control equipment can maintain the same time as the timing center.

[0004] In the existing B-code timing system based on satellite navigation, the B-code terminal can only use the satellite's time information to maintain the B-code time at the second level. Therefore, the subsystem, measurement and control equipment and timing center can only maintain consistency in whole seconds, but cannot maintain consistency in intra-second moments, and the timing accuracy is low. Summary of the invention

[0005] In view of the above-mentioned shortcomings of the prior art, the present invention provides a calibration method and device for a B-code timing system based on satellite navigation.

[0006] The first aspect of the present application provides a calibration method for a B-code timing system based on satellite navigation, comprising:

[0007] Obtaining standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal;

[0008] Calculate the time deviation between the standard time and the B code time of the B code terminal, wherein the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second;

[0009] Calibrate the B code time according to the weekly deviation and the intra-week second count deviation to obtain a calibrated B code time;

[0010] During the output of the B code pulse signal corresponding to the calibrated B code time, the intra-second pulse threshold and epoch pulse width of the B code terminal are calibrated according to the intra-second decimal deviation.

[0011] Optionally, before calculating the time deviation between the standard time and the B code time of the B code terminal, the method further includes:

[0012] Determine the timing quality information corresponding to the satellite navigation signal;

[0013] When the timing quality information does not meet the calibration quality condition, maintaining the B code time;

[0014] The calculating of the time deviation between the standard time and the B code time of the B code terminal comprises:

[0015] In a case where the timing quality information satisfies the calibration quality condition, a time deviation between the standard time and the B code time of the B code terminal is calculated.

[0016] Optionally, calibrating the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation includes:

[0017] Filtering the intra-second decimal deviation based on a narrowband filtering mode or a broadband filtering mode to obtain an intra-second pulse threshold correction value;

[0018] The intra-second pulse threshold and epoch pulse width of the B code terminal are updated according to the intra-second pulse threshold correction amount.

[0019] Optionally, filtering the intra-second decimal deviation based on a narrowband filtering mode or a broadband filtering mode to obtain an intra-second pulse threshold correction value includes:

[0020] When the filter is in a broadband filtering mode, determining whether the fractional deviation within a second is less than a first filtering threshold, wherein the first filtering threshold is greater than or equal to 200 microseconds and less than or equal to 500 microseconds;

[0021] If the intra-second decimal deviation is continuously smaller than the first filtering threshold, the intra-second decimal deviation is filtered by the filter in the broadband filtering mode to obtain an intra-second pulse threshold correction amount, and the filtering counter is incremented by 1, and the initial value of the filtering counter is 0;

[0022] When the filter is in a narrowband filtering mode, determining whether the fractional deviation within a second is less than a second filtering threshold, the second filtering threshold being greater than or equal to 500 nanoseconds and less than or equal to 800 nanoseconds;

[0023] If the intra-second decimal deviation is less than the second filtering threshold, the intra-second decimal deviation is filtered by the filter in the narrowband filtering mode to obtain an intra-second pulse threshold correction amount, and the filtering counter is incremented by 1;

[0024] Among them, the filter is in the broadband filtering mode when it is started, the filter in the broadband filtering mode is switched to the narrowband filtering mode when the value of the filter counter reaches the first switching threshold, the filter in the narrowband filtering mode is switched to the broadband filtering mode when the value of the filter counter reaches the second switching threshold, the first switching threshold is greater than the second switching threshold, and the value of the filter counter is cleared when the filter switches to the mode.

[0025] Optionally, updating the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second pulse threshold correction amount includes:

[0026] When the count of the pulse within a second counter reaches the pulse within a second threshold, the count of the pulse within a second counter is reset to zero, and the count of the pulse within a second counter increases with the system clock signal of the B code terminal;

[0027] Calculate the cumulative error threshold of the next epoch period according to the intra-second pulse threshold correction amount;

[0028] Update the intra-second pulse threshold correction amount and the intra-second pulse threshold of the B code terminal in the next epoch period according to the accumulated error threshold in the next epoch period;

[0029] The epoch pulse width of the next epoch period is updated according to the updated intra-second pulse threshold.

[0030] Optionally, after calibrating the B code time according to the week deviation and the intra-week second count deviation to obtain the calibrated B code time, the method further includes:

[0031] The whole second accumulation threshold is calibrated according to the fractional deviation within the second.

[0032] A second aspect of the present application provides a calibration device for a B-code timing system based on satellite navigation, comprising:

[0033] An obtaining unit, used to obtain standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal;

[0034] A calculation unit, used to calculate the time deviation between the standard time and the B code time of the B code terminal, wherein the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second;

[0035] Calibration unit for:

[0036] Calibrate the B code time according to the weekly deviation and the intra-week second count deviation to obtain a calibrated B code time;

[0037] During the output of the B code pulse signal corresponding to the calibrated B code time, the intra-second pulse threshold and epoch pulse width of the B code terminal are calibrated according to the intra-second decimal deviation.

[0038] Optionally, the device further includes a determining unit, configured to:

[0039] Determine the timing quality information corresponding to the satellite navigation signal;

[0040] When the timing quality information does not meet the calibration quality condition, maintaining the B code time;

[0041] When the calculation unit calculates the time deviation between the standard time and the B code time of the B code terminal, it is specifically used to:

[0042] In a case where the timing quality information satisfies the calibration quality condition, a time deviation between the standard time and the B code time of the B code terminal is calculated.

[0043] Optionally, when the calibration unit calibrates the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation, it is specifically used to:

[0044] Filtering the intra-second decimal deviation based on a narrowband filtering mode or a broadband filtering mode to obtain an intra-second pulse threshold correction value;

[0045] The intra-second pulse threshold and epoch pulse width of the B code terminal are updated according to the intra-second pulse threshold correction amount.

[0046] Optionally, after the calibration unit calibrates the B code time according to the week deviation and the intra-week second count deviation to obtain the calibrated B code time, it is further used to:

[0047] The whole second accumulation threshold is calibrated according to the fractional deviation within the second. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0049] Figure 1 A schematic diagram of the principle of a B-code timing technology provided in an embodiment of the present application;

[0050] Figure 2 A flowchart of a calibration method for a B-code timing system based on satellite navigation provided in an embodiment of the present application;

[0051] Figure 3 A flowchart of another calibration method of a B-code timing system based on satellite navigation provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of the structure of a calibration device for a B-code timing system based on satellite navigation provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] In order to facilitate understanding of the technical solution of this embodiment, first combine Figure 1 The B-code timing technology is briefly described.

[0055] In the B-code timing system, the B-code terminal outputs one frame of B-code pulse signal to the subsystem every second. One frame of B-code signal consists of 100 10ms (millisecond) pulse signals. Each pulse signal is equivalent to a code element. Different 10ms pulse signals can have the same or different pulse widths. Different pulse widths represent different codes of code elements. For example, when the pulse width of a 10ms pulse signal is 2ms, the pulse signal is equivalent to a code element representing the code "0"; when the pulse width is 5ms, the pulse signal is equivalent to a code element representing the code "1"; when the pulse width is 8ms, the pulse signal is equivalent to a code element representing the code "p".

[0056] The B-code terminal can encode the B-code time it maintains based on a specific encoding format, obtain a code element sequence consisting of 100 code elements representing the B-code time, and then output the 10ms pulse signal (also called 100PPS signal) corresponding to each code element in the code element sequence to the subsystem in sequence, so that the subsystem can receive a complete frame of B-code pulse signal every 1 second and parse the corresponding B-code time from it. PPS is the abbreviation of pulse per second, which means the number of pulses per second.

[0057] In some B-code timing systems based on satellite navigation, the B-code terminal can obtain accurate time information provided by the timing center from the satellite navigation system and calibrate the B-code time based on the time information. For example, if the B-code time is 10 hours, 5 minutes and 6 seconds, and the time information provided by the timing center is 10 hours, 5 minutes and 8 seconds, then the B-code terminal can correct the B-code time to 10 hours, 5 minutes and 8 seconds.

[0058] However, this calibration method cannot calibrate the 10ms pulse signal within 1 second. Therefore, the accuracy of the 10ms pulse signal output by the B code terminal gradually decreases over time, resulting in the period of the 10ms pulse signal output by the B code terminal to be longer or shorter than 10ms, and the start and end times of the 10ms pulse signal are not exactly 10ms.

[0059] For example, ideally, when the B code terminal outputs 1 frame of B code pulse signal within 1 second, it should output the first 10ms pulse signal during the 1st to 10ms period within that second, and output the second 10ms pulse signal during the 11th to 20ms period within that second. As time goes by, the B code terminal may output the first 10ms pulse signal during the 1st to 11ms period within that second, and output the second 10ms pulse signal during the 12th to 24ms period within that second.

[0060] One solution to this problem is to obtain accurate time information from the timing center through the satellite navigation system, and then tame the high-stable crystal oscillator of the measurement and control equipment of the B-code terminal based on the time information, so that the high-stable crystal oscillator maintains a stable crystal oscillator frequency (for example, 100MHz). In this way, the high-stable crystal oscillator can provide the B-code terminal with an accurate system clock, thereby preventing the 10ms pulse signal from gradually decreasing in accuracy over time.

[0061] Among them, taming the high-stability crystal oscillator based on time information refers to the process of repeatedly adjusting the crystal oscillator frequency of the high-stability crystal oscillator according to the time information until the crystal oscillator frequency stabilizes at a specified value (for example, stabilized at 100MHz). The specific taming method can be found in relevant technical literature and will not be repeated here.

[0062] If the system uses an unruly crystal oscillator, it will affect the accuracy of the B code timing, especially the 100PPS (10ms) frequency standard information in the B code time information will gradually decrease in accuracy over time and cannot guarantee accuracy, thereby reducing the timing accuracy of the B code.

[0063] The problem with this calibration method is that commonly used measurement and control equipment is often not equipped with a tamable high-stability crystal oscillator. Therefore, this calibration method can only be applied to a small number of measurement and control equipment and has a small scope of application.

[0064] In order to solve the problem of inaccurate 10ms pulse signal within a second in B code timing, this embodiment provides a calibration method of B code timing system based on satellite navigation, see Figure 2 , is a flow chart of the method, and the method may include the following steps.

[0065] S201, obtaining standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal.

[0066] The calibration method provided in this embodiment may be executed by a B-code terminal on a measurement and control device in a B-code timing system based on satellite navigation.

[0067] In step S201, the B code terminal can first receive the satellite navigation signal, determine which satellite navigation system it is currently connected to, namely GPS, Beidou, Galileo, and Glonass, based on the satellite navigation signal, and then parse the satellite navigation signal according to the parsing method corresponding to the currently connected satellite navigation system to obtain the week and seconds of the week carried in the satellite navigation signal, which is equivalent to the navigation system time of the target satellite navigation system.

[0068] Exemplarily, the B code terminal determines that the currently connected target satellite navigation system is the GPS satellite navigation system based on the positioning result, and then the B code terminal parses the GPS satellite navigation system according to the parsing method corresponding to the GPS satellite navigation system to obtain the navigation system time of the GPS satellite navigation system, that is, the GPS time.

[0069] Next, the B code terminal adjusts the parsed navigation system time according to the time deviation between the target satellite navigation system and UTC (Universal Coordinated Time) to obtain the accurate UTC time, ie, the standard time in S201.

[0070] Different satellite navigation systems can have different deviations relative to UTC. The specific size of the deviation can be carried in the satellite navigation signal sent by the satellite navigation system. The B-code terminal can parse the satellite navigation signal to obtain the deviation of the target satellite navigation system relative to UTC. For example, the signal sent by the GPS satellite navigation system contains the difference between GPS time and UTC. In 2020, GPS time is 18 seconds ahead of UTC. Subtracting this difference from GPS time can get the standard time. Other systems are similar.

[0071] For specific methods of determining the satellite navigation system to access based on the satellite navigation signal and parsing the satellite navigation signal to obtain the standard time, please refer to the relevant technical literature in the field of satellite navigation and will not be described in detail here.

[0072] S202, calculating the time deviation between the standard time and the B code time of the B code terminal, where the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second.

[0073] In S202, the B code terminal can first convert the B code time into week and week second time, then detect the 1PPS rising edge time of the target satellite navigation system and the 1PPS rising edge time of the B code terminal, calculate the deviation between the two, and then decompose the calculated deviation into week deviation (deltaWeek), week second count deviation (deltaSecond) and second decimal deviation (deltaT), thereby obtaining the time deviation between the standard time and the B code time in S202.

[0074] The 1PPS rising edge time of the target satellite navigation system refers to the standard time recorded when the B code terminal detects the rising edge of the whole second pulse signal (i.e., 1PPS signal) sent by the target satellite navigation system. Exemplarily, the 1PPS rising edge time of the target satellite navigation system is T0, indicating that the B code terminal detects the rising edge of the 1PPS signal at T0 of the standard time.

[0075] The 1PPS rising edge time of the B code terminal refers to the B code time recorded when the B code terminal detects the rising edge of the whole second pulse signal (i.e., 1PPS signal) sent by the target satellite navigation system. Exemplarily, the 1PPS rising edge time of the B code terminal is T1, indicating that the B code terminal detects the rising edge of the 1PPS signal at T1 of the B code time.

[0076] B code time refers to the time maintained locally by the B code terminal. The B code terminal can generate a B code pulse signal carrying the B code time based on the B code time, and output the B code pulse signal to each subsystem in the timing system, so that the time of the subsystem is consistent with the B code time of the B code terminal.

[0077] The B-code terminal can maintain the B-code time according to the standard time provided by the satellite navigation system, or it can use its own crystal oscillator source to maintain the B-code time.

[0078] Optionally, before calculating the time deviation in the above manner, the user delay portion in the B code time may be configured to be consistent with the user delay configured in 1PPS in the satellite navigation system. For specific configuration methods, reference may be made to technical literature in related fields and will not be repeated here.

[0079] S203, calibrating the B code time according to the week deviation and the intra-week second count deviation to obtain the calibrated B code time.

[0080] In step S203, the B code terminal can add the week recorded by the B code time to the last week deviation to obtain the week of the calibrated B code time, and add the second count in the week recorded by the B code time to the second count deviation in the last week to obtain the second count in the week of the calibrated B code time. The week of the calibrated B code time and the second count in the week of the calibrated B code time constitute the calibrated B code time.

[0081] For example, assuming that it is determined through S202 that the week deviation is equal to X, the second count deviation within the week is equal to Y, and the B code time before calibration is: the bth second of the ath week, then after calibration according to step S203, the calibrated B code time obtained is: the b+Yth second of the a+Xth week.

[0082] S204, during the output of the B code pulse signal corresponding to the calibrated B code time, calibrate the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation.

[0083] The B code terminal can use the full second pulse counter (ClkCnt) and the second pulse counter (EpochCnt) to maintain the B code time. The specific maintenance method is as follows:

[0084] The crystal oscillator of the measurement and control equipment to which the B code terminal belongs will generate a high-frequency clock signal. Every time the B code terminal detects a crystal oscillator clock signal, the count of the whole second pulse counter and the count of the intra-second pulse counter will be incremented by 1;

[0085] On the one hand, when the count of the whole second pulse counter reaches the set whole second accumulation threshold ClkNum, it can be considered that 1 second has passed, so the B code terminal outputs a whole second pulse signal, and the second count of the week of the B code time is incremented by 1, and the count of the whole second pulse counter is cleared at the same time. When the second count of the week accumulates for a full week, the week of the B code time is incremented by 1;

[0086] On the other hand, when the count of the intra-second pulse counter reaches the set intra-second pulse threshold EpochNum, it can be considered that 10ms has passed, so the B code terminal clears the count of the intra-second pulse counter and outputs a 10ms pulse signal.

[0087] As an example, a crystal oscillator can generate a 100MHz crystal oscillator clock signal. In this case, the whole second accumulation threshold can be set to 100000000, which is 10 to the 8th power, indicating that after the crystal oscillator has generated a total of 10 to the 8th power crystal oscillator clock signals, 1 second has passed. The intra-second pulse threshold can be set to 1000000, which is 10 to the 6th power, indicating that after the crystal oscillator has generated a total of 10 to the 6th power crystal oscillator clock signals, 10ms have passed.

[0088] During the output of the B code pulse signal corresponding to the calibrated B code time, the intra-second pulse threshold and epoch pulse width of the B code terminal are calibrated according to the intra-second decimal deviation.

[0089] The initial value of the full second pulse counter and the intra-second pulse counter can be 0.

[0090] In practical applications, the frequency of the crystal clock signal output by the crystal oscillator may fluctuate, for example, from 100 MHz to 110 MHz, or to 90 MHz, which results in inaccurate intra-second pulse signals generated based on the crystal clock signal and the intra-second pulse threshold.

[0091] For example, when the frequency of the crystal oscillator clock signal becomes 90MHz, the time after the crystal oscillator generates a total of 10 to the power of 6 crystal oscillator clock signals is greater than 10ms, and the intra-second pulse signal generated by the B code terminal at this time becomes a pulse signal with a period greater than 10ms. Correspondingly, when the frequency of the crystal oscillator clock signal becomes 110MHz, the time after the crystal oscillator generates a total of 10 to the power of 6 crystal oscillator clock signals is less than 10ms, and the intra-second pulse signal generated by the B code terminal at this time becomes a pulse signal with a period less than 10ms.

[0092] At the same time, the frequency fluctuation of the crystal oscillator clock signal will also cause the pulse width of the intra-second pulse signal (ie, the epoch pulse width) to change, which may cause the subsystem receiving the intra-second pulse signal to be unable to accurately identify the corresponding code element.

[0093] To this end, in this embodiment, during the period when the B code terminal outputs the B code pulse signal corresponding to the calibrated B code time, the intra-second pulse threshold and epoch pulse width of the B code terminal are calibrated according to the intra-second decimal deviation. Therefore, when the frequency of the crystal oscillator clock signal fluctuates, the intra-second pulse threshold and the epoch pulse width representing different code elements are adaptively adjusted to keep the period of the intra-second pulse signal unchanged and the epoch pulse width corresponding to different code elements unchanged, thereby providing an accurate intra-second pulse signal.

[0094] Exemplarily, when the frequency of the crystal oscillator clock signal becomes 90 MHz, through step S204, the B code terminal can correct the pulse threshold within a second to 900000, and adjust the epoch pulse width of different code elements according to the corrected pulse threshold within a second.

[0095] Under the condition that the satellite navigation signal of the target satellite navigation system can be continuously obtained, according to the calibration method provided in this embodiment, the B code terminal can obtain the time deviation once a second. Each time the time deviation is obtained, the B code terminal calibrates the B code time based on the weekly deviation and the intra-week second count deviation, and within the next 1 second, continuously calibrates the intra-second pulse threshold and epoch pulse width within this 1 second based on the intra-second decimal deviation.

[0096] Exemplarily, assuming that the B code terminal obtains a time deviation through S201 and S202 at time T0, then the B code terminal uses the decimal deviation in the time deviation obtained at time T0 to calibrate the intra-second pulse threshold and epoch pulse width during the period from time T0 to time T0+1 second. At time T0+1 second, the B code terminal obtains another time deviation. Then, the B code terminal uses the decimal deviation in the time deviation obtained at time T0+1 second to calibrate the intra-second pulse threshold and epoch pulse width during the period from time T0+1 second to time T0+2 seconds, and so on, until the B code terminal cannot receive the satellite navigation signal, or the timing quality information of the satellite navigation signal does not meet the calibration quality conditions.

[0097] The beneficial effect of this embodiment is that during the output of the B-code pulse signal, the intra-second pulse threshold and epoch pulse width can be calibrated according to the intra-second decimal deviation between the standard time and the B-code time, thereby improving the accuracy of the 10ms pulse signal contained in a frame of B-code pulse signal, so that the subsystem, measurement and control equipment and timing center can maintain consistency in the intra-second moment through a more accurate 10ms pulse signal, thereby achieving the effect of improving the timing accuracy.

[0098] Furthermore, the calibration method of the present embodiment does not rely on a tamable high-stable crystal oscillator. Compared with the aforementioned calibration scheme that relies on a tamable high-stable crystal oscillator, the calibration method of the present embodiment has a wider scope of application.

[0099] In some embodiments, the B-code terminal can determine whether to calibrate the B-code time and pulse threshold within seconds based on the timing quality of the target satellite navigation system. Figure 3 , is a flowchart of another calibration method of a B-code timing system based on satellite navigation provided in this embodiment, and the method may include the following steps.

[0100] S301, obtaining standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal.

[0101] S302: Determine timing quality information corresponding to the satellite navigation signal.

[0102] When the timing quality information meets the calibration quality condition, step S303 is executed; when the timing quality information does not meet the calibration quality condition, step S306 is executed.

[0103] In some embodiments, the timing quality information corresponding to the satellite navigation signal may be any one of TRUST, KEEP and UNKNOWN, wherein TRUST has the highest time quality and UNKNOWN has the lowest time quality. In this case, if the timing quality information is TRUST, it means that the timing quality information meets the calibration quality condition, and if the timing quality information is KEEP or UNKNOWN, it means that the timing quality information does not meet the calibration quality condition.

[0104] In some embodiments, the timing quality information corresponding to the satellite navigation signal may be any one of TRUST, ACCURATE, KEEP, COARSE, EXTSET and UNKNOWN, which are ordered from high to low. In this case, if the timing quality information is TRUST or ACCURATE, it means that the timing quality information meets the calibration quality condition, and if the timing quality information is any one of KEEP, COARSE, EXTSET and UNKNOWN, it means that the timing quality information does not meet the calibration quality condition.

[0105] For the former case, the B-code terminal can determine the timing quality information corresponding to the satellite navigation signal as follows:

[0106] If the length of time that the B code terminal continuously accesses the target satellite navigation system (that is, the duration of positioning) is greater than or equal to 100 seconds, the timing quality information is determined to be TRUST. If the B code terminal loses signal lock after accessing the target satellite navigation system, then within 100 seconds after the signal is lost, the timing quality information is determined to be KEEP. Within a certain period of time after the measurement and control equipment to which the B code terminal belongs is initialized and powered on, for example, within 100 seconds after initialization and power-on, the B code terminal determines the timing quality information to be UNKNOWN.

[0107] S303, calculating the time deviation between the standard time and the B code time of the B code terminal, where the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second.

[0108] S304, calibrating the B code time according to the week deviation and the intra-week second count deviation to obtain the calibrated B code time.

[0109] S305, during the output of the B code pulse signal corresponding to the calibrated B code time, calibrate the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation.

[0110] In this embodiment, the specific implementation of step S301, steps S303 to S305 can be found in Figure 2 The corresponding embodiments are not described in detail.

[0111] S306, maintain B code time.

[0112] Maintaining the B code time can be understood as the B code terminal continuing to maintain the B code time in the manner introduced in S204 based on the current intra-second pulse threshold and whole-second accumulation threshold, using the crystal oscillator clock signal, the whole-second pulse counter and the intra-second pulse counter.

[0113] The beneficial effect of this embodiment is that when the timing quality information is good, the standard time is used to calibrate the B code time, the pulse threshold within seconds and the epoch pulse width. When the timing quality information is poor, no calibration is performed, and the local pulse threshold within seconds and the whole second accumulation threshold, crystal oscillator clock signal, whole second pulse counter and pulse counter within seconds of the B code terminal are used to maintain the B code time by itself, which can not only improve the accuracy of the B code time and the pulse signal within seconds, but also avoid calibration when the timing quality is poor, which increases the error of the B code time and the pulse signal within seconds.

[0114] In some optional embodiments, the implementation of step S204 may include:

[0115] A1, filtering the intra-second decimal deviation based on the narrowband filtering mode or the broadband filtering mode to obtain the intra-second pulse threshold correction value;

[0116] A2, updates the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second pulse threshold correction value EpochError.

[0117] Wherein, step A1 may include:

[0118] When the filter is in a broadband filtering mode, determining whether the fractional deviation within a second is less than a first filtering threshold, the first filtering threshold being greater than or equal to 200 microseconds and less than or equal to 500 microseconds;

[0119] The specific value of the first filtering threshold can be set within the above range according to actual conditions and is not limited;

[0120] If the fractional deviation within a second is continuously less than or equal to the first filtering threshold, the fractional deviation within a second is filtered by a filter in a broadband filtering mode to obtain a pulse threshold correction within a second, and the filtering counter is incremented by 1, and the initial value of the filtering counter is 0;

[0121] If the intra-second decimal deviation is greater than the first filtering threshold, the intra-second decimal deviation is considered unreliable, and the intra-second decimal deviation is not filtered at this time, and correspondingly, the subsequent step A2 is not performed;

[0122] When the filter is in a narrowband filtering mode, determining whether the fractional deviation within a second is less than a second filtering threshold, the second filtering threshold being greater than or equal to 500 nanoseconds and less than or equal to 800 nanoseconds;

[0123] The specific value of the second filtering threshold can be set within the above range according to actual conditions and is not limited;

[0124] If the fractional deviation within a second is less than or equal to the second filtering threshold, the fractional deviation within a second is filtered by a filter in a narrowband filtering mode to obtain a pulse threshold correction within a second, and the count of the filtering counter is incremented by 1;

[0125] If the fractional deviation within a second is greater than the second filtering threshold, it is determined that the fractional deviation within a second obtained this time is unreliable, the fractional deviation within a second obtained this time is discarded, the fractional deviation within a second obtained this time is not filtered, the count of the filtering counter is decremented by 1, and the subsequent step A2 is not executed;

[0126] Among them, the filter is in broadband filtering mode when it is started. The filter in broadband filtering mode switches to narrowband filtering mode when the value of the filter counter reaches a first switching threshold. The filter in narrowband filtering mode switches to broadband filtering mode when the value of the filter counter reaches a second switching threshold. The first switching threshold is greater than the second switching threshold, and the value of the filter counter is cleared when the filter switches mode.

[0127] The specific values ​​of the first switching threshold and the second switching threshold can be set as needed without limitation. As an example, the first switching threshold can be set to 30, and the second switching threshold can be set to 10.

[0128] The filter in the process of obtaining the pulse threshold correction amount within a second can be a loop filter or other types of filters. The specific principle of the filter filtering the decimal deviation within a second in the broadband filtering mode and the specific principle of the filter filtering the decimal deviation within a second in the narrowband filtering mode can be found in the prior art documents in the relevant technical field, and will not be described in detail in this embodiment.

[0129] The following is an example to illustrate the execution process of step A1:

[0130] Assume that the B code terminal starts to execute step A1 at time T0. At this time, the B code terminal first starts a filter, sets the filter to a broadband filter mode, and starts a filter counter SwitchCount, and initializes the count of the filter counter to 0;

[0131] After starting the filter and the filter counter, the B code terminal compares the intra-second decimal deviation obtained through S202 at time T0 with the first filter threshold, and finds that the intra-second decimal deviation is less than or equal to the first filter threshold, so the B code terminal uses the filter to filter the intra-second decimal deviation in the broadband filtering mode to obtain the intra-second pulse threshold correction amount, and at the same time, the B code terminal increments the count of the filter counter by 1;

[0132] During the period from time T0 to time T0+1 seconds, the B code terminal uses the intra-second pulse threshold correction value obtained at time T0 to perform step A2;

[0133] At T0+1 second, the B code terminal obtains a fractional deviation within a second through S202 again. After comparison, it is found that the fractional deviation within a second obtained at T0+1 second is greater than the first filtering threshold, so the B code terminal does not filter the fractional deviation within a second, and does not execute A2 within the next 1 second, that is, from T0+1 second to T0+2 second. At the same time, the count of the filtering counter remains unchanged.

[0134] At T0+2 seconds, the B code terminal obtains another intra-second decimal deviation through S202. After comparison, it is found that the intra-second decimal deviation obtained at T0+2 seconds is less than or equal to the first filtering threshold, so the B code terminal uses the filter in the broadband filtering mode to filter the intra-second decimal deviation, and in the next 1 second, that is, from T0+2 seconds to T0+3 seconds, the intra-second pulse threshold correction amount obtained by filtering is used to execute A2, and at the same time, the count of the filtering counter is incremented by 1;

[0135] By analogy, until the time T0+n seconds, the B code terminal obtains a fractional deviation within one second through S202. At this time, the B code terminal finds that the count of the filter counter has reached the first switching threshold, so the B code terminal switches the filter from the broadband filtering mode to the narrowband filtering mode.

[0136] After the switch, the B-code terminal compares the intra-second decimal deviation obtained at T0+n seconds with the second filtering threshold, and finds that the intra-second decimal deviation obtained this time is less than the second filtering threshold, so the B-code terminal uses a filter in narrowband filtering mode to filter the intra-second decimal deviation obtained this time, and executes A2 with the intra-second pulse threshold correction amount obtained by filtering from T0+n seconds to T0+n+1 seconds thereafter;

[0137] After several more seconds, at time T0+m seconds, the B code terminal finds that the count of the filter counter has reached the second switching threshold, so the B code terminal switches the filter from the narrowband filtering mode to the broadband filtering mode, and then repeats the process under the aforementioned broadband filtering mode until the B code terminal stops calibrating according to the method of this embodiment.

[0138] Step A2 may include:

[0139] When the count of the pulse within a second counter reaches the pulse within a second threshold, the count of the pulse within a second counter is cleared, and the count of the pulse within a second counter increases with the system clock signal of the B code terminal;

[0140] Calculate the cumulative error threshold of the next epoch period according to the intra-second pulse threshold correction value;

[0141] Update the pulse threshold correction value within a second and the pulse threshold within a second of the B code terminal of the next epoch period according to the accumulated error threshold of the next epoch period;

[0142] The epoch pulse width of the next epoch period is updated according to the updated intra-second pulse threshold.

[0143] Step A2 is equivalent to, at the end of each epoch period, correcting the intra-second pulse threshold correction amount and the intra-second pulse threshold of the next epoch period according to the intra-second pulse threshold correction amount of the current epoch period, wherein the intra-second pulse threshold correction amount of the first epoch period within 1 second is the intra-second pulse threshold correction amount obtained by filtering processing in step A1.

[0144] Exemplarily, at time T0, the B code terminal obtains an intra-second pulse threshold correction through step A1, and determines the intra-second pulse threshold correction as the intra-second pulse threshold correction of the first epoch period from time T0 to time T0+1 seconds. At the end of the first epoch period, the B code terminal uses the intra-second pulse threshold correction of the first epoch period to determine the intra-second pulse threshold correction and the intra-second pulse threshold of the second epoch period. At the end of the second epoch period, the B code terminal uses the intra-second pulse threshold correction of the second epoch period to determine the intra-second pulse threshold correction and the intra-second pulse threshold of the third epoch period, and so on, until the end of the last epoch period from time T0 to time T0+1 seconds.

[0145] Among them, one epoch period can be understood as the time period from when the count of the intra-second pulse counter accumulates from zero to when the intra-second pulse threshold is reached, that is, the aforementioned 10ms time.

[0146] In step A2, the cumulative error threshold of the next epoch period can be calculated using the following formula:

[0147] Current EpochErrorAcc = Historical EpochErrorAcc + EpochError, (1);

[0148] Error=current EpochErrorAcc+EpochError, (2).

[0149] In formulas (1) and (2), historical EpochErrorAcc represents the cumulative value of the correction in the current epoch cycle. If the current epoch cycle is the first epoch cycle within 1 second, the cumulative value of the correction in the current epoch cycle is zero. Current EpochErrorAcc represents the cumulative value of the correction in the next epoch cycle. Error is the accumulated error threshold of the next epoch cycle, and EpochError is the pulse threshold correction in seconds in the current epoch cycle.

[0150] The above calculation formula is explained with examples:

[0151] Assume that the count of the intrasecond pulse counter is cleared at time T1, and then the count of the intrasecond pulse counter is accumulated with the number of crystal oscillator clock signals. At time T2, the count of the intrasecond pulse counter reaches the intrasecond pulse threshold. Then the period from time T1 to time T2 can be regarded as the current epoch period. The B code terminal can substitute the intrasecond pulse threshold correction value and the cumulative correction value of the epoch period from time T1 to time T2 into formulas (1) and (2) to calculate the cumulative correction value "Current EpochErrorAcc" of the next epoch period (that is, the epoch period after time T2), and the cumulative error threshold of the next epoch period.

[0152] The method for updating the pulse threshold correction value within a second and the pulse threshold within a second of the next epoch period can be:

[0153] Compare the accumulated error threshold of the next epoch cycle with the period of the crystal oscillator clock signal. If the accumulated error threshold is greater than 0.5 period of the crystal oscillator clock signal, the B code terminal increases the pulse threshold within a second of the current epoch cycle by 1 to obtain the pulse threshold within a second of the next epoch cycle. At the same time, subtract 1 from the pulse threshold correction value within a second of the current epoch cycle, and the result is used as the pulse threshold correction value within a second of the next epoch cycle.

[0154] If the accumulated error threshold is less than or equal to 0.5 cycles of the crystal oscillator clock signal, the B code terminal will decrease the pulse threshold within a second of the current epoch cycle by 1 to obtain the pulse threshold within a second of the next epoch cycle. At the same time, the pulse threshold correction value within a second of the current epoch cycle is increased by 1, and the result is used as the pulse threshold correction value within a second of the next epoch cycle.

[0155] The above update method can also be expressed as:

[0156] If Error>0.5*T(crystal oscillator), then the current EpochNum=historical EpochNum+1, the current EpochError=historical EpochError-1;

[0157] If Error≤0.5*T(crystal oscillator), then the current EpochNum=historical EpochNum-1, and the current EpochError=historical EpochError+1.

[0158] Among them, T (crystal oscillator) represents the period of the crystal oscillator clock signal, the current EpochNum represents the pulse threshold within seconds of the next epoch period, the historical EpochNum represents the pulse threshold within seconds of the current epoch period, the historical EpochError represents the pulse threshold correction within seconds of the current epoch period, and the current EpochError represents the pulse threshold correction within seconds of the next epoch period.

[0159] Through the above updating method, the accuracy of the rising edge of the 10ms pulse within a second can be controlled within 0.5 cycles of the crystal oscillator clock signal, thereby improving the timing accuracy.

[0160] The epoch pulse width for the next epoch cycle is updated as follows:

[0161] If the code element corresponding to the next epoch period is the "0" code element, the epoch pulse width of the next epoch period is set to 0.2*current EpochNum*T(crystal oscillator); if the code element corresponding to the next epoch period is the "1" code element, the epoch pulse width of the next epoch period is set to 0.5*current EpochNum*T(crystal oscillator); if the code element corresponding to the next epoch period is the "p" code element, the epoch pulse width of the next epoch period is set to 0.8*current EpochNum*T(crystal oscillator).

[0162] In some optional embodiments, the B code terminal calibrates the B code time according to the week deviation and the intra-week second count deviation, and after obtaining the calibrated B code time, the following steps may be further performed:

[0163] Calibrate the whole second accumulation threshold based on the fractional deviation within the second.

[0164] The calibration method is as follows:

[0165] First, the B code terminal converts the decimal deviation within a second into the system clock correction number ClkAdjust. The system clock correction number indicates the number of crystal oscillator clock signals, or the number of cycles, contained in the duration corresponding to the decimal deviation within a second. The conversion method is to divide the decimal deviation within a second by the cycle of the crystal oscillator clock signal of the B code terminal, and the result is used as the system clock correction number.

[0166] After obtaining the system clock correction number, the B code terminal adds the whole second accumulation threshold before calibration to the system clock correction number to obtain the whole second accumulation threshold after calibration, that is: current ClkCnt = historical ClkCnt + ClkAdjust, where historical ClkCnt represents the whole second accumulation threshold before calibration, and current ClkCnt represents the whole second accumulation threshold after calibration.

[0167] The present application also provides a calibration device for a B-code timing system based on satellite navigation, see Figure 4, is a schematic diagram of the structure of the device, and the device may include the following units.

[0168] An obtaining unit 401 is used to obtain a standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal;

[0169] A calculation unit 402 is used to calculate the time deviation between the standard time and the B code time of the B code terminal, where the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second;

[0170] The calibration unit 403 is used for:

[0171] The B code time is calibrated according to the weekly deviation and the intra-week second count deviation to obtain the calibrated B code time;

[0172] During the output of the B code pulse signal corresponding to the calibrated B code time, the intra-second pulse threshold and epoch pulse width of the B code terminal are calibrated according to the intra-second decimal deviation.

[0173] Optionally, the device further includes a determining unit 404, configured to:

[0174] Determine the timing quality information corresponding to the satellite navigation signal;

[0175] When the timing quality information does not meet the calibration quality conditions, the B code time is maintained;

[0176] When the calculation unit calculates the time deviation between the standard time and the B code time of the B code terminal, it is specifically used to:

[0177] When the timing quality information meets the calibration quality condition, the time deviation between the standard time and the B code time of the B code terminal is calculated.

[0178] Optionally, when the calibration unit 403 calibrates the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation, it is specifically used to:

[0179] Based on the narrowband filtering mode or the broadband filtering mode, the intra-second decimal deviation is filtered to obtain the intra-second pulse threshold correction value;

[0180] The intra-second pulse threshold and epoch pulse width of the B code terminal are updated according to the intra-second pulse threshold correction amount.

[0181] Optionally, the calibration unit 403 performs filtering processing on the intra-second decimal deviation based on the narrowband filtering mode or the broadband filtering mode to obtain the intra-second pulse threshold correction value, which is specifically used for:

[0182] When the filter is in a broadband filtering mode, determining whether the fractional deviation within a second is less than a first filtering threshold, the first filtering threshold being greater than or equal to 200 microseconds and less than or equal to 500 microseconds;

[0183] If the fractional deviation within a second is continuously smaller than the first filtering threshold, the fractional deviation within a second is filtered by a filter in a broadband filtering mode to obtain a pulse threshold correction within a second, and the filter counter is incremented by 1, and the initial value of the filter counter is 0;

[0184] When the filter is in a narrowband filtering mode, determining whether the fractional deviation within a second is less than a second filtering threshold, the second filtering threshold being greater than or equal to 500 nanoseconds and less than or equal to 800 nanoseconds;

[0185] If the fractional deviation within a second is less than the second filtering threshold, the fractional deviation within a second is filtered by a filter in a narrowband filtering mode to obtain a pulse threshold correction within a second, and the filtering counter is incremented by 1;

[0186] Among them, the filter is in broadband filtering mode when it is started. The filter in broadband filtering mode switches to narrowband filtering mode when the value of the filter counter reaches a first switching threshold. The filter in narrowband filtering mode switches to broadband filtering mode when the value of the filter counter reaches a second switching threshold. The first switching threshold is greater than the second switching threshold, and the value of the filter counter is cleared when the filter switches mode.

[0187] Optionally, when the calibration unit 403 updates the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second pulse threshold correction amount, it is specifically used to:

[0188] When the count of the pulse within a second counter reaches the pulse within a second threshold, the count of the pulse within a second counter is cleared, and the count of the pulse within a second counter increases with the system clock signal of the B code terminal;

[0189] Calculate the cumulative error threshold of the next epoch period according to the intra-second pulse threshold correction value;

[0190] Update the pulse threshold correction value within a second and the pulse threshold within a second of the B code terminal of the next epoch period according to the accumulated error threshold of the next epoch period;

[0191] The epoch pulse width of the next epoch period is updated according to the updated intra-second pulse threshold.

[0192] Optionally, after the calibration unit 403 calibrates the B code time according to the week deviation and the second count deviation within the week to obtain the calibrated B code time, it is further used to:

[0193] Calibrate the whole second accumulation threshold based on the fractional deviation within the second.

[0194] The specific working principle and beneficial effects of the calibration device of the B-code timing system based on satellite navigation provided in this embodiment can be referred to the relevant steps and beneficial effects of the calibration method of the B-code timing system based on satellite navigation provided in any embodiment of the present application, and will not be repeated here.

[0195] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0196] It should be noted that the concepts such as “first” and “second” mentioned in the present invention are only used to distinguish different systems, modules or units, and are not used to limit the order or interdependence of the functions performed by these systems, modules or units.

[0197] The present application can be implemented or used by professionals and technicians. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A calibration method for a B-code timing system based on satellite navigation, characterized in that: include: Obtaining standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal; Calculate the time deviation between the standard time and the B code time of the B code terminal, wherein the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second; Calibrate the B code time according to the weekly deviation and the intra-week second count deviation to obtain a calibrated B code time; During the output of the B code pulse signal corresponding to the calibrated B code time, filtering the intra-second decimal deviation based on a narrowband filtering mode or a broadband filtering mode to obtain an intra-second pulse threshold correction amount; The intra-second pulse threshold and epoch pulse width of the B code terminal are updated according to the intra-second pulse threshold correction amount.

2. The method according to claim 1, characterized in that Before calculating the time deviation between the standard time and the B code time of the B code terminal, the method further includes: Determine the timing quality information corresponding to the satellite navigation signal; When the timing quality information does not meet the calibration quality condition, maintaining the B code time; The calculating of the time deviation between the standard time and the B code time of the B code terminal comprises: In a case where the timing quality information satisfies the calibration quality condition, a time deviation between the standard time and the B code time of the B code terminal is calculated.

3. The method according to claim 1, characterized in that The filtering process of the intra-second decimal deviation based on the narrowband filtering mode or the broadband filtering mode to obtain the intra-second pulse threshold correction value includes: When the filter is in a broadband filtering mode, determining whether the fractional deviation within a second is less than a first filtering threshold, wherein the first filtering threshold is greater than or equal to 200 microseconds and less than or equal to 500 microseconds; If the intra-second decimal deviation is continuously smaller than the first filtering threshold, the intra-second decimal deviation is filtered by the filter in the broadband filtering mode to obtain an intra-second pulse threshold correction amount, and the filtering counter is incremented by 1, and the initial value of the filtering counter is 0; When the filter is in a narrowband filtering mode, determining whether the fractional deviation within a second is less than a second filtering threshold, the second filtering threshold being greater than or equal to 500 nanoseconds and less than or equal to 800 nanoseconds; If the intra-second decimal deviation is less than the second filtering threshold, the intra-second decimal deviation is filtered by the filter in the narrowband filtering mode to obtain an intra-second pulse threshold correction amount, and the filtering counter is incremented by 1; Among them, the filter is in the broadband filtering mode when it is started, the filter in the broadband filtering mode is switched to the narrowband filtering mode when the value of the filter counter reaches the first switching threshold, the filter in the narrowband filtering mode is switched to the broadband filtering mode when the value of the filter counter reaches the second switching threshold, the first switching threshold is greater than the second switching threshold, and the value of the filter counter is cleared when the filter switches to the mode.

4. The method according to claim 1, characterized in that: The updating of the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second pulse threshold correction amount includes: When the count of the pulse within a second counter reaches the pulse within a second threshold, the count of the pulse within a second counter is reset to zero, and the count of the pulse within a second counter increases with the system clock signal of the B code terminal; Calculate the cumulative error threshold of the next epoch period according to the intra-second pulse threshold correction amount; Update the intra-second pulse threshold correction amount and the intra-second pulse threshold of the B code terminal in the next epoch period according to the accumulated error threshold in the next epoch period; The epoch pulse width of the next epoch period is updated according to the updated intra-second pulse threshold.

5. The method according to claim 1, characterized in that After calibrating the B code time according to the week deviation and the intra-week second count deviation to obtain the calibrated B code time, the method further includes: The whole second accumulation threshold is calibrated according to the fractional deviation within the second.

6. A calibration device for a B-code timing system based on satellite navigation, characterized in that: include: An obtaining unit, used to obtain standard time from a target satellite navigation system, where the target satellite navigation system is the satellite navigation system currently accessed by the B-code terminal; A calculation unit, used to calculate the time deviation between the standard time and the B code time of the B code terminal, wherein the time deviation includes a week deviation, a second count deviation within a week, and a decimal deviation within a second; Calibration unit for: Calibrate the B code time according to the weekly deviation and the intra-week second count deviation to obtain a calibrated B code time; During the output of the B code pulse signal corresponding to the calibrated B code time, calibrating the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation; When the calibration unit calibrates the intra-second pulse threshold and epoch pulse width of the B code terminal according to the intra-second decimal deviation, it is specifically used to: Filtering the intra-second decimal deviation based on a narrowband filtering mode or a broadband filtering mode to obtain an intra-second pulse threshold correction value; The intra-second pulse threshold and epoch pulse width of the B code terminal are updated according to the intra-second pulse threshold correction amount.

7. The device according to claim 6, characterized in that The device also includes a determining unit, configured to: Determine the timing quality information corresponding to the satellite navigation signal; When the timing quality information does not meet the calibration quality condition, maintaining the B code time; When the calculation unit calculates the time deviation between the standard time and the B code time of the B code terminal, it is specifically used to: In a case where the timing quality information satisfies the calibration quality condition, a time deviation between the standard time and the B code time of the B code terminal is calculated.

8. The device according to claim 6, characterized in that The calibration unit calibrates the B code time according to the week deviation and the week second count deviation to obtain the calibrated B code time, and is further used to: The whole second accumulation threshold is calibrated according to the fractional deviation within the second.