Multi-source wide-area power distribution and utilization terminal timing method and device, electronic equipment and chip

Through multi-source fusion power terminals, multiple timer sources are used to obtain the reference timer and correct it, solving the problem of difficult to achieve high-precision timer synchronization in the existing technology, improving timing accuracy and stability, and supporting the development of smart grids .

CN119497215APending Publication Date: 2025-02-21BEIJING SMARTCHIP SEMICON TECH CO LTD +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411620082.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The prior art is difficult to meet the high-precision timing synchronization requirements of power distribution terminals in power systems. The single timing method has its own shortcomings and it is difficult to achieve wide-area availability and adaptability.

Method used

Using a multi-source fusion power terminal, the reference time is obtained by a preset reference time source or multiple different time sources, the timing deviation value is calculated, and the timing time optimization parameters are determined in combination with the Pearson correlation improved moving average filtering algorithm. , correct the timing time.

Benefits of technology

It improves the accuracy and stability of timing correction, meets the high-precision timing synchronization needs of distribution terminals in power systems, and promotes the high-quality development of smart grids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119497215A_ABST
    Figure CN119497215A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power distribution and utilization and communication, in particular to a multi-source wide-area power distribution and utilization terminal time correction method and device, electronic equipment and a chip. The time correction method comprises the steps that a multi-source fusion power distribution and utilization terminal obtains reference time service time based on a preset reference time service source or based on multiple different time service sources, a time service deviation value between the reference time service time and the time service time of the to-be-corrected time service source is calculated, a time service time optimization parameter is determined according to the time service deviation value in combination with a moving average filtering algorithm improved based on Pearson's correlation, and the time service time optimization parameter is used for correcting the time service time of the to-be-corrected time service source. When time service time optimization parameters are determined, a moving average filtering algorithm which is improved based on Pearson's correlation is combined, and the correlation between data is considered, so that noise can be effectively filtered, time deviation can be smoothed, the accuracy of time service correction is improved, and the high-accuracy time service synchronization requirement of the power distribution and utilization terminal in a power system is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of power distribution and communication technology, and in particular to a time synchronization method, device, electronic device and chip for multi-source wide-area power distribution terminals. Background Art

[0002] The power system is the most critical infrastructure and is vital to the national economy and security. The power system is geographically dispersed. To achieve continuous monitoring of the grid operation status, rapid identification and location of faults, timely response and repair, etc., it is necessary to easily obtain standard time on a large scale to maintain the time synchronization of the power system.

[0003] The efficient interaction, safe and stable operation of power distribution and utilization cannot be separated from various automatic monitoring equipment, and providing a unified time reference for automatic control equipment can ensure the validity of measurement data. Strict time synchronization is required in the synchronous collection of power distribution and utilization information, differential protection, fault monitoring and processing, time-based billing and other services. Time calibration and synchronization are the time basis for the in-depth application of intelligence.

[0004] High-precision and reliable timing sources are the basis and guarantee for the timing of power distribution and utilization terminals. At present, the commonly used timing methods in power systems mainly include: satellite timing (such as Beidou, GPS, low-orbit satellite timing), ground network timing (such as network time protocol NTP, precision time protocol PTP), radio wave timing (such as long wave timing, short wave timing) and 5G communication timing.

[0005] Among them, the space-based timing based on navigation and positioning satellite systems such as Beidou and GPS has high accuracy and is not restricted by geographical location, but there are problems such as lack of indoor coverage, obstruction in densely populated urban areas and high maintenance costs; ground network timing is mainly broadcast through Ethernet, cellular networks, etc., which is easily affected by network delays and error accumulation; radio wave timing has a long propagation distance and can cover a larger area, but compared with satellite timing, the timing accuracy is lower and it is easily affected by weather conditions (such as ionospheric disturbances) and electromagnetic interference. The high reliability and ultra-low latency characteristics unique to 5G communication timing make it an ideal way for power time synchronization and transmission, providing the possibility for the construction of a high-precision time network. The time synchronization error between 5G base stations in my country is within 1.5μs, but the use of 5G air interface technology to time the distribution and use terminals has timing accuracy errors caused by time division duplex communication, inconsistent uplink and downlink rates, and unequal delays. At the same time, 5G air interface wireless transmission may be affected by factors such as signal-to-noise ratio, transmission bandwidth, and base station side processing, resulting in large air interface delay jitter, which in turn affects timing accuracy. Generally speaking, the time synchronization accuracy of power distribution terminals using 5G air interface technology is around ±100ms, which cannot meet the high-precision clock requirements of power distribution terminals.

[0006] It can be seen from this that the existing single timing method has its own shortcomings, and its wide-area availability and adaptability are difficult to meet the high-precision timing and synchronization needs of massive power distribution and power consumption terminals.

[0007] How to meet the high-precision timing and synchronization requirements of power distribution and power consumption terminals in the power system, and thereby promote the high-quality development of smart grids, is an urgent problem to be solved. Summary of the invention

[0008] In order to solve the problems in the related art, the embodiments of the present disclosure provide a multi-source wide-area power distribution terminal time synchronization method, device, electronic device and chip.

[0009] In a first aspect, a multi-source wide-area power distribution terminal timing method is provided in an embodiment of the present disclosure, which is applied to a multi-source integrated power distribution terminal, wherein the multi-source integrated power distribution terminal supports integrated timing of multiple different timing sources, and the timing method includes:

[0010] Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time;

[0011] Obtaining the timing time of the timing source to be corrected corresponding to the specified time;

[0012] Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time;

[0013] The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0014] According to an embodiment of the present disclosure, the step of obtaining a reference timing time based on a preset reference timing source or multiple different timing sources includes:

[0015] The benchmark timing time is obtained according to the preset timing rules, including: when the multi-source integrated power distribution terminal supports the preset benchmark timing source and the preset benchmark timing source meets the preset timing conditions, the benchmark timing time is obtained based on the preset benchmark timing source; otherwise, the benchmark timing time is obtained based on multiple different timing sources.

[0016] According to an embodiment of the present disclosure, the reference timing time is obtained based on multiple different timing sources in the following manner:

[0017] Acquire a preferred timing source set, wherein the preferred timing source set includes a plurality of different preferred timing sources, and the preferred timing source is a timing source that satisfies an evaluation condition and is screened out from the plurality of different timing sources by evaluating them;

[0018] Acquire multiple timing times respectively from the multiple different preferred timing sources based on the preferred timing source set;

[0019] The reference timing time is determined according to multiple timing times of the multiple different preferred timing sources.

[0020] According to an embodiment of the present disclosure, the preferred timing source set is determined according to the following method:

[0021] Acquire timing source evaluation indicators of the multiple different timing sources, wherein the timing source evaluation indicators are used to evaluate the availability of the timing sources;

[0022] Constructing a utility function according to the timing source evaluation index, and using the utility function to calculate the utility values ​​of the multiple different timing sources;

[0023] The multiple different timing sources are sorted from high to low according to the utility values, and according to the sorting result, a preset number of timing sources are selected to form the preferred timing source set.

[0024] According to an embodiment of the present disclosure, the timing source evaluation index includes: timing signal quality, timing accuracy, timing credibility and long-term availability; constructing a utility function according to the timing source evaluation index, and using the utility function to calculate the utility values ​​of the multiple different timing sources, including:

[0025] Obtain the timing signal strength and / or the timing signal signal-to-noise ratio and / or the timing signal jitter rate of each timing source, and obtain the timing signal quality score of each timing source according to the timing signal strength and / or the timing signal signal-to-noise ratio and / or the timing signal jitter rate of each timing source;

[0026] Obtain the timing accuracy of each timing source, and obtain the timing accuracy score of each timing source according to the timing accuracy of each timing source;

[0027] By comparing the synchronization of the timing time of each timing source with the time pulse signal, the timing credibility of each timing source is judged, including: monitoring the frequency of the time pulse signal of each timing source, calculating the pulse deviation of each timing source, and obtaining the timing credibility score of each timing source according to the pulse deviation of each timing source;

[0028] Counting the available time of each timing source within a preset time period, obtaining the long-term availability of each timing source according to the available time of each timing source within the preset time period, and obtaining the score of the long-term availability of each timing source according to the long-term availability of each timing source;

[0029] The utility value of each timing source is calculated according to the following utility function constructed based on the score of the timing signal quality, the score of the timing accuracy, the score of the timing credibility and the score of the long-term availability:

[0030] U i =αQ i +βP i +γR i +δA i ;

[0031] Among them, U i represents the utility value of the i-th timing source, Q i represents the score of the quality of the timing signal of the i-th timing source, α represents the weight of the quality of the timing signal of the i-th timing source; P i represents the score of the timing accuracy of the i-th timing source, β represents the weight of the timing accuracy of the i-th timing source; R i represents the score of the timing credibility of the i-th timing source; γ represents the weight of the timing credibility of the i-th timing source; A i represents the score of the long-term availability of the i-th timing source, and δ represents the weight of the long-term availability of the i-th timing source.

[0032] According to an embodiment of the present disclosure, the step of obtaining timing source evaluation indicators of the plurality of different timing sources includes:

[0033] Obtain the current timing mode, where the current timing mode includes: a conventional timing mode, an emergency timing mode, a high-precision timing mode, a regional timing mode, and a backup timing mode;

[0034] Obtain timing source evaluation indicators of the multiple different timing sources in the current timing mode.

[0035] According to an embodiment of the present disclosure, determining the reference timing time according to multiple timing times of the multiple different preferred timing sources includes:

[0036] Obtaining the timing accuracy and comprehensive credibility of each preferred timing source; wherein the comprehensive credibility is determined based on the stability parameter, accuracy parameter and environmental factor of the corresponding preferred timing source;

[0037] Determine the timing accuracy range of each preferred timing source according to the timing accuracy of each preferred timing source;

[0038] Determine the trust density of each preferred timing source according to the timing accuracy interval and the comprehensive trustworthiness of each preferred timing source, wherein the trust density is the comprehensive trustworthiness divided by the length of the timing accuracy interval;

[0039] Normalize the trust density of each preferred timing source;

[0040] The reference timing time is calculated according to the timing time of each preferred timing source and the credibility density of each preferred timing source after normalization.

[0041] According to an embodiment of the present disclosure, the step of calculating the reference timing time according to the timing time of each preferred timing source and the trust density of each preferred timing source after normalization includes:

[0042] The reference timing time t is calculated using the following formula: d :

[0043]

[0044] Among them, t i is the timing time of the i-th preferred timing source; d i is the normalized credible density of the i-th preferred timing source, n is the total number of preferred timing sources.

[0045] According to an embodiment of the present disclosure, determining the reference timing time according to multiple timing times of the multiple different preferred timing sources includes:

[0046] Obtain the timing accuracy of each preferred timing source;

[0047] Determine the timing range of each preferred timing source according to the timing accuracy and timing time of each preferred timing source;

[0048] By comparing the timing range intervals of each preferred timing source, an intersection interval formed by the intersection of each timing range interval is determined;

[0049] The average value of the two interval endpoints of the intersection interval is used as the reference timing time.

[0050] According to an embodiment of the present disclosure, when there are multiple intersection intervals, the time synchronization method further includes:

[0051] Determining corresponding multiple intermediate values ​​according to the multiple intersection intervals respectively includes:

[0052] Determine the middle value corresponding to each intersection interval as follows:

[0053] Determine the timing accuracy interval of each preferred timing source corresponding to the intersection interval according to the timing accuracy of each preferred timing source corresponding to the intersection interval;

[0054] Determine the credibility density of each preferred timing source corresponding to the intersection interval according to the credibility and timing precision interval of each preferred timing source corresponding to the intersection interval, wherein the credibility density is the credibility divided by the length of the timing precision interval;

[0055] Determine the intermediate value corresponding to the intersection interval according to the maximum of the credible densities of the preferred timing sources corresponding to the intersection interval and the length of the intersection interval, wherein the intermediate value is the product of the maximum and the length of the intersection interval;

[0056] Selecting the largest of the plurality of intermediate values ​​as the preferred intermediate value;

[0057] The step of taking the average value of the two interval endpoints of the intersection interval as the reference timing time comprises:

[0058] The average value of the two interval endpoints of the intersection interval corresponding to the preferred intermediate value is used as the reference timing time.

[0059] According to an embodiment of the present disclosure, the time synchronization method further includes:

[0060] Monitoring the availability of each preferred timing source in the preferred timing source set;

[0061] When the number of available preferred timing sources in the preferred timing source set does not meet a preset number threshold, the preferred timing source set is re-determined.

[0062] According to an embodiment of the present disclosure, monitoring the availability of each preferred timing source in the preferred timing source set includes:

[0063] Performing least square estimation on the local clock error of the multi-source integrated power distribution and utilization terminal after time calibration to generate a first error compensation parameter p1 and a second error compensation parameter p2;

[0064] According to the operation values ​​t corresponding to the i-2, i-1 and i moments of the local clock of the multi-source integrated power distribution and utilization terminal, i-2 ,t i-1 ,t i The first error compensation parameter p1 and the second error compensation parameter p2 are used to obtain the time at the local clock i of the multi-source fusion distribution and utilization terminal for prediction compensation. in,

[0065]

[0066] Obtain the timing time of each preferred timing source in the preferred timing source set at the time i, which are respectively recorded as: t i1 , t i2 ,…t in ; n represents the number of preferred timing sources in the preferred timing source set;

[0067] The error between the timing time of each preferred timing source at time i in the preferred timing source set and the time of the local clock of the multi-source fusion power distribution terminal at time i of the predicted compensation is calculated respectively, wherein the timing time of the jth preferred timing source at time i is t ij The error ε between the time at the local clock i of the multi-source fusion power distribution terminal of the prediction compensation 0j Denoted as:

[0068]

[0069] It is determined whether each error is greater than a set error threshold. If so, it is determined that the corresponding preferred timing source is not available, and the corresponding preferred timing source is deleted from the preferred timing source set.

[0070] According to an embodiment of the present disclosure, there are multiple timing deviation values, and the multiple timing deviation values ​​form an original timing deviation value sequence. The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, including:

