Search

CN-121997074-A - Time synchronization data processing method and system

CN121997074ACN 121997074 ACN121997074 ACN 121997074ACN-121997074-A

Abstract

The invention discloses a time setting data processing method and a system, which relate to the technical field of data processing, wherein the method comprises the steps of acquiring an acquisition period based on local environment data, and acquiring high-precision time setting data and local perception data; analyzing the data characteristics of the crystals in the same batch, acquiring time setting deviation based on the high-precision time setting data and the local perception data, acquiring a rationality analysis result based on the data characteristics, adjusting the acquisition period, acquiring an optimized acquisition period, acquiring a correction value based on the local environment data in combination with a mapping table, dynamically correcting the mapping table based on the correlation relationship between the time setting deviation and the mutual influence of the crystal data characteristics and the time setting deviation, and acquiring a correction mapping table for processing the time setting data in the next period. The invention solves the technical problem of poor time setting data processing effect in the prior art.

Inventors

  • WAN MINGDE
  • ZHAO XINYAN
  • ZHU CHENG
  • LI DA
  • FAN CHENGZHI
  • ZHANG KUN
  • Yuan Shangqing
  • WANG RUI
  • SHI CHENG
  • LI CHEN
  • ZHANG YUE
  • LI ZHONGHAO
  • Liu tianrui

Assignees

  • 国网上海市电力公司

Dates

Publication Date
20260508
Application Date
20260407

Claims (10)

  1. 1. A method of processing time-lapse data, comprising: acquiring a collection period based on local environment data, and collecting high-precision time setting data and local perception data; Analyzing the data characteristics of crystals in the same batch, and acquiring time setting deviation based on the high-precision time setting data and the local perception data; Based on the rationality of the time deviation of the data characteristic analysis, acquiring a rationality analysis result, and adjusting the acquisition period to acquire an optimized acquisition period; And acquiring a correction value based on the local environment data and combining a mapping table, and dynamically correcting the mapping table based on the time setting deviation and the mutual influence association relation between the crystal data characteristics and the time setting deviation to acquire a correction mapping table for time setting data processing of the next period.
  2. 2. The method of claim 1, wherein acquiring the acquisition period based on the local environment data, acquiring the high-precision time setting data and the local perception data, comprises: Acquiring local environment data, wherein the local environment data comprises a local temperature; Acquiring an acquisition period based on the local environment data; And acquiring high-precision time setting data and local perception data by adopting the acquisition period, wherein the high-precision time setting data comprises a time stamp output by a clock source, and the local perception data comprises a time stamp output by a local clock.
  3. 3. The method of claim 2, wherein acquiring the acquisition period based on the local environment data comprises: calculating the deviation degree of the local environment data and the standard environment data; and scaling the standard acquisition period based on the deviation degree to acquire the acquisition period.
  4. 4. The method according to claim 1, wherein analyzing the data characteristics of the same batch of crystals and obtaining the time synchronization bias based on the high-precision time synchronization data and the local perception data comprises: Extracting working characteristic parameters of clock crystals of the same type as the local clock crystals, and obtaining data characteristics of the same type of crystals through statistical analysis, wherein the data characteristics at least comprise local environment data of the same type of crystals and mean values and standard deviations of time synchronization deviations of the same type of crystals; and calculating the deviation values of the high-precision time setting data and the local perception data to obtain time setting deviation.
  5. 5. The method for processing time-setting data according to claim 4, wherein obtaining a result of the rationality analysis based on the rationality of the data characteristic analysis time-setting deviation comprises: calculating the z fraction of the crystal local environment data and the similar crystal local environment data based on the data characteristics, and mapping to obtain an environment rationality analysis result; calculating the z fraction of the time setting deviation and the similar time setting deviation, and mapping to obtain a deviation rationality analysis result; And carrying out weighted calculation on the environmental rationality analysis result and the deviation rationality analysis result to obtain a rationality analysis result.
  6. 6. The method of claim 1, wherein adjusting the acquisition period to obtain an optimized acquisition period comprises: Calculating and acquiring a period scaling factor based on the rationality analysis result; and calculating the product of the period scaling coefficient and the acquisition period to obtain an optimized acquisition period.
  7. 7. The method according to claim 4, wherein the obtaining the correction value based on the local environment data in combination with the mapping table, and the dynamically correcting the mapping table based on the correlation between the time synchronization deviation and the correlation between the crystal data characteristic and the time synchronization deviation, and obtaining the corrected mapping table for the time synchronization data processing of the next period, comprises: A pre-stored mapping table is called, wherein the mapping table is a corresponding relation table of local environment data and crystal frequency correction values, and the crystal frequency correction values corresponding to the current local environment data are matched through a table look-up method; Establishing an influence correlation model, inputting the local environment data and the time setting deviation into the model, and obtaining a correction coefficient; updating the mapping table based on the correction coefficient to obtain a correction mapping table; And storing the correction mapping table in a storage module of the timekeeping terminal, and directly calling the correction mapping table to match local environment data to obtain a correction value when the next period is time-setting data processing.
  8. 8. The method for processing time synchronization data according to claim 7, wherein the construction of the influence correlation model comprises: constructing an influence correlation model basic framework; Taking the local environment data and the similar time setting deviation of the similar crystals as an input set, and obtaining similar correction coefficients corresponding to the similar crystals as an output set; And training the influence correlation model basic framework by adopting the input set and the output set to obtain an influence correlation model.
  9. 9. The method of processing time-lapse data according to claim 8, wherein obtaining the same kind of correction coefficients corresponding to the same kind of crystals comprises: The mapping table of the pre-stored similar crystals is called, and standard crystal frequency correction values corresponding to local environment data of the similar crystals are matched; calculating an actual crystal frequency correction value of the homogeneous crystal adapted to the local environment data of the homogeneous crystal based on the homogeneous time synchronization deviation; calculating the ratio of the standard crystal frequency correction value to the actual crystal frequency correction value, and obtaining the similar correction coefficients corresponding to similar crystals.
  10. 10. A time tick data processing system for implementing a time tick data processing method according to any of claims 1-9, the system comprising: the data acquisition module is used for acquiring an acquisition period based on local environment data and acquiring high-precision time setting data and local perception data; the characteristic analysis module is used for analyzing the data characteristics of the crystals in the same batch, and acquiring time synchronization deviation based on the high-precision time synchronization data and the local perception data; The period optimization module is used for acquiring a rationality analysis result based on the rationality of the time deviation of the data characteristic analysis, and adjusting the acquisition period to acquire an optimized acquisition period; And the mapping correction module is used for acquiring correction values based on the local environment data and combining a mapping table, dynamically correcting the mapping table based on the time setting deviation and the mutual influence association relation between the crystal data characteristics and the time setting deviation, and acquiring a correction mapping table for processing the time setting data of the next period.