[0071] Based on each of the preset multiple window length values, the original timing deviation value sequence is subjected to moving average filtering to generate multiple filtered timing deviation value sequences corresponding to the multiple window length values ​​respectively;

[0072] Determine a plurality of corresponding Pearson coefficients according to the plurality of filtered timing deviation value sequences and the original timing deviation value sequence respectively;

[0073] Comparing the multiple Pearson coefficients with a preset Pearson coefficient threshold value respectively, and taking the Pearson coefficient closest to the preset Pearson coefficient threshold value among the multiple Pearson coefficients as a preferred intermediate value;

[0074] The timing time optimization parameter is determined according to a specified sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value.

[0075] According to an embodiment of the present disclosure, the timing source to be corrected includes: a mobile communication air interface timing source, and the obtaining of the reference timing time includes:

[0076] Obtaining the timing time corresponding to n moments of the preset reference timing source to form a first timing time sequence; wherein n is a positive integer greater than a preset threshold;

[0077] The step of obtaining the timing time of the timing source to be corrected corresponding to the designated time comprises:

[0078] Obtaining the timing time of the mobile communication air interface timing source corresponding to the n moments to form a second timing time sequence;

[0079] The step of calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the designated time comprises:

[0080] Calculating the timing deviation value between the first timing time sequence and the second timing time sequence corresponding to each moment to form the original timing deviation value sequence;

[0081] Wherein, the filtered timing deviation value sequence corresponding to the window length value is determined in the following manner:

[0082]

[0083] Where, ΔT' i represents the ith sequence value in the filtered timing deviation value sequence, m represents the window length value, ΔT i-j represents the ijth sequence value in the original timing deviation value sequence;

[0084] The determining of the corresponding multiple Pearson coefficients according to the multiple filtered timing deviation value sequences and the original timing deviation value sequences respectively includes:

[0085] The Pearson coefficient p corresponding to each filtered timing deviation value sequence is determined as follows:

[0086] The Pearson coefficient p is calculated according to the original timing deviation value sequence and the filtered timing deviation value sequence. The Pearson coefficient p is expressed by the following formula:

[0087]

[0088] Where, ΔT i It is represented as the i-th sequence value in the original timing deviation value sequence, and are respectively the means of the original timing deviation value sequence and the filtered timing deviation value sequence, is the covariance of the original timing offset value sequence and the filtered timing offset value sequence, and are respectively the standard deviations of the original timing deviation value sequence and the filtered timing deviation value sequence;

[0089] The determining the timing time optimization parameter according to the specified sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value includes:

[0090] The timing time optimization parameter is determined according to the nth sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value and the air interface transmission delay corresponding to the nth moment of the mobile communication air interface timing source, wherein the timing time optimization parameter η n Use the following formula to express it:

[0091]

[0092] Where, ΔT n ' is the nth filtered timing deviation value sequence value, τ n is the air interface transmission delay corresponding to the nth moment.

[0093] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the first mobile communication network also includes at least one mobile communication timing node, and the mobile communication timing node supports the mobile communication air interface timing source; the timing method also includes:

[0094] Sending the timing time optimization parameter to the mobile communication base station of the first mobile communication network, so that the mobile communication base station in the first mobile communication network carries the timing time optimization parameter to perform timing on the mobile communication timing node in the first mobile communication network, so that the mobile communication timing node in the first mobile communication network uses the timing time optimization parameter to correct the timing time of the mobile communication air interface timing source;

[0095] And / or, so that the mobile communication base station of the first mobile communication network transmits the timing time optimization parameters back to the mobile communication access layer network, so that the mobile communication access layer network sends the timing time optimization parameters to the mobile communication base station in the second mobile communication network, so that the mobile communication base station in the second mobile communication network carries the timing time optimization parameters to time the mobile communication timing nodes in the second mobile communication network, so that the mobile communication timing nodes in the second mobile communication network use the timing time optimization parameters to correct the timing time of the mobile communication air interface timing source.

[0096] According to an embodiment of the present disclosure, when the first mobile communication network includes a plurality of multi-source integrated power distribution and utilization terminals, the time synchronization method further includes:

[0097] Sending the multiple timing time optimization parameters respectively determined by the multiple multi-source integrated power distribution and utilization terminals to the mobile communication base station in the first mobile communication network, so that the mobile communication base station in the first mobile communication network determines the final timing time optimization parameters according to the multiple timing time optimization parameters;

[0098] Receive multiple timing optimization parameters corresponding to the multiple multi-source integrated power distribution and utilization terminals sent by the mobile communication base station of the first mobile communication network; use the multiple timing optimization parameters to correct the timing of the mobile communication air interface timing source respectively, and obtain the corresponding multiple corrected timing times of the mobile communication air interface timing sources; calculate the difference between the timing of the multiple corrected mobile communication air interface timing sources and the timing of the preset reference timing source respectively, and obtain multiple errors corresponding to the multiple timing optimization parameters; The corresponding multiple errors are sent to the mobile communication base station of the first mobile communication network, so that after the mobile communication base station of the first mobile communication network receives the multiple errors corresponding to the multiple timing time optimization parameters sent by each multi-source fusion distribution and utilization terminal, the errors calculated by the multiple multi-source fusion distribution and utilization terminals using the same timing time optimization parameters are weighted averaged to obtain multiple weighted average results, and the timing time optimization parameters of the multi-source fusion distribution and utilization terminal corresponding to the smallest of the multiple weighted average results are sent as the final timing time optimization parameters to the multiple multi-source fusion distribution and utilization terminals;

[0099] Receive the final timing optimization parameter sent by the mobile communication base station of the first mobile communication network.

[0100] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes a cellular communication air interface timing and a direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the multi-source integrated power distribution and utilization terminal is connected to the non-cellular timing node via a direct communication link, and the timing method also includes:

[0101] After the multi-source integrated power distribution and utilization terminal performs time calibration, the delay measurement information is interacted with the non-cellular timing node through the precise time protocol PTP, so that the non-cellular timing node performs time synchronization based on the multi-source integrated power distribution and utilization terminal.

[0102] In a second aspect, a multi-source wide-area power distribution terminal time synchronization method is provided in an embodiment of the present disclosure, which is applied to a power distribution terminal, wherein the power distribution terminal supports a timing source to be calibrated, and the time synchronization method includes:

[0103] Get timing optimization parameters;

[0104] Obtaining the timing time of the timing source to be corrected;

[0105] Correcting the timing time of the timing source to be corrected using the timing time optimization parameter;

[0106] Wherein, the timing optimization parameter is determined in the following manner:

[0107] Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time;

[0108] Obtaining the timing time of the timing source to be corrected corresponding to the specified time;

[0109] Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time;

[0110] The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0111] According to an embodiment of the present disclosure, the timing optimization parameter is determined by a multi-source fusion power distribution terminal, and the multi-source fusion power distribution terminal supports fusion timing of multiple different timing sources. The acquisition of the timing optimization parameter includes:

[0112] Receive the timing optimization parameters sent by the multi-source integrated power distribution terminal.

[0113] According to an embodiment of the present disclosure, the power distribution and utilization terminal and the multi-source integrated power distribution and utilization terminal are both in the first mobile communication network, and the receiving the timing time optimization parameter sent by the multi-source integrated power distribution and utilization terminal includes:

[0114] The timing time optimization parameters sent by the multi-source integrated power distribution and utilization terminal are received through the mobile communication base station of the first mobile communication network, and the timing time optimization parameters are sent by the multi-source integrated power distribution and utilization terminal to the mobile communication base station of the first mobile communication network.

[0115] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, and the power distribution and utilization terminal is in a second mobile communication network, and the receiving the timing time optimization parameter sent by the multi-source integrated power distribution and utilization terminal includes:

[0116] The timing optimization parameters sent by the multi-source integrated power distribution and utilization terminal are received by the mobile communication base station of the second mobile communication network. The timing optimization parameters are first sent by the multi-source integrated power distribution and utilization terminal to the mobile communication base station of the first mobile communication network, and then transmitted back by the mobile communication base station of the first mobile communication network to the mobile communication access layer network, and then sent down by the mobile communication access layer network to the mobile communication base station of the second mobile communication network.

[0117] According to an embodiment of the present disclosure, the timing source to be corrected includes: a mobile communication air interface timing source; the step of obtaining the timing time of the timing source to be corrected includes:

[0118] Obtain the reference time and the time advance TA sent by the mobile communication air interface timing source;

[0119] Determine the current air interface transmission delay according to the time advance TA;

[0120] The sum of the current air interface transmission delay and the reference time sent by the mobile communication air interface timing source is used as the timing time of the mobile communication air interface timing source;

[0121] The method of correcting the timing time of the timing source to be corrected by using the timing time optimization parameter comprises:

[0122] The timing time of the mobile communication air interface timing source is corrected using the following formula based on the timing time optimization parameter:

[0123] t r =t0+τ×(1+η n ),

[0124] Among them, t r is the timing time of the mobile communication air interface timing source after correction, t0 is the reference time sent by the mobile communication air interface timing source, τ is the current air interface transmission delay, η n Optimize the timing parameters.

[0125] According to an embodiment of the present disclosure, the power distribution terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the power distribution terminal is connected to the non-cellular timing node via a direct communication link, and the timing method also includes:

[0126] After the power distribution terminal performs time calibration, the delay measurement information is interacted with the non-cellular timing node through the precise time protocol PTP, so that the non-cellular timing node performs time synchronization based on the power distribution terminal.

[0127] In a third aspect, a multi-source wide-area power distribution terminal timing device is provided in an embodiment of the present disclosure, and is arranged in a multi-source integrated power distribution terminal, wherein the multi-source integrated power distribution terminal supports integrated timing of multiple different timing sources, and the timing device includes:

[0128] A reference timing time acquisition module is configured to acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time;

[0129] A first timing time acquisition module to be corrected is configured to obtain the timing time of the timing source to be corrected corresponding to the specified time;

[0130] A timing deviation value calculation module is configured to calculate a timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time;

[0131] The timing time optimization parameter determination module is configured to determine the timing time optimization parameters according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and the timing time optimization parameters are used to correct the timing time of the timing source to be corrected.

[0132] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the first mobile communication network also includes at least one mobile communication timing node, and the mobile communication timing node supports the mobile communication air interface timing source; the timing device also includes:

[0133] A timing time optimization parameter sending module is configured to send the timing time optimization parameter to a mobile communication base station of the first mobile communication network, so that the mobile communication base station in the first mobile communication network carries the timing time optimization parameter to perform timing on a mobile communication timing node in the first mobile communication network, so that the mobile communication timing node in the first mobile communication network uses the timing time optimization parameter to correct the timing time of the mobile communication air interface timing source;

[0134] And / or, so that the mobile communication base station of the first mobile communication network transmits the timing time optimization parameters back to the mobile communication access layer network, so that the mobile communication access layer network sends the timing time optimization parameters to the mobile communication base station in the second mobile communication network, so that the mobile communication base station in the second mobile communication network carries the timing time optimization parameters to time the mobile communication timing nodes in the second mobile communication network, so that the mobile communication timing nodes in the second mobile communication network use the timing time optimization parameters to correct the timing time of the mobile communication air interface timing source.

[0135] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes a cellular communication air interface timing and a direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the multi-source integrated power distribution and utilization terminal is connected to the non-cellular timing node via a direct communication link, and the timing correction device also includes:

[0136] The first non-cellular timing node timing module is configured to interact with the non-cellular timing node for delay measurement information through the precise time protocol PTP after the multi-source integrated power distribution and utilization terminal performs time calibration, so that the non-cellular timing node performs time synchronization based on the multi-source integrated power distribution and utilization terminal.

[0137] In a fourth aspect, an embodiment of the present disclosure provides a multi-source wide-area power distribution terminal timing device, which is arranged in a power distribution terminal, the power distribution terminal supports a timing source to be calibrated, and the timing device includes:

[0138] A timing time optimization parameter acquisition module is configured to acquire timing time optimization parameters;

[0139] A second timing time acquisition module to be corrected is configured to obtain the timing time of the timing source to be corrected;

[0140] A timing time correction module is configured to correct the timing time of the timing source to be corrected using the timing time optimization parameters;

[0141] Wherein, the timing optimization parameter is determined in the following manner:

[0142] Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time;

[0143] Obtaining the timing time of the timing source to be corrected corresponding to the specified time;

[0144] Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time;

[0145] The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0146] According to an embodiment of the present disclosure, the power distribution terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the power distribution terminal is connected to the non-cellular timing node via a direct communication link, and the timing correction device also includes:

[0147] The second non-cellular timing node timing module is configured to interact with the non-cellular timing node for delay measurement information through the precise time protocol PTP after the power distribution terminal performs time calibration, so that the non-cellular timing node performs time synchronization based on the power distribution terminal.

[0148] In the fifth aspect, a chip is provided in an embodiment of the present disclosure, comprising the time calibration device described in any one of the third aspect and the fourth aspect; or, comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the time calibration method described in any one of the first aspect and the second aspect.

[0149] In a sixth aspect, an electronic device is provided in an embodiment of the present disclosure, comprising a memory and a processor; wherein the memory is used to store computer instructions, wherein the computer instructions are executed by the processor to implement the time calibration method described in any one of the first aspect and the second aspect.

[0150] In a seventh aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, on which computer instructions are stored. When the computer instructions are executed by a processor, the time calibration method described in any one of the first aspect and the second aspect is implemented.

[0151] In an eighth aspect, a computer program product is provided in an embodiment of the present disclosure, comprising computer instructions, which, when executed by a processor, implement the time calibration method described in any one of the first aspect and the second aspect.

[0152] According to the technical solution provided by the embodiments of the present disclosure, for a multi-source integrated power distribution terminal that supports integrated timing of multiple different timing sources, a reference timing time is obtained based on a preset reference timing source or based on multiple different timing sources, and then a timing deviation value between the reference timing time and the timing time of the timing source to be corrected is calculated. Thereafter, a timing time optimization parameter is determined based on the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and the timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0153] The present disclosure improves the accuracy of time calibration through the timing source to be corrected by using the timing time optimization parameters to correct the timing time of the timing source to be corrected. In addition, by determining the reference timing time based on a preset reference timing source or a combination of multiple timing sources, the accuracy and reliability of the reference timing time can be ensured, thereby ensuring the accuracy and reliability of the timing deviation value between the reference timing time and the timing time of the timing source to be corrected. At the same time, when determining the timing time optimization parameters according to the timing deviation value, the moving average filtering algorithm improved based on the Pearson correlation is combined. In this way, not only the historical data of the time deviation is considered, but also the correlation between the data is considered, making the calculation process more intelligent and precise, and being able to more effectively filter noise and smooth time deviations, further improving the accuracy and stability of timing correction, and fully meeting the high-precision timing synchronization requirements of the power distribution and utilization terminals in the power system, thereby effectively promoting the high-quality development of smart grids.

[0154] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0155] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0156] Figure 1 A flow chart of a method for synchronizing time of multi-source wide-area power distribution terminals according to an embodiment of the present disclosure is shown.

[0157] Figure 2 A schematic structural diagram of a multi-source integrated power distribution terminal according to an embodiment of the present disclosure is shown.

[0158] Figure 3 A schematic structural diagram of another multi-source integrated power distribution terminal according to an embodiment of the present disclosure is shown.

[0159] Figure 4 A flow chart of a method for acquiring reference timing time based on multiple different timing sources according to an embodiment of the present disclosure is shown.

[0160] Figure 5 A flow chart of a method for determining the preferred timing source set according to an embodiment of the present disclosure is shown.

[0161] Figure 6 A flow chart of a method for determining the reference timing time according to multiple timing times of the multiple different preferred timing sources in specific implementation mode 1 of an embodiment of the present disclosure is shown.

[0162] Figure 7 A flow chart of a method for determining the reference timing time according to multiple timing times of the multiple different preferred timing sources in specific implementation mode 2 of an embodiment of the present disclosure is shown.

[0163] Figure 8 A schematic diagram is shown of determining the reference timing time according to multiple timing times of the multiple different preferred timing sources in a specific scenario according to an embodiment of the present disclosure.

[0164] Fig. 9 A flow chart of a method for determining timing time optimization parameters according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation in an embodiment of the present disclosure is shown.

[0165] Fig.10 A flow chart of a method for determining the timing optimization parameters according to a specific embodiment of the present disclosure is shown.

[0166] Fig.11 A schematic structural diagram of a first mobile communication network and a second mobile communication network according to an embodiment of the present disclosure is shown.

[0167] Fig.12 A flow chart of another multi-source wide-area power distribution terminal time synchronization method according to an embodiment of the present disclosure is shown.

[0168] Fig.13 A structural block diagram of a multi-source wide-area power distribution terminal timing device according to an embodiment of the present disclosure is shown.

[0169] Fig.14 A structural block diagram of another multi-source wide-area power distribution terminal timing device according to an embodiment of the present disclosure is shown.

[0170] Fig.15 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0171] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0172] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0173] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0174] As mentioned above, traditional timing methods often rely on a single timing source. However, on the one hand, a single timing source has reliability risks. On the other hand, some commonly used timing methods in existing power systems (such as 5G communication timing, radio wave timing, etc.) are difficult to meet the urgent needs of power distribution and power terminals for high-precision timing synchronization due to their inherent limitations. Although the satellite timing method has high timing accuracy, the cost of the receiving equipment is relatively high, and under certain specific environmental conditions (such as inside buildings), the timing accuracy will decrease or it will not be possible to provide timing, resulting in it not being widely popularized in the power system.

[0175] In order to meet the demand for high-precision timing synchronization of power distribution terminals, especially for power distribution terminals that use timing sources with low timing accuracy (timing sources to be corrected) in power systems, the inventors of the present invention, after careful research and thinking, innovatively introduced a multi-source fusion power distribution terminal and a timing time optimization parameter generated by the multi-source fusion power distribution terminal to correct the timing time of the timing source to be corrected. Moreover, based on the multi-source fusion timing strategy, the timing time optimization parameter is innovatively determined by combining the timing deviation between the reference timing time and the timing time of the timing source to be corrected with an improved moving average filtering algorithm based on Pearson correlation. Since Pearson correlation analysis can evaluate The moving average filtering algorithm can estimate the strength and direction of the linear relationship between the two variables, while the moving average filtering algorithm can effectively smooth the random fluctuations in the time series data. The combination of the two can not only more accurately identify and eliminate the noise and outliers in the timing deviation data, but also dynamically adjust the filtering parameters according to the historical data to achieve more accurate time correction, thereby improving the accuracy of the timing correction. In addition, when obtaining the reference timing time, it can be obtained based on a preset reference timing source or based on multiple different timing sources. This flexibility enables the system to select the most suitable timing source as the benchmark according to different application scenarios, timing conditions and requirements, thereby further improving the accuracy and adaptability of the timing.

[0176] Figure 1A flow chart of a time synchronization method for a multi-source wide-area power distribution terminal according to an embodiment of the present disclosure is shown, which is applied to a multi-source integrated power distribution terminal, and the multi-source integrated power distribution terminal supports integrated timing of multiple different timing sources.

[0177] The "multi-source integrated power distribution terminal" in the present disclosure refers to a power distribution terminal in the power distribution network that can receive and process time signals from multiple different timing sources. Generally, this can be achieved by integrating multiple different timing modules that receive and process multiple different timing source time signals in the power distribution terminal. After receiving the corresponding timing source time signal, the timing module will perform a series of signal processing and decoding operations to extract accurate timing time information (such as UTC time).

[0178] The "multi-source integrated power distribution terminal" in the present disclosure can only support two different timing sources, namely: a timing source to be corrected, such as a 5G communication timing source, and a reference timing source, such as a satellite timing source; it can also support more than two timing sources covering the air, space and land, such as satellite timing sources (such as Beidou, GPS, low-orbit satellite timing), ground network timing sources (such as network time protocol NTP, precision time protocol PTP), radio wave timing sources (such as long wave timing, short wave timing), 5G communication timing sources and new timing sources that emerge with the development of technology.

[0179] Figure 2 A schematic structural diagram of a multi-source integrated power distribution terminal according to an embodiment of the present disclosure is shown. Figure 2 The multi-source integrated power distribution terminal shown supports two different timing sources, namely: 5G communication timing source and satellite timing source. Among them, the satellite timing module in the multi-source integrated power distribution terminal corresponds to receiving and processing the satellite timing source time signal, and the 5G communication timing module corresponds to receiving and processing the 5G communication timing source time signal.

[0180] Figure 3 A schematic structural diagram of another multi-source integrated power distribution terminal according to an embodiment of the present disclosure is shown. Figure 3 The multi-source integrated power distribution terminal shown supports four different timing sources, namely: satellite timing source (including: Beidou, GPS, low-orbit satellite), ground network timing source, long and short wave timing source and 5G communication timing source.

[0181] like Figure 1 As shown, the time calibration method includes the following steps S110 to S140:

[0182] In step S110, a reference timing time is acquired based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a designated time.

[0183] In step S120, the timing time of the timing source to be corrected corresponding to the designated time is obtained.

[0184] In step S130, a timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the designated time is calculated.

[0185] In step S140, a timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and the timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0186] Based on the technical solution provided by the embodiment of the present disclosure, in order to realize the correction of the timing time of the timing source to be corrected, it is necessary to first obtain the timing time optimization parameters. The timing time optimization parameters can be determined and stored locally, and according to actual needs, a reasonable period (such as every day, every week) can be set to recalculate and update the timing time optimization parameters to ensure its accuracy and timeliness.

[0187] Among them, the reference timing time refers to a high-precision time point accepted by the terminal and used as a time standard.

[0188] This disclosure provides two ways to obtain the reference time:

[0189] Method 1: Acquire based on a preset reference timing source.

[0190] When determining the reference timing source, it is necessary to comprehensively consider factors such as the stability, reliability, precision, accuracy, coverage, etc. of the timing source, and give priority to timing sources with high stability and reliability, high timing precision, high accuracy, and wide coverage as the reference timing source. Satellite timing sources are usually selected as reference timing sources because of their high timing accuracy and wide global coverage. Among them, the high-precision atomic clocks carried by Beidou satellites can provide time synchronization with nanosecond or even higher precision, which provides a guarantee for the accuracy and high precision of the reference timing time.

[0191] At the same time, the preset reference timing source can also be updated regularly. By evaluating the supported timing sources, the timing source with the highest timing accuracy can be selected to replace the preset reference timing source. In this way, if the current reference timing source fails or the accuracy decreases, it can be quickly switched to other high-precision timing sources, ensuring the high-precision timing synchronization needs of power distribution and power consumption terminals at all times.

[0192] In addition, while mainly relying on a preset reference timing source, other timing sources can also be introduced as alternative reference timing sources. When the preset reference timing source fails or is interfered with and the timing conditions are not met, it is possible to switch to the alternative reference timing source and obtain the reference timing time based on the alternative reference timing source to improve the overall reliability and stability of the system.

[0193] Method 2: Acquire based on multiple different timing sources.

[0194] Different from the method 1 which relies on only a single timing source to obtain the reference timing time, the reference timing time in the method 2 is determined by using multiple different timing sources.

[0195] In specific implementation, you can choose to use method 1 or method 2 according to different application scenarios and requirements. For example: Figure 2 For the multi-source fusion power distribution terminal that only supports two different timing sources, method 1 can be selected to use the satellite timing source as the reference timing source to correct the timing time of the 5G communication timing source as the timing source to be corrected; Figure 3 For the multi-source integrated power distribution terminal that supports more than two different timing sources shown in the figure, if the supported timing sources include a preset reference timing source and the preset reference timing source meets the preset timing conditions (such as: the timing signal quality is good), method 1 can be selected preferentially. When the supported timing source does not include the preset reference timing source or the preset reference timing source fails or is interfered with and does not meet the timing conditions, method 2 can be selected.

[0196] By providing two different methods for obtaining the reference time, the following beneficial technical effects are achieved:

[0197] 1. Higher flexibility and adaptability. The system can flexibly choose to use method 1 or method 2 according to actual conditions. For example: when the preset reference timing source is available and has good performance, method 1 is preferred to ensure high accuracy and high reliability; when the preset reference timing source is unavailable or the performance is degraded, it automatically switches to method 2, using multiple timing sources for time synchronization to maintain the continuity and stability of the system. In addition, different application scenarios and needs may have different requirements for the accuracy, reliability, and real-time performance of time synchronization. By supporting both methods at the same time, the system can better adapt to these different needs and provide customized time synchronization solutions.

[0198] 2. Enhanced reliability and stability. In mode 1, even if the preset reference timing source (such as a satellite timing source) fails or is interfered with, the system can use the multi-source fusion technology in mode 2 to obtain the reference timing time using multiple other timing sources, thereby avoiding the interruption of system time synchronization caused by the failure of a single timing source. This dual protection mechanism significantly improves the overall reliability and stability of the system. In addition, in mode 2, by integrating the information of multiple timing sources to determine the reference timing time, the impact of a single timing source error on system time synchronization can be reduced, ensuring the accuracy and stability of time synchronization.

[0199] 3. Improved the precision and accuracy of time synchronization. In method 1, by selecting a timing source with high stability and reliability, high timing precision, high accuracy and wide coverage as the reference timing source, it can ensure that the system obtains high-precision and high-accuracy time information. This is especially important for application scenarios that require high-precision time synchronization. In method 2, the advantages of multiple timing sources can be comprehensively utilized through multi-source fusion technology to further optimize the precision and accuracy of time synchronization. The possible complementarity between different timing sources can help the system reduce errors and improve accuracy.

[0200] 4. Better system scalability and upgradeability. With the development of technology and the emergence of new timing sources, the system can be easily expanded to support more types of timing sources. By supporting both mode 1 and mode 2, the system can more flexibly respond to possible changes and challenges in the future.

[0201] Figure 4 A flow chart of a method for obtaining a reference timing time based on multiple different timing sources according to an embodiment of the present disclosure is shown. Figure 4 As shown, when the reference timing time is obtained based on multiple different timing sources, the following steps S410-430 are performed:

[0202] In step S410, a preferred timing source set is obtained, wherein the preferred timing source set includes a plurality of different preferred timing sources, and the preferred timing source is a timing source that satisfies an evaluation condition and is screened out from the plurality of different timing sources by evaluating them.

[0203] Figure 5 A flow chart of a method for determining the preferred timing source set according to an embodiment of the present disclosure is shown. Figure 5 As shown, when determining the preferred timing source set, the following steps S411 to S413 are included:

[0204] In step S411, the timing source evaluation indicators of the multiple different timing sources are obtained, wherein the timing source evaluation indicators are used to evaluate the availability of the timing sources.

[0205] Specifically, the timing source evaluation indicators include but are not limited to: timing signal quality, timing accuracy, timing credibility and long-term availability.

[0206] Among them, the timing signal quality refers to the ability of the time signal emitted by the timing source to maintain its integrity and accuracy during the transmission process. A high-quality timing signal can ensure that the time information obtained by the receiving end is accurate. Parameters related to the timing signal quality include signal strength, signal-to-noise ratio (SNR) and jitter rate.

[0207] Timing accuracy refers to the deviation between the time information provided by the timing source and the standard time (such as UTC). A high-precision timing source can provide time information that is closer to the standard time. When obtaining it, you can do so by direct comparison, that is, compare the time information provided by the timing source with a known high-precision time standard (such as GPS time, atomic clock time), and calculate the deviation between the two; you can also do so by statistical analysis, that is, obtain the time information of the timing source multiple times over a period of time, and calculate the statistical value of the deviation between this time information and the standard time (such as mean, standard deviation, etc.) to evaluate the long-term accuracy stability of the timing source; in addition, you can also consult the user manual and documentation of the timing source to check the detailed information on timing accuracy.

[0208] Timing credibility refers to the credibility of the time information provided by the timing source. A highly credible timing source can stably and reliably provide accurate time information. When acquiring, it can be judged by synchronization detection, that is, by comparing the synchronization of the time information provided by the timing source with the time pulse signal, including monitoring the frequency, phase and pulse width of the time pulse signal of the timing source, and calculating its deviation from the standard time pulse signal; it can also be evaluated by failure rate statistics, that is, by counting the number of failures and the duration of failures of the timing source within a period of time, to evaluate its stability and reliability.