Description

Time synchronization data processing method and system Technical Field The invention relates to the technical field of data processing, in particular to a time synchronization data processing method and system. Background In the technical field of time synchronization, high-precision time keeping terminals generally rely on crystal oscillators to maintain stable operation of local clocks. However, the frequency output of a crystal oscillator is highly susceptible to changes in environmental factors, resulting in a time-to-time offset between the local clock and the standard time source. In order to cope with the characteristic that the crystal frequency varies with the environment, it is a common practice to preset a map table based on laboratory environmental tests, which records the correspondence between environmental parameters and correction values of the crystal frequency, and to obtain the correction values by a table look-up method in actual operation to maintain the time keeping accuracy. However, this open-loop correction approach, which relies on a fixed mapping table, is difficult to adapt to the crystal characteristics, resulting in poor correction accuracy. Disclosure of Invention The application provides a method and a system for processing time-setting data, which are used for solving the technical problem of poor time-setting data processing effect in the prior art. In view of the above problems, the present application provides a method and a system for processing time synchronization data. In a first aspect, the present application provides a method for processing time-setting data, the method comprising: acquiring a collection period based on local environment data, and collecting high-precision time setting data and local perception data; Analyzing the data characteristics of crystals in the same batch, and acquiring time setting deviation based on the high-precision time setting data and the local perception data; Based on the rationality of the time deviation of the data characteristic analysis, acquiring a rationality analysis result, and adjusting the acquisition period to acquire an optimized acquisition period; And acquiring a correction value based on the local environment data and combining a mapping table, and dynamically correcting the mapping table based on the time setting deviation and the mutual influence association relation between the crystal data characteristics and the time setting deviation to acquire a correction mapping table for time setting data processing of the next period. In a second aspect, the present application provides a time tick data processing system comprising: the data acquisition module is used for acquiring an acquisition period based on local environment data and acquiring high-precision time setting data and local perception data; the characteristic analysis module is used for analyzing the data characteristics of the crystals in the same batch, and acquiring time synchronization deviation based on the high-precision time synchronization data and the local perception data; The period optimization module is used for acquiring a rationality analysis result based on the rationality of the time deviation of the data characteristic analysis, and adjusting the acquisition period to acquire an optimized acquisition period; And the mapping correction module is used for acquiring correction values based on the local environment data and combining a mapping table, dynamically correcting the mapping table based on the time setting deviation and the mutual influence association relation between the crystal data characteristics and the time setting deviation, and acquiring a correction mapping table for processing the time setting data of the next period. One or more technical schemes provided by the application have at least the following technical effects or advantages: The application provides a time setting data processing method and a system, which realize the optimal matching of time setting data acquisition frequency and environment change rate by introducing a self-adaptive acquisition period adjustment mechanism based on local environment data, automatically prolong the acquisition interval when the environment is stable so as to reduce the system power consumption and the communication resource occupation, dynamically shorten the acquisition period when the environment is severely changed so as to quickly track the frequency fluctuation, thereby obviously improving the operation energy efficiency of the system on the premise of ensuring the time keeping precision. Meanwhile, the data characteristics of the crystals in the same batch are analyzed, and based on the data characteristics, the time synchronization deviation obtained each time is reasonably analyzed, so that the data participating in subsequent calculation is more representative. By constructing an influence correlation model between the characteristics of the crystal data and the time a