[0209] Long-term availability refers to the ability of a timing source to remain available and provide time information stably over a long period of time. A timing source with high long-term availability can ensure the continuity and stability of system time. When acquiring, the available time can be counted, that is, within a preset time period (such as one year, one month, etc.), the actual available time of the timing source (that is, the time that can provide valid time information) can be counted; or the fault recovery capability can be evaluated, that is, the ability of the timing source to restore and provide valid time information after a fault occurs, including the fault recovery speed and stability after recovery.

[0210] According to an embodiment of the present disclosure, the step of obtaining timing source evaluation indicators of the plurality of different timing sources includes:

[0211] Obtain a current timing mode, wherein the current timing mode includes: a conventional timing mode, an emergency timing mode, a high-precision timing mode, a regional timing mode, and a backup timing mode; and obtain timing source evaluation indicators of the multiple different timing sources under the current timing mode.

[0212] Among them, the conventional timing mode is the basic mode used when the timing system operates normally. In this mode, the system selects multiple stable and reliable clock sources for integrated timing to ensure high accuracy and stability of time. These clock sources may include satellite navigation systems (such as GPS, Beidou, etc.), ground atomic clocks, radio timing stations, etc. The conventional timing mode is suitable for most application scenarios and can provide time synchronization services that meet daily needs.

[0213] The high-precision timing mode is designed for application scenarios that require extremely high time accuracy. This mode gives priority to the most accurate signal source in the satellite navigation system, and combines it with the high-precision atomic clock on the ground for time calibration to achieve nanosecond or even picosecond time synchronization accuracy. The high-precision timing mode is suitable for scientific research, financial transactions, satellite navigation and other fields that require extremely high time accuracy.

[0214] The regional timing mode is used when an independent timing network needs to be built in a certain area due to geographical, political or technical reasons. This mode uses the clock source in the area (such as regional atomic clocks, radio timing stations, etc.) to provide time services to users in the area. The regional timing mode can ensure the accuracy and stability of time synchronization in a specific area, and is suitable for application scenarios that require regional time consistency, such as power systems, communication systems, transportation systems, etc.

[0215] The backup timing mode is designed to prevent the interruption of time service caused by the failure of the main timing source. In this mode, the system will configure a backup timing source. When a problem occurs with the main timing source, the system will automatically switch to the backup source to ensure the continuity and reliability of the time service. The backup timing mode is suitable for application scenarios that require high continuity of time services, such as financial transactions, power systems, transportation systems, etc.

[0216] In the present disclosure, in different timing modes, the timing source evaluation indicators will be different to meet the time synchronization requirements under various application scenarios and needs. For example: the timing source evaluation indicators corresponding to the conventional timing mode may include: timing accuracy, timing credibility, long-term availability and stability indicators; the timing source evaluation indicators corresponding to the high-precision timing mode may include: timing signal quality, timing accuracy, timing credibility and long-term availability; the timing source evaluation indicators corresponding to the emergency timing mode may include: timing signal quality, timing accuracy, timing credibility, coverage and response time.

[0217] The timing source evaluation indicators corresponding to each timing mode can be set according to specific application scenarios and project requirements.

[0218] When obtaining the timing source evaluation indicators of multiple different timing sources, the present invention obtains them based on the current timing mode, which can significantly improve the accuracy and stability of time synchronization, and selects and configures the timing sources more specifically to avoid unnecessary waste of resources. At the same time, the selection and configuration of the clock source according to the mode requirements can simplify the system structure, reduce the system complexity, and improve the maintainability and scalability of the system. In addition, the system can flexibly switch the timing strategies in different scenarios to meet different application requirements, which helps the system better adapt to the complex and changeable network environment and the changes in the clock source status, and improves the robustness and reliability of the system.

[0219] In step S412, a utility function is constructed according to the timing source evaluation index, and the utility values ​​of the multiple different timing sources are calculated using the utility function.

[0220] According to an embodiment of the present disclosure, constructing a utility function according to the timing source evaluation index, and using the utility function to calculate the utility values ​​of the multiple different timing sources includes:

[0221] The timing signal strength and / or the timing signal signal-to-noise ratio and / or the timing signal jitter rate of each timing source are obtained, and the timing signal quality score of each timing source is obtained according to the timing signal strength and / or the timing signal signal-to-noise ratio and / or the timing signal jitter rate of each timing source.

[0222] The timing accuracy of each timing source is obtained, and the timing accuracy score of each timing source is obtained according to the timing accuracy of each timing source.

[0223] The timing credibility of each timing source is determined by comparing the synchronization between the timing time and the time pulse signal of each timing source, including: monitoring the frequency of the time pulse signal of each timing source, calculating the pulse deviation of each timing source, and obtaining the timing credibility score of each timing source according to the pulse deviation of each timing source.

[0224] The available time of each timing source within a preset time period is counted, the long-term availability of each timing source is obtained according to the available time of each timing source within the preset time period, and the long-term availability score of each timing source is obtained according to the long-term availability of each timing source.

[0225] The utility value of each timing source is calculated according to the following utility function constructed based on the score of the timing signal quality, the score of the timing accuracy, the score of the timing credibility and the score of the long-term availability:

[0226] U i =αQ i +βP i+γR i +δA i ;

[0227] Among them, U i represents the utility value of the i-th timing source, Q i represents the score of the quality of the timing signal of the i-th timing source, α represents the weight of the quality of the timing signal of the i-th timing source; P i represents the score of the timing accuracy of the i-th timing source, β represents the weight of the timing accuracy of the i-th timing source; R i represents the score of the timing credibility of the i-th timing source; γ represents the weight of the timing credibility of the i-th timing source; A i represents the score of the long-term availability of the i-th timing source, and δ represents the weight of the long-term availability of the i-th timing source. The weight of each timing source evaluation indicator can be determined according to the actual application scenario and requirements.

[0228] When obtaining the score of each timing source evaluation indicator, the data of each timing source evaluation indicator can be standardized, and then the scoring rules can be set according to the standardized data. For example, all timing accuracy values ​​are converted into deviations relative to a certain benchmark (such as seconds or milliseconds), and then the scoring rules are set according to the deviation of the timing accuracy. The smaller the deviation, the higher the score. Specifically, the deviation can be mapped to the scoring range by using piecewise functions or linear functions.

[0229] In step S413, the multiple different timing sources are sorted from high to low according to the utility values, and according to the sorting result, a preset number of timing sources are selected to form the preferred timing source set.

[0230] Among them, the preset number can be determined according to actual needs and application scenarios, and it represents the number of optimal timing sources that the system can support or use.

[0231] In step S420, a plurality of timing times respectively from the plurality of different preferred timing sources are acquired based on the preferred timing source set.

[0232] When obtaining multiple timing times from the multiple different preferred timing sources, in order to reduce timing errors and ensure that the multiple timing times are timing times for the same moment, it is necessary to ensure that the sending of the timing request and the receiving of the timing response are completed in the shortest possible time to minimize the inconsistency of the return time between different timing sources. For example: timing requests can be sent to all preferred timing sources in parallel, which means that timing requests are sent to each timing source at almost the same time point (milliseconds or shorter), which can be achieved through multi-threading, asynchronous programming, etc.; then when sending each timing request, the precise timestamp of the request is recorded, and when a timing response is received from each timing source, the precise timestamp of the reception is also recorded, and then the timestamp of the timing source (the time when the timing source generates the response) is extracted from the timing response. For each timing source, the sending and receiving timestamps are used to calculate the network delay and possible clock deviation, and the calculated time deviation is used to correct the timing time received from the timing source. The estimated values ​​of the network delay and clock offset can be subtracted from the timestamp of the timing source to obtain a value closer to the actual specified historical moment.

[0233] In step S430, the reference timing time is determined according to a plurality of timing times of the plurality of different preferred timing sources.

[0234] The embodiment of the present disclosure provides two specific implementations to implement step S430, wherein: Specific implementation 1:

[0236] Figure 6 FIG. 1 is a flowchart of a method for determining the reference timing time according to multiple timing times of multiple different preferred timing sources in a specific implementation mode 1 of the present disclosure. Figure 6 As shown, when determining the reference timing time according to the multiple timing times of the multiple different preferred timing sources, the following steps S610-650 are performed:

[0237] In step S610, the timing accuracy and comprehensive credibility of each preferred timing source are obtained; wherein the comprehensive credibility is determined based on the stability parameter, accuracy parameter and environmental factor of the corresponding preferred timing source.

[0238] In step S620, the timing accuracy interval of each preferred timing source is determined according to the timing accuracy of each preferred timing source.

[0239] In step S630, the trust density of each preferred timing source is determined according to the timing accuracy interval and the comprehensive credibility of each preferred timing source, and the trust density is the comprehensive credibility divided by the length of the timing accuracy interval.

[0240] In step S640, the trust density of each preferred timing source is normalized.

[0241] In step S650, the reference timing time is calculated according to the timing time of each preferred timing source and the normalized credibility density of each preferred timing source.

[0242] According to an embodiment of the present disclosure, the step of calculating the reference timing time according to the timing time of each preferred timing source and the trust density of each preferred timing source after normalization includes:

[0243] The reference timing time t is calculated using the following formula: d :

[0244]

[0245] Among them, t i is the timing time of the i-th preferred timing source; d i is the normalized credible density of the i-th preferred timing source, n is the total number of preferred timing sources.

[0246] The present disclosure introduces the concept of comprehensive credibility when calculating the trust density of the timing source in the above-mentioned specific implementation mode 1. By comprehensively considering the stability parameters, accuracy parameters and environmental factors of the preferred timing source to determine the comprehensive credibility, the reliability of each timing source can be evaluated more comprehensively, which helps to identify and exclude those timing sources that are accurate in the short term but have poor long-term stability or are greatly affected by the environment, thereby improving the long-term stability and reliability of the entire timing system. Among them, when calculating the comprehensive credibility, the introduction of environmental factors enables the comprehensive credibility to be dynamically adjusted to reflect the real-time performance of the timing source under different conditions. This mechanism enhances the adaptability and flexibility of the timing system to different environmental changes, so that it can maintain a high timing accuracy in different application scenarios.

[0247] In addition, when calculating the benchmark timing time according to the timing time of each preferred timing source, using the credible density as a weight can more accurately allocate the contribution of each timing source when calculating the benchmark timing time. Specifically, a timing source with high precision and high credibility will be given a higher weight, thereby more significantly affecting the determination of the final benchmark timing time and ensuring the accuracy of the result. Specific implementation 2:

[0249] Figure 7 FIG. 2 shows a flow chart of a method for determining the reference timing time according to multiple timing times of multiple different preferred timing sources in a specific implementation mode 2 of the embodiment of the present disclosure. Figure 7As shown, when determining the reference timing time according to the multiple timing times of the multiple different preferred timing sources, the following steps S710-740 are performed:

[0250] In step S710, the timing accuracy of each preferred timing source is obtained.

[0251] In step S720, the timing range interval of each preferred timing source is determined according to the timing accuracy and timing time of each preferred timing source.

[0252] In step S730, the intersection interval formed by the intersection of each timing range interval is determined by comparing the timing range intervals of each preferred timing source.

[0253] In step S740, the average value of the two interval endpoints of the intersection interval is used as the reference timing time.

[0254] When there are multiple intersection intervals, taking the average value of two interval endpoints of the intersection interval as the reference timing time includes:

[0255] First, a plurality of corresponding intermediate values ​​are determined according to the plurality of intersection intervals respectively.

[0256] Specifically, the middle value corresponding to each intersection interval is determined as follows:

[0257] The timing accuracy interval of each preferred timing source corresponding to the intersection interval is determined according to the timing accuracy of each preferred timing source corresponding to the intersection interval; the credible density of each preferred timing source corresponding to the intersection interval is determined according to the credibility of each preferred timing source corresponding to the intersection interval and the timing accuracy interval, and the credible density is the credibility divided by the length of the timing accuracy interval; the intermediate value corresponding to the intersection interval is determined according to the maximum of the credible densities of each preferred timing source corresponding to the intersection interval and the length of the intersection interval, and the intermediate value is the product of the maximum and the length of the intersection interval.

[0258] Then, the largest one among the plurality of intermediate values ​​is selected as the preferred intermediate value.

[0259] Finally, the average value of the two interval endpoints of the intersection interval corresponding to the preferred intermediate value is used as the reference timing time.

[0260] The following is an example to illustrate the above steps S710 to 740:

[0261] If the timing accuracy and corresponding reliability of each preferred timing source in the preferred timing source set Q are θ i and η i (where i=1, 2, 3, ..., n, n is the number of preferred timing sources); the timing time of each preferred timing source corresponds to ti , then the timing range of each preferred timing source is A i =[t i -θ i ,t i +θ i ], the timing accuracy range of each preferred timing source is: [-θ i ,θ i ], the length of the timing accuracy interval is 2θ i , credible density z i Then:

[0262] The timing range interval A of each preferred timing source in the preferred timing source set Q i The intersection interval formed by the intersection is B j (where j = 1, 2, 3, ..., k, k is the number of intersection intervals), then:

[0263] B j =A1∩A2∩....A n ,

[0264] Among them, B j The corresponding time range is [t uj , t vj ], the two interval endpoints of the intersection interval are t uj and t vj , the length of the intersection interval is t vj -t uj .

[0265] Figure 8 FIG. 1 is a schematic diagram showing a method of determining the reference timing time according to multiple timing times of multiple different preferred timing sources in a specific scenario according to an embodiment of the present disclosure. Figure 8 As shown, taking the preferred timing source set Q containing two preferred timing sources Q1 and Q2 as an example, where Q1 is Beidou and Q2 is GPS. The timing accuracy and reliability of GPS and Beidou are equivalent, then:

[0266] The timing time of Q1 is t0, the timing accuracy is ±20ns, the timing accuracy interval is [-20, 20], and the reliability is 95%; the timing time of Q2 is t1, the timing accuracy is ±20ns, the timing accuracy interval is [-20, 20], and the reliability is 95%.

[0267] Assuming that the difference between t0 and t1 is 10ns, the intersection interval of GPS and Beidou is: [t1-20, t0+20]. This 30ns interval is the best alternative, and the final reference timing time is

[0268] From this, it can be seen that the advantage of using the above scheme to determine the reference timing time is that the accuracy can be improved to 15ns, and the credibility density is greatly improved; especially when the credibility of the two satellite sources is higher, the advantage of this method is more obvious.

[0269] When the reference timing time is determined in the above-mentioned specific implementation mode 2, the present disclosure takes the average value of the two endpoints of the intersection interval as the reference timing time, which can smooth or offset the error that may be caused by a single timing source to a certain extent. Since the intersection interval is jointly determined by the timing range intervals of multiple preferred timing sources, it represents the commonly recognized range of timing time for multiple timing sources, and therefore the average value of its two endpoints is closer to the real timing time, thereby reducing the error and improving the reliability of timing. In addition, when there are multiple intersection intervals, selecting the optimal intersection interval (based on a comprehensive consideration of the credible density and the length of the intersection interval) as the benchmark can minimize the error and improve the accuracy of timing.

[0270] According to an embodiment of the present disclosure, the time synchronization method further includes:

[0271] The availability of each preferred timing source in the preferred timing source set is monitored.

[0272] When the number of available preferred timing sources in the preferred timing source set does not meet a preset number threshold, the preferred timing source set is re-determined.

[0273] For example: a multi-source integrated power distribution terminal can be set to support an emergency timing mode. When some timing sources are unable to provide timing services due to factors such as natural disasters, the timing source evaluation indicators are re-determined according to the emergency timing mode settings, and the timing sources that can provide timing services are verified in accordance with the above-mentioned method for determining the preferred timing source set (steps S511 to 513), with priority given to autonomous, controllable, and long-term stable timing sources.

[0274] In addition, the multi-source integrated power distribution terminal can be set to support a low-power timing mode. The multi-source integrated power distribution terminal evaluates the power consumption of the timing modules corresponding to each timing source. After determining the preferred timing source, other unnecessary timing modules are controlled to enter low power consumption or standby mode; or, the timing modules corresponding to the timing sources that help improve the timing accuracy are kept working; or, the timing modules corresponding to the alternative timing sources are in hot standby state.

[0275] According to an embodiment of the present disclosure, monitoring the availability of each preferred timing source in the preferred timing source set includes:

[0276] The local clock error of the multi-source integrated power distribution terminal after time calibration is estimated by least squares to generate a first error compensation parameter p1 and a second error compensation parameter p2.

[0277] According to the operation values ​​t corresponding to the i-2, i-1 and i moments of the local clock of the multi-source integrated power distribution and utilization terminal, i-2 ,t i-1 ,t i The first error compensation parameter p1 and the second error compensation parameter p2 are used to obtain the time at the local clock i of the multi-source fusion distribution and utilization terminal for prediction compensation. in,

[0278]

[0279] Obtain the timing time of each preferred timing source in the preferred timing source set at the time i, which are respectively recorded as: t i1 , t i2 ,…t in ; n represents the number of preferred timing sources in the preferred timing source set.

[0280] The error between the timing time of each preferred timing source at time i in the preferred timing source set and the time of the local clock of the multi-source fusion distribution and utilization terminal at time i of the predicted compensation is calculated respectively, wherein the timing time t of the jth preferred timing source at time i is ij The error ε between the time at the local clock i of the multi-source fusion power distribution terminal of the prediction compensation 0j Denoted as:

[0281]

[0282] It is determined whether each error is greater than a set error threshold. If so, it is determined that the corresponding preferred timing source is not available, and the corresponding preferred timing source is deleted from the preferred timing source set.

[0283] The "operating value" mentioned above refers to the time value recorded or measured by the multi-source integrated power distribution terminal at each specific time point (such as time i-2, i-1, i) under its internal clock source. These time values ​​reflect the time maintained by the multi-source integrated power distribution terminal by its internal clock source (such as crystal oscillator) without an external timing source.

[0284] The present disclosure can eliminate those timing sources with poor performance by redetermining the preferred timing source set, and introduce new and more accurate timing sources, which helps to improve the timing accuracy of the entire system and ensure that the time information provided is more accurate and reliable.

[0285] In addition, in mode 2, the timing time of the preferred timing source ranked first in the preferred timing source set can also be used as the reference timing time according to the sorting result.

[0286] After the reference timing time is determined according to the method 1 or the method 2 in the above step S110, steps S120 to S140 may be executed to determine the timing time optimization parameters.

[0287] Fig. 9 A flow chart of a method for determining timing time optimization parameters according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation in an embodiment of the present disclosure is shown.

[0288] When step S140 is specifically performed, according to an embodiment of the present disclosure, the timing deviation value is multiple, and the multiple timing deviation values ​​form an original timing deviation value sequence, such as Fig. 9 As shown, the timing time optimization parameter is determined according to the timing deviation value and in combination with the moving average filtering algorithm improved based on Pearson correlation, which can be performed through the following steps S141-144:

[0289] In step S141, based on each window length value in a plurality of preset window length values, a moving average filtering process is performed on the original timing deviation value sequence to generate a plurality of filtered timing deviation value sequences corresponding to the plurality of window length values ​​respectively.

[0290] In step S142, a plurality of corresponding Pearson coefficients are determined according to the plurality of filtered timing deviation value sequences and the original timing deviation value sequence.

[0291] In step S143, the multiple Pearson coefficients are compared with a preset Pearson coefficient threshold value respectively, and the Pearson coefficient among the multiple Pearson coefficients that is closest to the preset Pearson coefficient threshold value is taken as a preferred intermediate value.

[0292] In step S144, the timing time optimization parameter is determined according to a specified sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value.

[0293] Fig.10A flow chart of a method for determining the timing time optimization parameters according to a specific embodiment of the present disclosure is shown. In this specific embodiment, the multi-source integrated power distribution terminal is in a first mobile communication network, and the mobile communication network can be a 5G communication network, or other communication networks that support time calibration through the air interface, such as: 5G-Advanced (5G-A), the sixth generation mobile communication network (6th Generation Mobile Networks, referred to as 6G) or other evolved wireless communication networks. The timing source to be corrected includes but is not limited to: a mobile communication air interface timing source. The mobile communication air interface timing source mainly refers to a timing source that provides time synchronization information to a mobile terminal through an air interface (ie: air interface) in a mobile communication network. This timing mode usually involves a wireless communication process between a base station (such as an eNodeB or gNodeB) and a mobile terminal (such as a mobile phone, an Internet of Things device, etc.).

[0294] Taking the 5G communication network as an example, the current method based on 5G air interface timing is:

[0295] Each wireless base station completes time synchronization, and the 5G power distribution terminal obtains the system information (including SIB9) and timing advance (TA value) of the base station. The 3GPPTS36.331 and 3GPPTS38.331 standards define that the base station broadcasts the system frame number (SFN) to the terminal device once every 10ms. The SIB9 data block in the SFN data frame contains the information related to the world coordinated universal time (UTC) t0; in order to ensure that the signals in the same subframe but in different frequency domain resources can reach the base station at the same time, it is necessary to estimate the propagation delay from the base station to the 5G terminal, adjust the terminal signal transmission time, and ensure that the uplink transmission of all terminals is synchronized. By detecting the distance of the uplink signal from the base station, the base station side obtains the TA value and feeds back the TA value to the terminal through the downlink message. The terminal adjusts the signal transmission time on its side according to the TA.

[0296] The actual propagation delay τ from the base station to the 5G terminal is derived from the time advance TA. The actual propagation delay τ from the base station to the 5G terminal is derived from the time advance TA. This step includes two cases:

[0297] (a) The terminal DTU first enters the network. The base station determines the TA value by measuring the received PRACH Preamble, and the propagation delay τ1 from the base station to the 5G terminal is obtained as

[0298] τ1=(TA×512×T C ) / 2 μ

[0299] Among them, the index value corresponding to TA is 0-3846, T C The minimum time unit of 5GNR is 0.5086ns, and μ is the subcarrier SCS index, including 0, 1, 2, 3, and 4. A higher subcarrier SCS index is preferred, which has the advantages of lower delay error and lower air interface scheduling delay in communication transmission.

[0300] (b) TA value update. Due to changes in the base station cell accessed by the terminal, base station restart, etc., the TA still needs to be updated. The base station determines the offset of the TA at this moment by measuring the uplink transmission signal. The propagation delay τ2 in this case is:

[0301] τ2=[N TA,old +(TA-31)×512×T C ] / 2 μ

[0302] Among them, N TA,old Save the previous actual TA adjustment value for the terminal;

[0303] According to the reference time signal t0 and the propagation delay τ (the collective name of τ1 and τ2), the 5G terminal side corrects the time t z for:

[0304] t z =t0+τ

[0305] The wireless side determines the TA value by measuring the peak value of signal energy, which is affected by many factors such as signal-to-noise ratio, number of physical resource blocks, wireless bandwidth, base station restart, signal change, etc. In order to further improve the time accuracy between terminals, the present invention proposes a 5G base station air interface timing error compensation method, namely: using the timing time optimization parameters to further compensate the timing time determined according to the reference time signal t0 and the propagation delay τ to improve the timing accuracy.

[0306] like Fig.10 As shown, when determining the timing optimization parameters, the following steps S1010 to S1070 are performed:

[0307] In step S1010, the timing times corresponding to n moments of the preset reference timing source are obtained to form a first timing time sequence; wherein n is a positive integer greater than a preset threshold.

[0308] In step S1020, the timing time of the mobile communication air interface timing source corresponding to the n moments is obtained to form a second timing time sequence.

[0309] In step S1030, the timing deviation value between the first timing time sequence and the second timing time sequence corresponding to each moment is calculated to form the original timing deviation value sequence.

[0310] The original timing deviation value sequence can be obtained by measuring the SFN data frame sent by the 5G base station in a period of 10ms.

[0311] In step S1040, based on each window length value in a plurality of preset window length values, a moving average filtering process is performed on the original timing deviation value sequence to generate a plurality of filtered timing deviation value sequences corresponding to the plurality of window length values ​​respectively.

[0312] Wherein, the filtered timing deviation value sequence corresponding to the window length value is determined in the following manner:

[0313]

[0314] Where, ΔT' i represents the ith sequence value in the filtered timing deviation value sequence, m represents the window length value, ΔT i-j represents the ijth sequence value in the original timing deviation value sequence;

[0315] In step S1050, a plurality of corresponding Pearson coefficients p are determined according to the plurality of filtered timing deviation value sequences and the original timing deviation value sequence.

[0316] Specifically, the steps include:

[0317] The Pearson coefficient p corresponding to each filtered timing deviation value sequence is determined as follows:

[0318] The Pearson coefficient p is calculated according to the original timing deviation value sequence and the filtered timing deviation value sequence. The Pearson coefficient p is expressed by the following formula:

[0319]

[0320] Where, ΔT i It is represented as the i-th sequence value in the original timing deviation value sequence, and are respectively the means of the original timing deviation value sequence and the filtered timing deviation value sequence, is the covariance of the original timing offset value sequence and the filtered timing offset value sequence, and are respectively the standard deviations of the original timing deviation value sequence and the filtered timing deviation value sequence;

[0321] In step S1060, the multiple Pearson coefficients corresponding to the multiple window length values ​​are compared with the preset Pearson coefficient threshold respectively, and the Pearson coefficient among the multiple Pearson coefficients that is closest to the preset Pearson coefficient threshold is taken as the preferred intermediate value.

[0322] In step S1070, the timing time optimization parameter is determined according to the nth sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value and the air interface transmission delay corresponding to the nth moment of the mobile communication air interface timing source.

[0323] Among them, the timing optimization parameter η n Use the following formula to express it:

[0324]

[0325] Where, ΔT n ' is the nth filtered timing deviation value sequence value, τ n is the air interface transmission delay corresponding to the nth moment.

[0326] The technical solution provided by the embodiments of the present disclosure can not only correct the local timing time of the multi-source integrated power distribution terminal that supports the preset reference timing source and the mobile communication air interface timing source in the mobile communication network, but also take into account the time synchronization of other types of node devices in the mobile communication network to achieve time synchronization of node terminals in a wide area.

[0327] Fig.11 FIG. 2 shows a schematic diagram of the structure of a first mobile communication network and a second mobile communication network according to an embodiment of the present disclosure. Fig.11 As shown, in addition to the multi-source fusion power distribution terminal, the first mobile communication network also includes at least one mobile communication timing node, and the mobile communication timing node supports the mobile communication air interface timing source. The second mobile communication network includes a mobile communication timing node but does not include a multi-source fusion power distribution terminal. Fig.11 In the example, the reference timing source is a satellite timing source. In order to reduce the number of satellite antennas deployed and reduce maintenance costs, the multi-source fusion power distribution terminal can choose to receive satellite signals through a power splitter for satellite timing. The power splitter can be selected as active or passive according to the distance between the multi-source fusion power distribution terminal and the power splitter. The remaining node devices can choose to complete timing and synchronization with the multi-source fusion power distribution terminal through direct communication according to the communication conditions.

[0328] The timing source to be corrected includes: a mobile communication air interface timing source, then: the timing method also includes:

[0329] Sending the timing time optimization parameter to the mobile communication base station of the first mobile communication network, so that the mobile communication base station in the first mobile communication network carries the timing time optimization parameter to perform timing on the mobile communication timing node in the first mobile communication network, so that the mobile communication timing node in the first mobile communication network uses the timing time optimization parameter to correct the timing time of the mobile communication air interface timing source;

[0330] And / or, so that the mobile communication base station of the first mobile communication network transmits the timing time optimization parameters back to the mobile communication access layer network, so that the mobile communication access layer network sends the timing time optimization parameters to the mobile communication base station in the second mobile communication network, so that the mobile communication base station in the second mobile communication network carries the timing time optimization parameters to time the mobile communication timing nodes in the second mobile communication network, so that the mobile communication timing nodes in the second mobile communication network use the timing time optimization parameters to correct the timing time of the mobile communication air interface timing source.

[0331] According to an embodiment of the present disclosure, when the first mobile communication network includes a plurality of multi-source integrated power distribution and utilization terminals, the time synchronization method further includes:

[0332] Sending the multiple timing time optimization parameters respectively determined by the multiple multi-source integrated power distribution and utilization terminals to the mobile communication base station in the first mobile communication network, so that the mobile communication base station in the first mobile communication network determines the final timing time optimization parameters according to the multiple timing time optimization parameters;

[0333] Receive multiple timing optimization parameters corresponding to the multiple multi-source integrated power distribution and use terminals sent by the mobile communication base station of the first mobile communication network. For example, the first mobile communication network includes three multi-source integrated power distribution and use terminals: the first multi-source integrated power distribution and use terminal, the second multi-source integrated power distribution and use terminal, and the third multi-source integrated power distribution and use terminal, and the three corresponding timing optimization parameters are η1, η2 and η3 respectively.

[0334] The timing time of the mobile communication air interface timing source is corrected using the multiple timing time optimization parameters respectively to obtain the corresponding multiple corrected timing times of the mobile communication air interface timing source.

[0335] Specifically, the timing time of the mobile communication air interface timing source is corrected by the following formula:

[0336] t r =t0+τ×(1+η n ),

[0337] Among them, t ris the timing time of the mobile communication air interface timing source after correction, t0 is the reference time sent by the mobile communication air interface timing source, τ is the current air interface transmission delay, η n Optimize the timing parameters.

[0338] Assumption: At the same time, for the first multi-source fusion power distribution terminal, the second multi-source fusion power distribution terminal and the third multi-source fusion power distribution terminal, the reference time sent by the mobile communication air interface timing source is t0, and the current air interface transmission delays of the first multi-source fusion power distribution terminal, the second multi-source fusion power distribution terminal and the third multi-source fusion power distribution terminal are τ1, τ2 and τ3 respectively. Then for the first multi-source fusion power distribution terminal: Based on the above formula, t0 is corrected based on τ1 using η1, η2 and η3 respectively, and the corresponding multiple corrected timing times of the mobile communication air interface timing sources are t 11 ,t 21 and t 31 , for the second multi-source fusion power distribution terminal: Based on the above formula, η1, η2 and η3 are used to correct t0 based on τ2, and the corresponding multiple corrected timing sources of the mobile communication air interface timing are obtained as t 12 ,t 22 and t 32 , for the third multi-source fusion power distribution terminal: based on the above formula, η1, η2 and η3 are used to correct t0 based on τ3, and the corresponding multiple corrected timing sources of the mobile communication air interface timing are obtained as t 13 ,t 23 and t 33 .

[0339] The differences between the timing of the multiple corrected mobile communication air interface timing sources and the timing of the preset reference timing source are calculated respectively to obtain multiple errors corresponding to the multiple timing time optimization parameters.

[0340] Assumption: The timing time of the preset reference timing source is t s , then for the first multi-source integrated power distribution terminal: the multiple errors corresponding to the multiple timing optimization parameters are t 11 -t s ,t 21 -t s and t 31 -t s , respectively: Δt 11 , Δt 21 and Δt 31 , for the second multi-source integrated power distribution terminal: the multiple errors corresponding to the multiple timing optimization parameters are t 12 -t s,t 22 -t s and t 32 -t s , respectively: Δt 12 , Δt 22 and Δt 32 , for the third multi-source fusion power distribution terminal: the multiple errors corresponding to the multiple timing optimization parameters are t 13 -t s ,t 23 -t s and t 33 -t s , respectively: Δt 13 , Δt 23 and Δt 33 .

[0341] The multiple errors corresponding to the multiple timing time optimization parameters are sent to the mobile communication base station of the first mobile communication network, so that after the mobile communication base station of the first mobile communication network receives the multiple errors corresponding to the multiple timing time optimization parameters sent by each multi-source fusion distribution and utilization terminal, the errors calculated by the multiple multi-source fusion distribution and utilization terminals using the same timing time optimization parameters are weighted averaged to obtain multiple weighted average results, and the timing time optimization parameters of the multi-source fusion distribution and utilization terminal corresponding to the smallest one of the multiple weighted average results (i.e., the weighted average result with the smallest error) are sent as the final timing time optimization parameters to the multiple multi-source fusion distribution and utilization terminals.

[0342] Assume that the first multi-source fusion power distribution terminal, the second multi-source fusion power distribution terminal and the third multi-source fusion power distribution terminal respectively send the three errors calculated locally to the mobile communication base station of the first mobile communication network. In this way, the mobile communication base station of the first mobile communication network receives all nine errors, which are Δt 11 , Δt 21 , Δt 31 , Δt 12 , Δt 22 , Δt 32 , Δt 13 , Δt 23 and Δt 33 , where Δt 11 , Δt 12 and Δt 13 is the first set of errors calculated by the first multi-source fusion power distribution terminal, the second multi-source fusion power distribution terminal and the third multi-source fusion power distribution terminal using the timing optimization parameter η1 of the first multi-source fusion power distribution terminal, Δt 21 , Δt 22 and Δt 23is the second set of errors calculated by the first multi-source fusion power distribution terminal, the second multi-source fusion power distribution terminal and the third multi-source fusion power distribution terminal using the timing optimization parameter η2 of the second multi-source fusion power distribution terminal, Δt 31 , Δt 32 and Δt 33 It is the third group of errors calculated by the first multi-source fusion distribution and utilization terminal, the second multi-source fusion distribution and utilization terminal and the third multi-source fusion distribution and utilization terminal respectively using the timing time optimization parameter η3 of the third multi-source fusion distribution and utilization terminal. Each group of errors is added together to obtain three weighted average results, recorded as: s1, s2 and s3. By comparing the sizes of s1, s2 and s3, assuming that s2 is the smallest, since s2 corresponds to the timing time optimization parameter η2 of the second multi-source fusion distribution and utilization terminal, the timing time optimization parameter ε2 of the second multi-source fusion distribution and utilization terminal is the final timing time optimization parameter.

[0343] Receive the final timing optimization parameter sent by the mobile communication base station of the first mobile communication network.

[0344] By using multiple timing time optimization parameters determined by multiple multi-source integrated power distribution terminals to determine the final timing time optimization parameters, and using the final timing time optimization parameters to correct the timing time of the timing source to be corrected, the following beneficial effects are achieved:

[0345] 1. Improve timing accuracy:

[0346] By selecting the timing optimization parameters of the multi-source fusion power distribution terminal corresponding to the weighted average result with the smallest error, the timing error can be minimized and the timing accuracy can be improved.

[0347] 2. Enhance system reliability:

[0348] The participation of multiple terminals and the weighted average processing of the base station ensure that the overall timing performance of the system will not be reduced due to the failure or error of a single terminal, thereby enhancing the reliability of the system.

[0349] 3. Strong adaptability:

[0350] This method can adapt to the differences between different network environments and different terminal devices, and find the timing optimization parameters that best suit the current network environment through multi-source fusion and weighted averaging.

[0351] 4. High flexibility:

[0352] The mobile communication base station can dynamically adjust the timing optimization parameters based on the received error data, allowing the system to flexibly respond to network changes and equipment updates.

[0353] Optionally, the node devices connected to the base station can form a 5G LAN group, and the timing optimization parameters can be multicasted within the group. The node devices are constructed into a LAN group, and the node terminals in the group can be transmitted between the node devices through multicast based on MAC minimalist layer 2 routing, which can further reduce the reliability and security of transmission.

[0354] According to an embodiment of the present disclosure, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network and / or the second mobile communication network also includes a non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the multi-source fusion power distribution terminal and / or the mobile communication timing node is connected to the non-cellular timing node through a direct communication link, and the timing method also includes:

[0355] After calibrating the time of the multi-source integrated power distribution terminal or the mobile communication timing node, the delay measurement information is interacted with the non-cellular timing node through the precise time protocol PTP, so that the non-cellular timing node can perform time synchronization based on the multi-source integrated power distribution terminal or the mobile communication timing node.

[0356] In a specific embodiment, the cellular communication air interface timing includes but is not limited to 5G cellular communication air interface timing, and the direct communication timing includes but is not limited to 5G direct communication timing.

[0357] According to an embodiment of the present disclosure, the interaction of delay measurement information with the non-cellular timing node through the precise time protocol PTP so that the non-cellular timing node performs time synchronization based on the multi-source fusion power distribution terminal or the mobile communication timing node includes:

[0358] The multi-source integrated power distribution terminal or the mobile communication timing node sends a time synchronization command message to the non-cellular timing node at a preset period T, and the time synchronization command message includes the time t1 when the time synchronization command message is sent, and the time t1 when the time synchronization command message is sent is calibrated according to the air interface timing time of the mobile communication network, the air interface transmission delay and the air interface transmission delay optimization parameter;

[0359] After receiving the time synchronization command message, the non-cellular timing node records the time t2 of receiving the time synchronization command message, and obtains the time t1 of sending the time synchronization command message, and then sends a delay measurement request message to the multi-source integrated power distribution terminal or the mobile communication timing node, and records the time t3 of sending the delay measurement request message.

[0360] After the multi-source integrated power distribution terminal or the mobile communication timing node receives the delay measurement request message, it records the time t4 when the delay measurement request message is received, and sends a delay measurement response message to the non-cellular timing node, wherein the delay measurement response message includes the time t4 when the delay measurement request is received.

[0361] After receiving the delay measurement response message, the non-cellular timing node obtains the time t4 of receiving the delay measurement request, and calculates the time delay t according to the time t1 of sending the time synchronization instruction message, the time t2 of receiving the time synchronization instruction message, the time t3 of sending the delay measurement request message, and the time t4 of receiving the delay measurement request. delay and time deviation t offset , and according to the time t1 when the time synchronization instruction message is sent, the time delay t delay and the time deviation t offset Perform time synchronization with the multi-source integrated power distribution terminal or the mobile communication timing node.

[0362] The time delay t is calculated by the following formula: delay :

[0363] t delay =[(t2-t1)+(t4-t3)] / 2,

[0364] The time delay t is calculated by the following formula offset :

[0365] t offset =[(t2-t1)-(t4-t3)] / 2;

[0366] The non-cellular timing node is configured to receive the time deviation t within the preset period T. offset Calculate the local clock source frequency difference Δf, where Δf i =t offset(i) / T, i represents the i-th preset period T.

[0367] The non-cellular timing node obtains the clock frequency of the multi-source integrated power distribution terminal or the mobile communication timing node, and uses the clock frequency of the multi-source integrated power distribution terminal or the mobile communication timing node as a reference to correct the frequency difference of the local clock according to the local clock source frequency difference Δf.

[0368] Fig.12 A flowchart of another method for synchronizing time of multi-source wide-area power distribution terminals according to an embodiment of the present disclosure is shown. Fig.12As shown, the time calibration method is applied to a power distribution terminal, and the power distribution terminal supports a timing source to be calibrated, and includes the following steps S1210 to S1230:

[0369] In step S1210, the timing optimization parameters are obtained.

[0370] In step S1220, the timing time of the timing source to be corrected is obtained.

[0371] In step S1230, the timing time of the timing source to be corrected is corrected using the timing time optimization parameters.

[0372] Wherein, the timing optimization parameter is determined in the following manner:

[0373] Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time;

[0374] Obtaining the timing time of the timing source to be corrected corresponding to the specified time;

[0375] Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time;

[0376] The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0377] According to an embodiment of the present disclosure, the timing time optimization parameter is determined by the multi-source fusion power distribution terminal in the above-mentioned embodiment of the present disclosure, and the multi-source fusion power distribution terminal supports fusion timing of multiple different timing sources. The acquisition of the timing time optimization parameter includes:

[0378] Receive the timing optimization parameters sent by the multi-source integrated power distribution terminal.

[0379] According to the embodiments of the present disclosure, the power distribution terminal and the multi-source integrated power distribution terminal are both in the first mobile communication network. In a specific implementation, the timing source to be corrected includes: a mobile communication air interface timing source. The power distribution terminal can be the mobile communication timing node in the above-mentioned embodiments of the present disclosure. The mobile communication timing node supports the mobile communication air interface timing source. Specifically, it can support only one mobile communication air interface timing source, or it can support multiple timing sources including the mobile communication air interface timing source, but excluding the reference timing source, or it can support both the mobile communication air interface timing source and the reference timing source.

[0380] The receiving the timing optimization parameter sent by the multi-source integrated power distribution and utilization terminal includes:

[0381] The timing time optimization parameters sent by the multi-source integrated power distribution and utilization terminal are received through the mobile communication base station of the first mobile communication network, and the timing time optimization parameters are sent by the multi-source integrated power distribution and utilization terminal to the mobile communication base station of the first mobile communication network.

[0382] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, and the power distribution and utilization terminal is in a second mobile communication network, and the receiving the timing time optimization parameter sent by the multi-source integrated power distribution and utilization terminal includes:

[0383] The timing optimization parameters sent by the multi-source integrated power distribution and utilization terminal are received by the mobile communication base station of the second mobile communication network. The timing optimization parameters are first sent by the multi-source integrated power distribution and utilization terminal to the mobile communication base station of the first mobile communication network, and then transmitted back by the mobile communication base station of the first mobile communication network to the mobile communication access layer network, and then sent down by the mobile communication access layer network to the mobile communication base station of the second mobile communication network.

[0384] According to an embodiment of the present disclosure, the timing source to be corrected includes: a mobile communication air interface timing source; the step of obtaining the timing time of the timing source to be corrected includes:

[0385] Acquire the reference time and the time advance TA sent by the mobile communication air interface timing source.

[0386] The current air interface transmission delay is determined according to the timing advance TA.

[0387] The sum of the current air interface transmission delay and the reference time sent by the mobile communication air interface timing source is used as the timing time of the mobile communication air interface timing source.

[0388] The method of correcting the timing time of the timing source to be corrected by using the timing time optimization parameter comprises:

[0389] The timing time of the mobile communication air interface timing source is corrected using the following formula based on the timing time optimization parameter:

[0390] t r =t0+τ×(1+η n ),

[0391] Among them, t r is the timing time of the mobile communication air interface timing source after correction, t0 is the reference time sent by the mobile communication air interface timing source, τ is the current air interface transmission delay, ηn Optimize the timing parameters.

[0392] According to an embodiment of the present disclosure, the power distribution terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the power distribution terminal is connected to the non-cellular timing node via a direct communication link, and the timing method also includes:

[0393] After the power distribution terminal performs time calibration, the delay measurement information is interacted with the non-cellular timing node through the precise time protocol PTP, so that the non-cellular timing node performs time synchronization based on the power distribution terminal.

[0394] Fig.13 The structure block diagram of a multi-source wide area power distribution terminal timing device according to an embodiment of the present disclosure is shown. It is arranged in a multi-source fusion power distribution terminal, and the multi-source fusion power distribution terminal supports fusion timing of multiple different timing sources, such as Fig.13 As shown, the timing device 1300 includes: a reference timing time acquisition module, which is configured to acquire a reference timing time based on a preset reference timing source or multiple different timing sources, wherein the reference timing time corresponds to a specified moment; a first timing time acquisition module to be corrected, which is configured to acquire the timing time of the timing source to be corrected corresponding to the specified moment; a timing deviation value calculation module, which is configured to calculate the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified moment; a timing time optimization parameter determination module, which is configured to determine the timing time optimization parameters according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and the timing time optimization parameters are used to correct the timing time of the timing source to be corrected.

[0395] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the first mobile communication network also includes at least one mobile communication timing node, and the mobile communication timing node supports the mobile communication air interface timing source; the timing device also includes:

[0396] A timing time optimization parameter sending module is configured to send the timing time optimization parameter to a mobile communication base station of the first mobile communication network, so that the mobile communication base station in the first mobile communication network carries the timing time optimization parameter to perform timing on a mobile communication timing node in the first mobile communication network, so that the mobile communication timing node in the first mobile communication network uses the timing time optimization parameter to correct the timing time of the mobile communication air interface timing source;

[0397] And / or, so that the mobile communication base station of the first mobile communication network transmits the timing time optimization parameters back to the mobile communication access layer network, so that the mobile communication access layer network sends the timing time optimization parameters to the mobile communication base station in the second mobile communication network, so that the mobile communication base station in the second mobile communication network carries the timing time optimization parameters to time the mobile communication timing nodes in the second mobile communication network, so that the mobile communication timing nodes in the second mobile communication network use the timing time optimization parameters to correct the timing time of the mobile communication air interface timing source.

[0398] According to an embodiment of the present disclosure, the multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes a cellular communication air interface timing and a direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the multi-source integrated power distribution and utilization terminal is connected to the non-cellular timing node via a direct communication link, and the timing correction device also includes:

[0399] The first non-cellular timing node timing module is configured to interact with the non-cellular timing node for delay measurement information through the precise time protocol PTP after the multi-source integrated power distribution and utilization terminal performs time calibration, so that the non-cellular timing node performs time synchronization based on the multi-source integrated power distribution and utilization terminal.

[0400] Fig.14 FIG. 2 shows a structural block diagram of another multi-source wide area power distribution terminal timing device according to an embodiment of the present disclosure. Fig.14 As shown, the timing device is arranged in the power distribution terminal, and the power distribution terminal supports the timing source to be corrected. The timing device 1400 includes: a timing time optimization parameter acquisition module, which is configured to obtain the timing time optimization parameters; a second timing time acquisition module to be corrected, which is configured to obtain the timing time of the timing source to be corrected; and a timing time correction module, which is configured to use the timing time optimization parameters to correct the timing time of the timing source to be corrected.

[0401] Wherein, the timing optimization parameter is determined in the following manner:

[0402] A reference timing time is obtained based on a preset reference timing source or multiple different timing sources, wherein the reference timing time corresponds to a specified moment; the timing time of the timing source to be corrected corresponding to the specified moment is obtained; a timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified moment is calculated; a timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and the timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

[0403] According to an embodiment of the present disclosure, the power distribution terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the power distribution terminal is connected to the non-cellular timing node via a direct communication link, and the timing calibration device 1400 also includes:

[0404] The second non-cellular timing node timing module is configured to interact with the non-cellular timing node for delay measurement information through the precise time protocol PTP after the power distribution terminal performs time calibration, so that the non-cellular timing node performs time synchronization based on the power distribution terminal.

[0405] According to the technical solution provided by the embodiments of the present disclosure, for a multi-source integrated power distribution terminal that supports integrated timing of multiple different timing sources, when calibrating the timing time of the timing source to be corrected, the reference timing time is obtained based on a preset reference timing source or based on multiple different timing sources, and then the timing deviation value between the reference timing time and the timing time of the timing source to be corrected is calculated, and then the timing time optimization parameters are determined based on the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and finally the timing time optimization parameters are used to correct the timing time of the timing source to be corrected, so that the timing time of the corrected timing source to be corrected can be used for calibration.

[0406] The present disclosure improves the accuracy of time calibration through the timing source to be corrected by using the timing time optimization parameters to correct the timing time of the timing source to be corrected. In addition, by determining the reference timing time based on a preset reference timing source or a combination of multiple timing sources, the accuracy and reliability of the reference timing time can be ensured, thereby ensuring the accuracy and reliability of the timing deviation value between the reference timing time and the timing time of the timing source to be corrected. At the same time, when determining the timing time optimization parameters according to the timing deviation value, the moving average filtering algorithm improved based on the Pearson correlation is combined. In this way, not only the historical data of the time deviation is considered, but also the correlation between the data is considered, making the calculation process more intelligent and precise, and being able to more effectively filter noise and smooth time deviations, further improving the accuracy and stability of timing correction, and fully meeting the high-precision timing synchronization requirements of the power distribution and utilization terminals in the power system, thereby effectively promoting the high-quality development of smart grids.

[0407] The present disclosure also provides a chip, comprising the time calibration device described in any one of the present disclosure, or comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the time calibration method described in any one of the present disclosure.

[0408] Fig.15 1 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig.15 As shown, the electronic device includes a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement a time synchronization method as described in any of the above method embodiments applied to a slave node in a low-voltage distribution station area network.

[0409] The present disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the time calibration method described in the present disclosure.

[0410] The present disclosure also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the time calibration method described in any one of the present disclosure is implemented.

[0411] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A multi-source wide-area power distribution terminal time synchronization method, characterized in that: Applied to a multi-source integrated power distribution terminal, the multi-source integrated power distribution terminal supports integrated timing of multiple different timing sources, and the timing method includes: Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time; Obtaining the timing time of the timing source to be corrected corresponding to the specified time; Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time; The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

2. The time calibration method according to claim 1, characterized in that: The obtaining of the reference timing time based on a preset reference timing source or a plurality of different timing sources includes: The benchmark timing time is obtained according to the preset timing rules, including: when the multi-source integrated power distribution terminal supports the preset benchmark timing source and the preset benchmark timing source meets the preset timing conditions, the benchmark timing time is obtained based on the preset benchmark timing source; otherwise, the benchmark timing time is obtained based on multiple different timing sources.

3. The time calibration method according to claim 1, characterized in that: The reference timing time is obtained based on multiple different timing sources in the following manner: Acquire a preferred timing source set, wherein the preferred timing source set includes a plurality of different preferred timing sources, and the preferred timing source is a timing source that satisfies an evaluation condition and is screened out from the plurality of different timing sources by evaluating them; Acquire multiple timing times respectively from the multiple different preferred timing sources based on the preferred timing source set; The reference timing time is determined according to multiple timing times of the multiple different preferred timing sources.

4. The time calibration method according to claim 3, characterized in that: The preferred timing source set is determined in the following manner: Acquire timing source evaluation indicators of the multiple different timing sources, wherein the timing source evaluation indicators are used to evaluate the availability of the timing sources; Constructing a utility function according to the timing source evaluation index, and using the utility function to calculate the utility values ​​of the multiple different timing sources; The multiple different timing sources are sorted from high to low according to the utility values, and according to the sorting result, a preset number of timing sources are selected to form the preferred timing source set.

5. The time calibration method according to claim 4, characterized in that: The timing source evaluation index includes: timing signal quality, timing accuracy, timing credibility and long-term availability; constructing a utility function according to the timing source evaluation index, and using the utility function to calculate the utility values ​​of the multiple different timing sources, including: Obtain the timing signal strength and / or the timing signal signal-to-noise ratio and / or the timing signal jitter rate of each timing source, and obtain the timing signal quality score of each timing source according to the timing signal strength and / or the timing signal signal-to-noise ratio and / or the timing signal jitter rate of each timing source; Obtain the timing accuracy of each timing source, and obtain the timing accuracy score of each timing source according to the timing accuracy of each timing source; By comparing the synchronization of the timing time of each timing source with the time pulse signal, the timing credibility of each timing source is judged, including: monitoring the frequency of the time pulse signal of each timing source, calculating the pulse deviation of each timing source, and obtaining the timing credibility score of each timing source according to the pulse deviation of each timing source; Counting the available time of each timing source within a preset time period, obtaining the long-term availability of each timing source according to the available time of each timing source within the preset time period, and obtaining the score of the long-term availability of each timing source according to the long-term availability of each timing source; The utility value of each timing source is calculated according to the following utility function constructed based on the score of the timing signal quality, the score of the timing accuracy, the score of the timing credibility and the score of the long-term availability: U i =αQ i +βP i +γR i +δA i ; Among them, U i represents the utility value of the i-th timing source, Q i represents the score of the quality of the timing signal of the i-th timing source, α represents the weight of the quality of the timing signal of the i-th timing source; P i represents the score of the timing accuracy of the i-th timing source, β represents the weight of the timing accuracy of the i-th timing source; R i represents the score of the timing credibility of the i-th timing source; γ represents the weight of the timing credibility of the i-th timing source; A i represents the score of the long-term availability of the i-th timing source, and δ represents the weight of the long-term availability of the i-th timing source.

6. The time calibration method according to claim 4, characterized in that: The obtaining of timing source evaluation indicators of the plurality of different timing sources comprises: Obtain the current timing mode, where the current timing mode includes: a conventional timing mode, an emergency timing mode, a high-precision timing mode, a regional timing mode, and a backup timing mode; Obtain timing source evaluation indicators of the multiple different timing sources in the current timing mode.

7. The time calibration method according to claim 3, characterized in that: The determining the reference timing time according to the multiple timing times of the multiple different preferred timing sources comprises: Obtaining the timing accuracy and comprehensive credibility of each preferred timing source; wherein the comprehensive credibility is determined based on the stability parameter, accuracy parameter and environmental factor of the corresponding preferred timing source; Determine the timing accuracy range of each preferred timing source according to the timing accuracy of each preferred timing source; Determine the trust density of each preferred timing source according to the timing accuracy interval and the comprehensive trustworthiness of each preferred timing source, wherein the trust density is the comprehensive trustworthiness divided by the length of the timing accuracy interval; Normalize the trust density of each preferred timing source; The reference timing time is calculated according to the timing time of each preferred timing source and the credibility density of each preferred timing source after normalization.

8. The time calibration method according to claim 7, characterized in that: The step of calculating the reference timing time according to the timing time of each preferred timing source and the normalized credibility density of each preferred timing source includes: The reference timing time t is calculated using the following formula: d : Among them, t i is the timing time of the i-th preferred timing source; d i is the normalized credible density of the i-th preferred timing source, n is the total number of preferred timing sources.

9. The time calibration method according to claim 3, characterized in that: The determining the reference timing time according to the multiple timing times of the multiple different preferred timing sources comprises: Obtain the timing accuracy of each preferred timing source; Determine the timing range of each preferred timing source according to the timing accuracy and timing time of each preferred timing source; By comparing the timing range intervals of each preferred timing source, an intersection interval formed by the intersection of each timing range interval is determined; The average value of the two interval endpoints of the intersection interval is used as the reference timing time.

10. The time calibration method according to claim 9, characterized in that: When there are multiple intersection intervals, the time synchronization method further includes: Determining corresponding multiple intermediate values ​​according to the multiple intersection intervals respectively includes: Determine the middle value corresponding to each intersection interval as follows: Determine the timing accuracy interval of each preferred timing source corresponding to the intersection interval according to the timing accuracy of each preferred timing source corresponding to the intersection interval; Determine the credibility density of each preferred timing source corresponding to the intersection interval according to the credibility and timing precision interval of each preferred timing source corresponding to the intersection interval, wherein the credibility density is the credibility divided by the length of the timing precision interval; Determine the intermediate value corresponding to the intersection interval according to the maximum of the credible densities of the preferred timing sources corresponding to the intersection interval and the length of the intersection interval, wherein the intermediate value is the product of the maximum and the length of the intersection interval; Selecting the largest of the plurality of intermediate values ​​as the preferred intermediate value; The step of taking the average value of the two interval endpoints of the intersection interval as the reference timing time comprises: The average value of the two interval endpoints of the intersection interval corresponding to the preferred intermediate value is used as the reference timing time.

11. The time calibration method according to claim 3, characterized in that: The time calibration method also includes: Monitoring the availability of each preferred timing source in the preferred timing source set; When the number of available preferred timing sources in the preferred timing source set does not meet a preset number threshold, the preferred timing source set is re-determined.

12. The time calibration method according to claim 11, characterized in that: The monitoring the availability of each preferred timing source in the preferred timing source set includes: Performing least square estimation on the local clock error of the multi-source integrated power distribution and utilization terminal after time calibration to generate a first error compensation parameter p1 and a second error compensation parameter p2; According to the operation values ​​t corresponding to the i-2, i-1 and i moments of the local clock of the multi-source integrated power distribution and utilization terminal, i-2 ,t i-1 ,t i The first error compensation parameter p1 and the second error compensation parameter p2 are used to obtain the time at the local clock i of the multi-source fusion distribution and utilization terminal for prediction compensation. in, Obtain the timing time of each preferred timing source in the preferred timing source set at the time i, which are respectively recorded as: t i1 ,t i2 ,…t in ; n represents the number of preferred timing sources in the preferred timing source set; The error between the timing time of each preferred timing source at time i in the preferred timing source set and the time of the local clock of the multi-source fusion power distribution terminal at time i of the predicted compensation is calculated respectively, wherein the timing time t of the jth preferred timing source at time i is ij The error ε between the time at the local clock i of the multi-source fusion power distribution terminal of the prediction compensation 0j Denoted as: It is determined whether each error is greater than a set error threshold. If so, it is determined that the corresponding preferred timing source is not available, and the corresponding preferred timing source is deleted from the preferred timing source set.

13. The time calibration method according to claim 1, characterized in that: There are multiple timing deviation values, and the multiple timing deviation values ​​form an original timing deviation value sequence. The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, including: Based on each of the preset multiple window length values, the original timing deviation value sequence is subjected to moving average filtering to generate multiple filtered timing deviation value sequences corresponding to the multiple window length values ​​respectively; Determine a plurality of corresponding Pearson coefficients according to the plurality of filtered timing deviation value sequences and the original timing deviation value sequence respectively; Comparing the multiple Pearson coefficients with a preset Pearson coefficient threshold value respectively, and taking the Pearson coefficient closest to the preset Pearson coefficient threshold value among the multiple Pearson coefficients as a preferred intermediate value; The timing time optimization parameter is determined according to a specified sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value.

14. The time calibration method according to claim 13, characterized in that: The timing source to be corrected includes: a mobile communication air interface timing source, and the obtaining of the reference timing time includes: Obtaining the timing time corresponding to n moments of the preset reference timing source to form a first timing time sequence; wherein n is a positive integer greater than a preset threshold; The step of obtaining the timing time of the timing source to be corrected corresponding to the designated time comprises: Obtaining the timing time of the mobile communication air interface timing source corresponding to the n moments to form a second timing time sequence; The step of calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the designated time comprises: Calculating the timing deviation value between the first timing time sequence and the second timing time sequence corresponding to each moment to form the original timing deviation value sequence; Wherein, the filtered timing deviation value sequence corresponding to the window length value is determined in the following manner: Where, ΔT i ′ represents the i-th sequence value in the filtered timing deviation value sequence, m represents the window length value, ΔT i-j represents the ijth sequence value in the original timing deviation value sequence; The determining of the corresponding multiple Pearson coefficients according to the multiple filtered timing deviation value sequences and the original timing deviation value sequences respectively includes: The Pearson coefficient p corresponding to each filtered timing deviation value sequence is determined as follows: The Pearson coefficient p is calculated according to the original timing deviation value sequence and the filtered timing deviation value sequence. The Pearson coefficient p is expressed by the following formula: Where, ΔT i It is represented as the i-th sequence value in the original timing deviation value sequence, and are respectively the means of the original timing deviation value sequence and the filtered timing deviation value sequence, is the covariance of the original timing offset value sequence and the filtered timing offset value sequence, and are respectively the standard deviations of the original timing deviation value sequence and the filtered timing deviation value sequence; The determining the timing time optimization parameter according to the specified sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value includes: The timing time optimization parameter is determined according to the nth sequence value in the filtered timing deviation value sequence corresponding to the preferred intermediate value and the air interface transmission delay corresponding to the nth moment of the mobile communication air interface timing source, wherein the timing time optimization parameter η n Use the following formula to express it: Where, ΔT n ' is the nth filtered timing deviation sequence value, τ n is the air interface transmission delay corresponding to the nth moment.

15. The time calibration method according to claim 1, characterized in that: The multi-source integrated power distribution and utilization terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the first mobile communication network also includes at least one mobile communication timing node, and the mobile communication timing node supports the mobile communication air interface timing source; the timing method also includes: Sending the timing time optimization parameter to the mobile communication base station of the first mobile communication network, so that the mobile communication base station in the first mobile communication network carries the timing time optimization parameter to perform timing on the mobile communication timing node in the first mobile communication network, so that the mobile communication timing node in the first mobile communication network uses the timing time optimization parameter to correct the timing time of the mobile communication air interface timing source; And / or, so that the mobile communication base station of the first mobile communication network transmits the timing time optimization parameters back to the mobile communication access layer network, so that the mobile communication access layer network sends the timing time optimization parameters to the mobile communication base station in the second mobile communication network, so that the mobile communication base station in the second mobile communication network carries the timing time optimization parameters to time the mobile communication timing nodes in the second mobile communication network, so that the mobile communication timing nodes in the second mobile communication network use the timing time optimization parameters to correct the timing time of the mobile communication air interface timing source.

16. The time calibration method according to claim 15, characterized in that: When the first mobile communication network includes a plurality of multi-source integrated power distribution and utilization terminals, the time synchronization method further includes: Sending the multiple timing time optimization parameters respectively determined by the multiple multi-source integrated power distribution and utilization terminals to the mobile communication base station in the first mobile communication network, so that the mobile communication base station in the first mobile communication network determines the final timing time optimization parameters according to the multiple timing time optimization parameters; Receive multiple timing optimization parameters corresponding to the multiple multi-source integrated power distribution and utilization terminals sent by the mobile communication base station of the first mobile communication network; use the multiple timing optimization parameters to correct the timing of the mobile communication air interface timing source respectively, and obtain the corresponding multiple corrected timing times of the mobile communication air interface timing sources; calculate the difference between the timing of the multiple corrected mobile communication air interface timing sources and the timing of the preset reference timing source respectively, and obtain multiple errors corresponding to the multiple timing optimization parameters; The corresponding multiple errors are sent to the mobile communication base station of the first mobile communication network, so that after the mobile communication base station of the first mobile communication network receives the multiple errors corresponding to the multiple timing time optimization parameters sent by each multi-source fusion distribution and utilization terminal, the errors calculated by the multiple multi-source fusion distribution and utilization terminals using the same timing time optimization parameters are weighted averaged to obtain multiple weighted average results, and the timing time optimization parameters of the multi-source fusion distribution and utilization terminal corresponding to the smallest of the multiple weighted average results are sent as the final timing time optimization parameters to the multiple multi-source fusion distribution and utilization terminals; Receive the final timing optimization parameter sent by the mobile communication base station of the first mobile communication network.

17. The time calibration method according to claim 1, characterized in that: The multi-source fusion power distribution and utilization terminal is in the first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the multi-source fusion power distribution and utilization terminal is connected to the non-cellular timing node through a direct communication link, and the timing method also includes: After the multi-source integrated power distribution and utilization terminal performs time calibration, the delay measurement information is interacted with the non-cellular timing node through the precise time protocol PTP, so that the non-cellular timing node performs time synchronization based on the multi-source integrated power distribution and utilization terminal.

18. A multi-source wide-area power distribution terminal time synchronization method, characterized in that: Applied to a power distribution terminal, the power distribution terminal supports a timing source to be calibrated, and the timing calibration method includes: Get timing optimization parameters; Obtaining the timing time of the timing source to be corrected; Correcting the timing time of the timing source to be corrected using the timing time optimization parameter; Wherein, the timing optimization parameter is determined in the following manner: Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time; Obtaining the timing time of the timing source to be corrected corresponding to the specified time; Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time; The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

19. The time calibration method according to claim 18, characterized in that: The timing optimization parameters are determined by a multi-source integrated power distribution terminal, and the multi-source integrated power distribution terminal supports integrated timing of multiple different timing sources. The timing optimization parameters are obtained, including: Receive the timing optimization parameters sent by the multi-source integrated power distribution terminal.

20. The time calibration method according to claim 19, characterized in that: The power distribution and utilization terminal and the multi-source integrated power distribution and utilization terminal are both in the first mobile communication network, and the receiving of the timing optimization parameter sent by the multi-source integrated power distribution and utilization terminal includes: The timing time optimization parameters sent by the multi-source integrated power distribution and utilization terminal are received through the mobile communication base station of the first mobile communication network, and the timing time optimization parameters are sent by the multi-source integrated power distribution and utilization terminal to the mobile communication base station of the first mobile communication network.

21. The time calibration method according to claim 19, characterized in that: The multi-source integrated power distribution and utilization terminal is in a first mobile communication network, and the power distribution and utilization terminal is in a second mobile communication network. The receiving of the timing optimization parameter sent by the multi-source integrated power distribution and utilization terminal includes: The timing optimization parameters sent by the multi-source integrated power distribution and utilization terminal are received by the mobile communication base station of the second mobile communication network. The timing optimization parameters are first sent by the multi-source integrated power distribution and utilization terminal to the mobile communication base station of the first mobile communication network, and then transmitted back by the mobile communication base station of the first mobile communication network to the mobile communication access layer network, and then sent down by the mobile communication access layer network to the mobile communication base station of the second mobile communication network.

22. The time calibration method according to claim 18, characterized in that: The timing source to be corrected includes: a mobile communication air interface timing source; and obtaining the timing time of the timing source to be corrected includes: Obtain the reference time and the time advance TA sent by the mobile communication air interface timing source; Determine the current air interface transmission delay according to the time advance TA; The sum of the current air interface transmission delay and the reference time sent by the mobile communication air interface timing source is used as the timing time of the mobile communication air interface timing source; The method of correcting the timing time of the timing source to be corrected by using the timing time optimization parameter comprises: The timing time of the mobile communication air interface timing source is corrected using the following formula based on the timing time optimization parameter: t r =t0+τ×(1+η n ), Among them, t r is the timing time of the mobile communication air interface timing source after correction, t0 is the reference time sent by the mobile communication air interface timing source, τ is the current air interface transmission delay, η n Optimize the timing parameters.

23. The time calibration method according to claim 18, characterized in that: The power distribution terminal is in a first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the power distribution terminal is connected to the non-cellular timing node via a direct communication link, and the timing method also includes: After the power distribution terminal performs time calibration, the delay measurement information is interacted with the non-cellular timing node through the precise time protocol PTP, so that the non-cellular timing node performs time synchronization based on the power distribution terminal.

24. A multi-source wide-area power distribution terminal time calibration device, characterized in that: It is arranged in a multi-source fusion power distribution terminal, and the multi-source fusion power distribution terminal supports fusion timing of multiple different timing sources. The timing device includes: A reference timing time acquisition module is configured to acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time; A first timing time acquisition module to be corrected is configured to obtain the timing time of the timing source to be corrected corresponding to the specified time; A timing deviation value calculation module is configured to calculate a timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time; The timing time optimization parameter determination module is configured to determine the timing time optimization parameters according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation, and the timing time optimization parameters are used to correct the timing time of the timing source to be corrected.

25. The time setting device according to claim 24, characterized in that: The multi-source integrated power distribution and utilization terminal is in the first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the first mobile communication network also includes at least one mobile communication timing node, and the mobile communication timing node supports the mobile communication air interface timing source; the timing device also includes: A timing time optimization parameter sending module is configured to send the timing time optimization parameter to a mobile communication base station of the first mobile communication network, so that the mobile communication base station in the first mobile communication network carries the timing time optimization parameter to perform timing on a mobile communication timing node in the first mobile communication network, so that the mobile communication timing node in the first mobile communication network uses the timing time optimization parameter to correct the timing time of the mobile communication air interface timing source; And / or, so that the mobile communication base station of the first mobile communication network transmits the timing time optimization parameters back to the mobile communication access layer network, so that the mobile communication access layer network sends the timing time optimization parameters to the mobile communication base station in the second mobile communication network, so that the mobile communication base station in the second mobile communication network carries the timing time optimization parameters to time the mobile communication timing nodes in the second mobile communication network, so that the mobile communication timing nodes in the second mobile communication network use the timing time optimization parameters to correct the timing time of the mobile communication air interface timing source.

26. The time setting device according to claim 24, characterized in that: The multi-source fusion power distribution and utilization terminal is in the first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the multi-source fusion power distribution and utilization terminal is connected to the non-cellular timing node through a direct communication link, and the timing device also includes: The first non-cellular timing node timing module is configured to interact with the non-cellular timing node for delay measurement information through the precise time protocol PTP after the multi-source integrated power distribution and utilization terminal performs time calibration, so that the non-cellular timing node performs time synchronization based on the multi-source integrated power distribution and utilization terminal.

27. A multi-source wide-area power distribution terminal time calibration device, characterized in that: It is arranged at a power distribution terminal, the power distribution terminal supports a timing source to be calibrated, and the timing device comprises: A timing time optimization parameter acquisition module is configured to acquire timing time optimization parameters; A second timing time acquisition module to be corrected is configured to obtain the timing time of the timing source to be corrected; A timing time correction module is configured to correct the timing time of the timing source to be corrected using the timing time optimization parameters; Wherein, the timing optimization parameter is determined in the following manner: Acquire a reference timing time based on a preset reference timing source or a plurality of different timing sources, wherein the reference timing time corresponds to a specified time; Obtaining the timing time of the timing source to be corrected corresponding to the specified time; Calculating the timing deviation value between the reference timing time and the timing time of the timing source to be corrected corresponding to the specified time; The timing time optimization parameter is determined according to the timing deviation value and in combination with an improved moving average filtering algorithm based on Pearson correlation. The timing time optimization parameter is used to correct the timing time of the timing source to be corrected.

28. The time setting device according to claim 27, characterized in that: The power distribution terminal is in the first mobile communication network, the timing source to be corrected includes: a mobile communication air interface timing source, the mobile communication air interface timing source includes cellular communication air interface timing and direct communication timing, the first mobile communication network also includes at least one non-cellular timing node, the non-cellular timing node does not support cellular communication air interface timing and supports direct communication timing, the power distribution terminal is connected to the non-cellular timing node through a direct communication link, and the timing device also includes: The second non-cellular timing node timing module is configured to interact with the non-cellular timing node for delay measurement information through the precise time protocol PTP after the power distribution terminal performs time calibration, so that the non-cellular timing node performs time synchronization based on the power distribution terminal.

29. A chip, characterized in that: A time calibration device comprising any one of claims 24 to 28; or, comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the time calibration method according to any one of claims 1 to 23.

30. An electronic device, characterized in that: It comprises a memory and a processor; wherein the memory is used to store computer instructions, wherein the computer instructions are executed by the processor to implement the time calibration method described in any one of claims 1 to 23.

31. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the time calibration method according to any one of claims 1 to 23 is implemented.

32. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the time calibration method according to any one of claims 1 to 23 is implemented.

Citation Information

Cited By

  • Hierarchical time synchronization method, apparatus and system for multi-source wide-area power distribution and utilization network, and chip

    WO2026103957A1