A time synchronization method and system fusing power line carrier technology
By dynamically optimizing the power line carrier time synchronization method, taking into account the capabilities of external clock sources and internal power terminals, and selecting a clock source of the same or higher level for time synchronization, the problems of poor robustness and low accuracy caused by fixed clock sources in the prior art are solved, and high-precision and high-robust time synchronization is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2026-03-24
AI Technical Summary
Existing time synchronization methods based on power line carrier communication use a fixed type and number of clock sources. Some poor-performing clock sources can affect the time synchronization performance of the terminal, resulting in poor robustness of the time synchronization system. Furthermore, it is difficult to dynamically optimize the number of clock sources based on environmental changes and the status of the power line carrier channel, leading to low time synchronization accuracy.
By comprehensively considering the timing capability of external clock sources and the timekeeping capability of internal power terminals, the number of clock sources for terminals to be synchronized is dynamically optimized, and clock sources of the same or higher level terminals are selected for time synchronization. Multi-dimensional evaluation and weighted calculation are used to improve the accuracy and robustness of time synchronization signals.
This ensures the normal operation of the overall time synchronization system even when the external clock source's timing capability fluctuates or fails, improving the robustness and accuracy of time synchronization and ensuring its reliability and accuracy.
Smart Images

Figure CN116339114B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of time synchronization technology for power distribution systems, and in particular to a time synchronization method and system that integrates power line carrier technology. Background Technology
[0002] With the construction of new power systems, new services on the low-voltage side place higher demands on time synchronization, requiring millisecond-level time synchronization accuracy for distributed photovoltaic control. However, the coverage of time synchronization technologies such as 5G and satellite on the low-voltage side is limited, making it difficult to meet the time synchronization needs of new power systems. Since power lines are the most ubiquitous and widely covered physical medium, using power lines to transmit time synchronization information offers significant convenience, eliminating the need for rewiring and meeting the time synchronization requirements of new power systems. Furthermore, the higher data transmission rate of broadband power line carrier communication translates to lower communication latency, providing a fundamental condition for achieving high-precision time synchronization of power terminal equipment.
[0003] However, existing time synchronization methods based on power line carrier communication use a fixed number and types of clock sources. The poor performance of some clock sources can affect the terminal's time synchronization performance, resulting in poor robustness of the time synchronization system. Furthermore, existing time synchronization methods integrating power line carrier communication technology rely on a single evaluation dimension for the timing capability of each clock source, making it difficult to dynamically update the time synchronization signal weights based on multi-dimensional indicators, leading to low time synchronization accuracy. Therefore, there is an urgent need for a time synchronization method integrating power line carrier technology. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of the prior art by proposing a time synchronization method and system that integrates power line carrier technology, which can dynamically optimize the number of clock sources for the time synchronization terminal and improve the robustness of power line carrier time synchronization.
[0005] In a first aspect, the present invention provides a time synchronization method integrating power line carrier technology, comprising:
[0006] Based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status of the terminal to be synchronized at the current moment, the number of time synchronization terminal clock sources required for the terminal to be synchronized is calculated; wherein, the first historical local timekeeping status is used to update the second historical local timekeeping status at the next moment;
[0007] Select a time synchronization terminal clock source that is the same number as the time synchronization terminal clock source and of the same level as the time synchronization terminal from the time synchronization terminal clock source corresponding to the time synchronization terminal to be synchronized.
[0008] This invention comprehensively considers the timing capability of time synchronization terminal clock sources based on external clock sources and the timing capability based on the power line carrier channel status and the first historical local timekeeping situation of internal power terminals. It selects the required number of time synchronization terminal clock sources from the available time synchronization terminal clock sources for time synchronization, ensuring the normal operation of the overall time synchronization system when the timing capability of external clock sources fluctuates or fails. Simultaneously, dynamic optimization of the number of clock sources based on environmental topology changes, power line carrier channel status, and historical local timekeeping situation improves the robustness of power line carrier time synchronization. Furthermore, updating the historical local timekeeping situation and using it to calculate the number of time terminal clock sources for the next moment further enhances the dynamic optimization of the number of time synchronization terminal clock sources, resulting in higher reliability and accuracy in time synchronization.
[0009] Furthermore, the step of calculating the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status at the current moment includes:
[0010] The environmental topology changes of the terminal to be synchronized at the current moment are quantified into the number of clock sources of the same level terminals that can be synchronized, and the first historical local timekeeping situation is quantified into the statistics of historical local timekeeping over a period of time, and the power line carrier channel status including channel bandwidth, electromagnetic interference and channel gain is obtained.
[0011] The number of time synchronization terminal clock sources required by the terminal to be synchronized is calculated based on the number of time synchronization peer terminal clock sources, the power line carrier channel status, and the historical local timekeeping statistics.
[0012] This invention comprehensively considers the timing capability of the external clock source and the timekeeping capability of the internal power terminals. The timing capability of the external clock source includes environmental changes such as the number of time synchronization terminals. The timekeeping capability of the internal power terminals includes power line carrier channel status variables such as channel bandwidth, electromagnetic interference, and channel gain, as well as historical local timekeeping performance. A certain number of terminals are selected for time synchronization, which can ensure the normal operation of the overall time synchronization system when the timing capability of the external clock source fluctuates or fails, and at the same time improves the robustness of the time synchronization system.
[0013] Furthermore, the first historical local timekeeping information is used to update the second historical local timekeeping information for the next time step, including:
[0014] The performance indicators of the time synchronization signal quality of multiple first time-paired terminal clock sources of the terminal to be synchronized are evaluated sequentially, and multiple scores are obtained for each first time-paired terminal clock source; wherein, the performance indicators include: clock source synchronization signal deviation, synchronization signal fluctuation and synchronization signal uncertainty;
[0015] Based on the multiple scoring results, update the first historical local timekeeping status to obtain the second historical local timekeeping status for the next moment.
[0016] This invention employs multi-dimensional evaluation of each time synchronization signal based on indicators such as clock source synchronization signal deviation, synchronization signal fluctuation, and synchronization signal uncertainty, which can effectively improve the time synchronization accuracy of integrated power line carrier communication technology.
[0017] Furthermore, the step of updating the first historical local timekeeping status based on the multiple scoring results to obtain the second historical local timekeeping status for the next moment includes:
[0018] The multiple scores of each first time pair terminal clock source are merged into a clock source synchronization signal score according to the preset weight parameters, and each first time pair terminal clock source corresponds to a clock source synchronization signal score.
[0019] The comprehensive time synchronization signal of each first time pair terminal clock source is obtained by scoring the clock source synchronization signal of each first time pair terminal clock source in turn.
[0020] Based on the integrated time synchronization signal, the first historical local timekeeping situation is processed to obtain the second historical local timekeeping situation at the next moment.
[0021] Furthermore, the step of obtaining the comprehensive time synchronization signal of each first time-pair terminal clock source based on the clock source synchronization signal score of each first time-pair terminal clock source includes:
[0022] The clock source synchronization signal of each first pair of time terminal clock source is scored sequentially to construct a time synchronization signal weight, and a time synchronization signal weight is obtained for each first pair of time terminal clock source;
[0023] The weights of the time synchronization signals corresponding to the clock sources of the first time pair terminal are weighted to obtain a comprehensive time synchronization signal; wherein, each terminal to be synchronized with time corresponds to a comprehensive time synchronization signal.
[0024] This invention employs a scoring-based approach to construct time synchronization signal weights and performs comprehensive weighted calculations to obtain the optimal time synchronization signal. This improves the accuracy of comprehensive weighted calculations from multiple dimensions, thereby enhancing the robustness of time synchronization systems that integrate power line carrier technology.
[0025] Furthermore, the step of processing the first historical local timekeeping status based on the integrated time synchronization signal to obtain the second historical local timekeeping status for the next moment includes:
[0026] Based on the comparison result between the difference between the integrated time synchronization signal and the first local time before synchronization of the terminal to be synchronized and a preset threshold, the local timekeeping performance index of the terminal to be synchronized at the current moment is obtained.
[0027] Based on the local timekeeping performance metrics, the first historical local timekeeping status is updated to obtain the second historical local timekeeping status for the next moment.
[0028] Further, the step of selecting, from the time-synchronizable terminal clock sources corresponding to the time-synchronizable terminal to be synchronized, a terminal clock source of the same number as the time-synchronizable terminal and of the same level as the time-synchronizable terminal to be synchronized for time synchronization includes:
[0029] From the clock sources of the time synchronization terminals corresponding to the time synchronization terminal, select the same level terminal clock source that is closest to the time synchronization terminal and has the same number of clock sources as the time synchronization terminal clock source, as well as the fixed upper-level terminal clock source for time synchronization.
[0030] Preferably, the number of clock sources for the time synchronization terminal can be expressed as:
[0031]
[0032] Among them, B j,m,t For the terminal d to be synchronized at time t j The channel bandwidth h between the m-th peer terminal clock source and the m-th peer terminal clock source j,m,t Let I be the channel gain at time t. j,m,t For the electromagnetic interference at time t, For the terminal d to be synchronized at the previous t-1 time points j The local timekeeping performance average, This is the floor function, where κ and λ are preset weight parameters used to keep the variables on the same order of magnitude.
[0033] Preferably, the second historical local timekeeping situation at the next moment can be expressed as:
[0034]
[0035] in, For the time synchronization terminal d j Local timekeeping performance metrics at time t For the time synchronization terminal d j The second historical local timekeeping situation at the next t+1 time. For the time synchronization terminal d j The first historical local timekeeping situation at time t.
[0036] Secondly, the present invention provides a time synchronization system integrating power line carrier technology, comprising:
[0037] The time synchronization terminal clock source quantity calculation module is used to calculate the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status corresponding to the terminal to be synchronized at the current time; wherein, the first historical local timekeeping status is used to update the second historical local timekeeping status at the next time.
[0038] The time synchronization module is used to select, from the available time synchronization terminal clock sources corresponding to the time synchronization terminal, a terminal clock source of the same number as the time synchronization terminal and of the same level as the time synchronization terminal, for time synchronization. Attached Figure Description
[0039] Figure 1 This is a flowchart illustrating the time synchronization method integrating power line carrier technology provided in an embodiment of the present invention;
[0040] Figure 2 This is a flowchart illustrating the time synchronization method integrating power line carrier technology provided in an embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of the structure of a time synchronization system integrating power line carrier technology provided in an embodiment of the present invention. Detailed Implementation
[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0043] It is worth noting that existing technologies select a fixed type and number of terminal clock sources for the terminal to be synchronized, and the performance of some poorly performing terminal clock sources can affect the time synchronization performance of the terminal. Furthermore, this time synchronization method struggles to dynamically optimize the number of clock sources based on environmental changes, power line carrier channel status, and historical local timekeeping conditions, resulting in poor robustness of power line carrier time synchronization. Therefore, this invention dynamically optimizes the type and number of terminal clock sources selected for the terminal to be synchronized based on environmental topology changes, power line carrier channel status, and historical local timekeeping conditions. This allows for adaptation to different times for the terminal to be synchronized, improving the robustness of the synchronization system.
[0044] See Figure 1 This is a flowchart illustrating the time synchronization method integrating power line carrier technology provided in this embodiment of the invention, including steps S11 to S12, specifically:
[0045] Step S11: Calculate the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status corresponding to the terminal to be synchronized at the current time; wherein, the first historical local timekeeping status is used to update the second historical local timekeeping status at the next time.
[0046] Specifically, based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status of the terminal to be synchronized at the current moment, the number of time synchronization terminal clock sources required by the terminal to be synchronized is calculated, including: quantifying the environmental topology changes corresponding to the terminal to be synchronized at the current moment into the number of time synchronization peer terminal clock sources, and quantifying the first historical local timekeeping status into a statistical measure of historical local timekeeping over a period of time, and obtaining the power line carrier channel status including channel bandwidth, electromagnetic interference, and channel gain; and calculating the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the number of time synchronization peer terminal clock sources, the power line carrier channel status, and the statistical measure of historical local timekeeping.
[0047] It is worth noting that the first historical local timekeeping situation refers to the statistical measures of historical local timekeeping over a statistical period, including: mean, median and mode, or other statistical measures that can characterize the performance of historical local timekeeping, without any limitation here.
[0048] For example, the set of terminals to be synchronized can be represented as D = {d1, d2, ..., d...} j ,...,d J The environmental topology change of the terminal to be synchronized at the current time is quantified as the number of clock sources of peer terminals that can synchronize with the time. That is, the environmental topology change of the terminal to be synchronized is represented by the number of clock sources of peer terminals that can synchronize with the time. Then, the terminal d to be synchronized at time t is... j The set of clock sources for peer terminals that can be synchronized is The system acquires the power line carrier channel status and the first historical local timekeeping status. The power line carrier channel status is quantified into channel bandwidth, electromagnetic interference, and channel gain, i.e., the power line carrier channel status is represented by channel bandwidth, electromagnetic interference, and channel gain. The system also collects statistical characteristic values of the historical local timekeeping performance over a historical period to quantify the first historical local timekeeping status.
[0049] Preferably, the first historical local timekeeping case is the average of the historical local timekeeping performance.
[0050] It is worth noting that if the first historical local timekeeping situation is the average of the historical local timekeeping performance, then at time t, the terminal d waiting for time synchronization... jThe corresponding first historical local timekeeping situation is the average of the historical local timekeeping performance at time t-1.
[0051] Preferably, the number of clock sources for the time synchronization terminal can be expressed as:
[0052]
[0053] Among them, B j,m,t For the terminal d to be synchronized at time t j The channel bandwidth h between the m-th peer terminal clock source and the m-th peer terminal clock source j,m,t Let I be the channel gain at time t. j,m,t For the electromagnetic interference at time t, For the terminal d to be synchronized at the previous t-1 time points j The local timekeeping performance average, This is the floor function, where κ and λ are preset weight parameters used to keep the variables on the same order of magnitude.
[0054] It is worth noting that, keeping other variables fixed, the better the local timekeeping of the terminal to be synchronized, the fewer time synchronization terminal clock sources are needed; conversely, the worse the power line carrier channel status, the more time synchronization terminal clock sources are needed. Furthermore, the number of time synchronization terminal clock sources required by the terminal to be synchronized cannot exceed the number of available time synchronization terminal clock sources at the current time.
[0055] This invention comprehensively considers the timing capability of the external clock source and the timekeeping capability of the internal power terminals. The timing capability of the external clock source includes environmental changes such as the number of time synchronization terminals. The timekeeping capability of the internal power terminals includes power line carrier channel status variables such as channel bandwidth, electromagnetic interference, and channel gain, as well as historical local timekeeping performance. A certain number of terminals are selected for time synchronization, which can ensure the normal operation of the overall time synchronization system when the timing capability of the external clock source fluctuates or fails, and at the same time improves the robustness of the time synchronization system.
[0056] It is worth noting that the present invention evaluates multiple clock source signals and multiple performance indicators. That is, the multiple terminal clock sources corresponding to the time synchronization terminal are evaluated from multiple performance indicators respectively, and the obtained scoring results are used to update the first historical local timekeeping situation, which can improve the time synchronization accuracy of the integrated power line carrier communication technology.
[0057] The first historical local timekeeping status is used to update the second historical local timekeeping status for the next moment, including: sequentially evaluating the performance indicators of the time synchronization signal quality of multiple first time-pairing terminal clock sources of the terminal to be synchronized, with each first time-pairing terminal clock source corresponding to multiple scoring results; wherein, the performance indicators include: clock source synchronization signal deviation, synchronization signal fluctuation and synchronization signal uncertainty; based on the multiple scoring results, the first historical local timekeeping status is updated to obtain the second historical local timekeeping status for the next moment.
[0058] At time t, the terminal d to be synchronized j The set of multiple corresponding terminal clock sources can be represented as Among them, the first N j,t Each element represents the terminal to be synchronized (d). j The same level terminal clock source, For the time synchronization terminal d j The upstream terminal clock source. During the process of updating the first historical local timekeeping status, the terminal waiting for time synchronization d j Received a fixed upstream terminal clock source. and N j,t The time synchronization signal of N at time t is from multiple clock sources at the same level. Therefore, it is necessary to analyze the synchronization signal deviation, synchronization signal fluctuation, and synchronization signal uncertainty from multiple dimensions. j,t +1 terminal clock source is used to perform time synchronization signal quality assessment, and the assessment results are used to update the first historical local timekeeping status.
[0059] Specifically, the synchronization signal deviation is quantified as the difference between the second local time of the terminal clock source and the average second local time of multiple terminal clock sources under the same time synchronization terminal; the synchronization signal volatility is quantified as the variance of the synchronization signal deviation of the terminal clock source; and the synchronization signal uncertainty is quantified as the difference in variance between the second local time of multiple terminal clock sources under the same time synchronization terminal, taking into account whether or not a terminal clock source exists.
[0060] Preferably, the synchronization signal deviation, synchronization signal fluctuation, and synchronization signal uncertainty at time t can be expressed as follows:
[0061]
[0062] Where, τ n,j,t For the terminal d to be synchronized at time t j Selected terminal clock source o n Second local time, θ n,j,i For the terminal d to be synchronized at time i... j Selected terminal clock source o n Synchronization signal deviation, and ρ n,j,t The terminals to be synchronized at time i are d respectively. j Selected terminal clock source o n The volatility and uncertainty of the synchronization signal.
[0063] This invention employs a multi-dimensional evaluation of each time synchronization signal based on indicators such as the deviation between the time synchronization signal and the multi-clock source synchronization signal, the volatility of the time synchronization signal, and uncertainty, which effectively improves the time synchronization accuracy of the integrated power line carrier communication technology.
[0064] Based on the multiple scoring results, the first historical local timekeeping status is updated to obtain the second historical local timekeeping status for the next moment. This includes: sequentially merging the multiple scoring results of each first time synchronization terminal clock source into a clock source synchronization signal score according to preset weight parameters, with each first time synchronization terminal clock source corresponding to a clock source synchronization signal score; sequentially obtaining the comprehensive time synchronization signal of each first time synchronization terminal clock source based on its clock source synchronization signal score; and performing the first historical local timekeeping status based on the comprehensive time synchronization signal to obtain the second historical local timekeeping status for the next moment.
[0065] Preferably, the clock source synchronization signal score can be expressed as:
[0066]
[0067] Where, σ n The preset weighting parameters for the synchronization signal deviation, As a preset weighting parameter for the volatility of the synchronization signal, v n Preset weighting parameters for the uncertainty of the synchronization signal.
[0068] Specifically, the process involves obtaining a comprehensive time synchronization signal for each first time pair terminal clock source based on the clock source synchronization signal score of each clock source, including: constructing time synchronization signal weights by sequentially scoring the clock source synchronization signal of each first time pair terminal clock source, with each first time pair terminal clock source corresponding to a time synchronization signal weight; and performing a weighted calculation on the time synchronization signal weights corresponding to the first time pair terminal clock sources to obtain a comprehensive time synchronization signal; wherein each terminal to be synchronized corresponds to a comprehensive time synchronization signal.
[0069] Preferably, the weights of the time synchronization signal can be expressed as:
[0070]
[0071] Where, α n The preset scoring weight parameter for the nth clock source.
[0072] Preferably, the integrated time synchronization signal can be expressed as:
[0073]
[0074] It is worth noting that, based on the scoring of the clock source synchronization signal, the weight of the time synchronization signal is constructed, and a comprehensive weighted calculation is performed to obtain the comprehensive time synchronization signal. According to the obtained comprehensive time synchronization signal, the first local time of the terminal to be synchronized can be adjusted, and the terminal to be synchronized can be synchronized to achieve time synchronization.
[0075] This invention employs a scoring-based approach to construct time synchronization signal weights and performs comprehensive weighted calculations to obtain the optimal time synchronization signal. This improves the accuracy of comprehensive weighted calculations from multiple dimensions, thereby enhancing the robustness of time synchronization systems that integrate power line carrier technology.
[0076] Based on the integrated time synchronization signal, the first historical local timekeeping situation is processed to obtain the second historical local timekeeping situation at the next moment, including: obtaining the local timekeeping performance index of the terminal to be synchronized at the current moment by comparing the difference between the integrated time synchronization signal and the first local time before synchronization of the terminal to be synchronized with a preset threshold; updating the first historical local timekeeping situation based on the local timekeeping performance index to obtain the second historical local timekeeping situation at the next moment.
[0077] Preferably, the local timekeeping performance index can be expressed as:
[0078]
[0079] Where, ω j,t For the preset time t-th time, the terminal d to be synchronized j The timekeeping performance threshold, μ and v are preset timekeeping performance weight parameters, and δ j For the preset time synchronization terminal d j Preset threshold for clock bias For the time synchronization terminal d j The first local time.
[0080] It is worth noting that the local timekeeping performance index is calculated by measuring the clock difference of the terminal to be synchronized. If the clock difference of the terminal to be synchronized is at a small level, that is, the clock difference does not exceed the preset threshold, the clock difference fluctuation has little impact on the timekeeping performance. The timekeeping performance of the terminal to be synchronized is strong and the local time is relatively accurate. If the clock difference exceeds the preset threshold, the local timekeeping performance will drop rapidly and tend to a poor level. At this time, it proves that the local time of the terminal is extremely inaccurate and more accurate time synchronization is required.
[0081] This invention can adjust the local timekeeping performance index of the terminal to be synchronized based on the clock difference of the base integrated time synchronization signal to achieve time synchronization. In particular, by acquiring the local timekeeping performance index, the local timekeeping performance can be dynamically changed, which can effectively identify the situation where the clock difference of the terminal to be synchronized is large, and adjust the number of time synchronization terminals in time to improve the time synchronization accuracy.
[0082] Preferably, the second historical local timekeeping situation at the next moment can be expressed as:
[0083]
[0084] in, For the time synchronization terminal d j Local timekeeping performance metrics at time t For the time synchronization terminal d j The second historical local timekeeping situation at the next t+1 time. For the time synchronization terminal d j The first historical local timekeeping situation at time t.
[0085] This invention employs a weighted calculation based on a scoring system to construct the time synchronization signal, thereby obtaining the optimal time synchronization signal. Furthermore, it compares the signal with the local time of the terminal to be synchronized before synchronization, solves the local timekeeping performance, and updates the historical local timekeeping status. This enables precise selection of the number of time synchronization terminals, improving the robustness of the time synchronization system while saving resources.
[0086] Step S12: Select a time synchronization terminal clock source that is the same number as the time synchronization terminal clock source and of the same level as the time synchronization terminal from the time synchronization terminal clock sources corresponding to the time synchronization terminal to be synchronized.
[0087] Specifically, from the time-synchronizable terminal clock sources corresponding to the time-synchronizable terminal to be synchronized, select the same level terminal clock source that is closest to the time-synchronizable terminal and has the same number of time-synchronizable terminal clock sources as the time-synchronizable terminal to be synchronized, as well as a fixed upper-level terminal clock source for time synchronization.
[0088] This invention also provides a complete time synchronization method integrating power line carrier technology, see [link to relevant documentation]. Figure 2 This is a flowchart illustrating the time synchronization method integrating power line carrier technology provided in this embodiment of the invention, including steps S21 to S27, specifically:
[0089] Step S21: The terminal to be synchronized determines the number of clock sources for the time synchronization terminal based on the changes in environmental topology, the status of the power line carrier channel, and the first historical local timekeeping status.
[0090] Step S22: Select a time synchronization terminal clock source that is the same number as the time synchronization terminal clock source and of the same level as the time synchronization terminal from the time synchronization terminal clock sources corresponding to the time synchronization terminal to be synchronized.
[0091] Step S23: Evaluate the performance indicators of the time synchronization signal quality of the multiple first time synchronization terminal clock sources of the terminal to be synchronized in sequence, and obtain multiple score results corresponding to the first time synchronization terminal clock sources respectively.
[0092] Step S24: For each first time pair terminal clock source, the multiple scoring results are used to score the synchronization signal of each terminal clock source, and the clock source synchronization signal score of each terminal clock source is obtained.
[0093] Step S25: Based on the time synchronization signal weight constructed by the clock source synchronization signal score of each first time pair terminal clock source, perform weighted calculation to obtain the comprehensive time synchronization signal, and perform time synchronization on the terminal to be synchronized.
[0094] Step S26: Compare the integrated time synchronization signal with the first local time before synchronization of the terminal to be synchronized to obtain the local timekeeping status.
[0095] Step S27: Update the first historical local timekeeping information based on the local timekeeping information, which will be used to proceed to step S21 to calculate the number of clock sources for the time synchronization terminal.
[0096] This invention comprehensively considers the timing capability of external terminal clock sources and the timekeeping capability of internal power terminals. External terminal clock sources include environmental changes, while the timekeeping capability of internal power terminals includes the power line carrier channel status and the first historical local timekeeping status. By adaptively selecting a certain number of terminal clock sources for time synchronization, the overall time synchronization system can operate normally even when the timing capability of external clock sources fluctuates or fails, thus improving the robustness of the time synchronization system. Furthermore, by evaluating each time synchronization signal from multiple dimensions based on multi-dimensional indicators, the time synchronization accuracy of the integrated power line carrier communication technology can be effectively improved. Simultaneously, by constructing weights for the time synchronization signals based on scores, a comprehensive weighted calculation is performed to obtain the optimal integrated time synchronization signal, which is then compared with the local time of the terminal to be synchronized before synchronization to solve for local timekeeping performance and update the historical local timekeeping status. This enables precise selection of the number of time synchronization terminals, improving the robustness of the time synchronization system while saving resources.
[0097] See Figure 3 This is a schematic diagram of the structure of a time synchronization system integrating power line carrier technology provided in an embodiment of the present invention, including: a time synchronization terminal clock source quantity calculation module 31 and a time synchronization module 32.
[0098] The time synchronization terminal clock source quantity calculation module 31 is used to calculate the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology change, power line carrier channel status and first historical local timekeeping status corresponding to the terminal to be synchronized at the current time; wherein, the first historical local timekeeping status is used to update the second historical local timekeeping status at the next time.
[0099] Specifically, based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status of the terminal to be synchronized at the current moment, the number of time synchronization terminal clock sources required by the terminal to be synchronized is calculated, including: quantifying the environmental topology changes corresponding to the terminal to be synchronized at the current moment into the number of time synchronization peer terminal clock sources, and quantifying the first historical local timekeeping status into a statistical measure of historical local timekeeping over a period of time, and obtaining the power line carrier channel status including channel bandwidth, electromagnetic interference, and channel gain; and calculating the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the number of time synchronization peer terminal clock sources, the power line carrier channel status, and the statistical measure of historical local timekeeping.
[0100] Preferably, the number of clock sources for the time synchronization terminal can be expressed as:
[0101]
[0102] Among them, B j,m,t For the terminal d to be synchronized at time t j The channel bandwidth h between the m-th peer terminal clock source and the m-th peer terminal clock source j,m,t Let I be the channel gain at time t. j,m,t For the electromagnetic interference at time t, For the terminal d to be synchronized at the previous t-1 time points j The local timekeeping performance average, This is the floor function, where κ and λ are preset weight parameters used to keep the variables on the same order of magnitude.
[0103] The first historical local timekeeping status is used to update the second historical local timekeeping status for the next moment, including: sequentially evaluating the performance indicators of the time synchronization signal quality of multiple first time-pairing terminal clock sources of the terminal to be synchronized, with each first time-pairing terminal clock source corresponding to multiple scoring results; wherein the performance indicators include: clock source synchronization signal deviation, synchronization signal fluctuation, and synchronization signal uncertainty; and updating the first historical local timekeeping status according to the multiple scoring results to obtain the second historical local timekeeping status for the next moment.
[0104] Based on the multiple scoring results, the first historical local timekeeping status is updated to obtain the second historical local timekeeping status for the next moment. This includes: sequentially merging the multiple scoring results of each first time synchronization terminal clock source into a clock source synchronization signal score according to preset weight parameters, with each first time synchronization terminal clock source corresponding to a clock source synchronization signal score; sequentially obtaining the comprehensive time synchronization signal of each first time synchronization terminal clock source based on its clock source synchronization signal score; and performing the first historical local timekeeping status based on the comprehensive time synchronization signal to obtain the second historical local timekeeping status for the next moment.
[0105] Specifically, the process involves obtaining a comprehensive time synchronization signal for each first time pair terminal clock source based on the clock source synchronization signal score of each clock source, including: constructing time synchronization signal weights by sequentially scoring the clock source synchronization signal of each first time pair terminal clock source, with each first time pair terminal clock source corresponding to a time synchronization signal weight; and performing a weighted calculation on the time synchronization signal weights corresponding to the first time pair terminal clock sources to obtain a comprehensive time synchronization signal; wherein each terminal to be synchronized corresponds to a comprehensive time synchronization signal.
[0106] The process of updating the first historical local timekeeping status based on the integrated time synchronization signal to obtain the second historical local timekeeping status for the next moment includes: obtaining the local timekeeping performance index of the terminal to be synchronized at the current moment by comparing the difference between the integrated time synchronization signal and the first local time before synchronization of the terminal to be synchronized with a preset threshold; and updating the first historical local timekeeping status based on the local timekeeping performance index to obtain the second historical local timekeeping status for the next moment.
[0107] Preferably, the second historical local timekeeping situation at the next moment can be expressed as:
[0108]
[0109] in, For the time synchronization terminal d j Local timekeeping performance metrics at time t For the time synchronization terminal d j The second historical local timekeeping situation at the next t+1 time. For the time synchronization terminal d j The first historical local timekeeping situation at time t.
[0110] It is worth noting that the time synchronization terminal clock source quantity calculation module 31 mainly calculates the number of time synchronization terminal clock sources of the terminal to be synchronized, and transmits the obtained number of time synchronization terminal clock sources to the time synchronization module 32 so that the time synchronization module 32 can perform time synchronization; in addition, the time synchronization terminal clock source quantity calculation module 31 also updates the first historical local timekeeping status so that the number of time synchronization terminal clock sources can be calculated at the next moment.
[0111] The time synchronization module 32 is used to select, from the time synchronization terminal clock sources corresponding to the time synchronization terminal, a terminal clock source of the same number as the time synchronization terminal and of the same level as the time synchronization terminal for time synchronization.
[0112] Specifically, from the time-synchronizable terminal clock sources corresponding to the time-synchronizable terminal to be synchronized, select the same level terminal clock source that is closest to the time-synchronizable terminal and has the same number of time-synchronizable terminal clock sources as the time-synchronizable terminal to be synchronized, as well as a fixed upper-level terminal clock source for time synchronization.
[0113] It is worth noting that after the time synchronization module 32 receives the number of time synchronization terminal clock sources from the time synchronization terminal clock source number calculation module 31, it sequentially selects the clock source from the statistical count of the number of time synchronization terminal clock sources corresponding to the time synchronization terminal to be synchronized for time synchronization.
[0114] This invention comprehensively considers the timing capability of time synchronization terminal clock sources based on external clock sources and the timing capability based on the power line carrier channel status and the first historical local timekeeping situation of internal power terminals. It selects the required number of time synchronization terminal clock sources from the available time synchronization terminal clock sources for time synchronization, ensuring the normal operation of the overall time synchronization system when the timing capability of external clock sources fluctuates or fails. Simultaneously, dynamic optimization of the number of clock sources based on environmental topology changes, power line carrier channel status, and historical local timekeeping situation improves the robustness of power line carrier time synchronization and enables precise selection of the number of time synchronization terminals, conserving resources while enhancing the robustness of the time synchronization system. Furthermore, updating the historical local timekeeping situation and using it for calculating the number of time terminal clock sources for the next moment further improves the dynamic optimization of the number of time synchronization terminal clock sources, resulting in higher reliability and accuracy in time synchronization.
[0115] Those skilled in the art will understand that embodiments of this application may also include computer program products. Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0116] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0117] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0118] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0119] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A time synchronization method integrating power line carrier technology, characterized in that, include: Based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status of the terminal to be synchronized at the current moment, the number of time synchronization terminal clock sources required for the terminal to be synchronized is calculated; wherein, the first historical local timekeeping status is used to update the second historical local timekeeping status at the next moment; Select a time synchronization terminal clock source that is the same number as the time synchronization terminal clock source and of the same level as the time synchronization terminal from the time synchronization terminal clock source corresponding to the time synchronization terminal to be synchronized; The step of calculating the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status at the current moment includes: The environmental topology changes of the terminal to be synchronized at the current moment are quantified into the number of clock sources of the same level terminals that can be synchronized, and the first historical local timekeeping situation is quantified into the statistics of historical local timekeeping over a period of time, and the power line carrier channel status including channel bandwidth, electromagnetic interference and channel gain is obtained. The number of time synchronization terminal clock sources required by the terminal to be synchronized is calculated based on the number of time synchronization peer terminal clock sources, the power line carrier channel status, and the historical local timekeeping statistics.
2. The time synchronization method integrating power line carrier technology as described in claim 1, characterized in that, The first historical local timekeeping information is used to update the second historical local timekeeping information for the next time step, including: The performance indicators of the time synchronization signal quality of multiple first time-paired terminal clock sources of the terminal to be synchronized are evaluated sequentially, and multiple scores are obtained for each first time-paired terminal clock source; wherein, the performance indicators include: clock source synchronization signal deviation, synchronization signal fluctuation and synchronization signal uncertainty; Based on the multiple scoring results, update the first historical local timekeeping status to obtain the second historical local timekeeping status for the next moment.
3. The time synchronization method integrating power line carrier technology as described in claim 2, characterized in that, The step of updating the first historical local timekeeping status based on the multiple scoring results to obtain the second historical local timekeeping status for the next moment includes: The multiple scores of each first time pair terminal clock source are merged into a clock source synchronization signal score according to the preset weight parameters, and each first time pair terminal clock source corresponds to a clock source synchronization signal score. The comprehensive time synchronization signal of each first time pair terminal clock source is obtained by scoring the clock source synchronization signal of each first time pair terminal clock source in turn. Based on the integrated time synchronization signal, the first historical local timekeeping situation is processed to obtain the second historical local timekeeping situation at the next moment.
4. The time synchronization method integrating power line carrier technology as described in claim 3, characterized in that, The step of obtaining the comprehensive time synchronization signal of each first time-synchronization terminal clock source by sequentially scoring the clock source synchronization signal of each first time-synchronization terminal clock source includes: The clock source synchronization signal of each first pair of time terminal clock source is scored sequentially to construct a time synchronization signal weight, and a time synchronization signal weight is obtained for each first pair of time terminal clock source; The weights of the time synchronization signals corresponding to the clock sources of the first time pair terminal are weighted to obtain a comprehensive time synchronization signal; wherein, each terminal to be synchronized with time corresponds to a comprehensive time synchronization signal.
5. The time synchronization method integrating power line carrier technology as described in claim 3, characterized in that, The step of processing the first historical local timekeeping status based on the integrated time synchronization signal to obtain the second historical local timekeeping status for the next moment includes: Based on the comparison result between the difference between the integrated time synchronization signal and the first local time before synchronization of the terminal to be synchronized and a preset threshold, the local timekeeping performance index of the terminal to be synchronized at the current moment is obtained. Based on the local timekeeping performance metrics, the first historical local timekeeping status is updated to obtain the second historical local timekeeping status for the next moment.
6. The time synchronization method integrating power line carrier technology as described in claim 1, characterized in that, The step of selecting, from the available time-synchronizable terminal clock sources corresponding to the terminal to be synchronized, a terminal clock source of the same number and at the same level as the terminal to be synchronized, for time synchronization includes: From the clock sources of the time synchronization terminals corresponding to the time synchronization terminal, select the same level terminal clock source that is closest to the time synchronization terminal and has the same number of clock sources as the time synchronization terminal clock source, as well as the fixed upper-level terminal clock source for time synchronization.
7. The time synchronization method integrating power line carrier technology as described in claim 1, characterized in that, The number of clock sources for the time synchronization terminal can be expressed as: Among them, B j,m,t For the terminal d to be synchronized at time t... j The channel bandwidth h between the m-th peer terminal clock source and the m-th peer terminal clock source j,m,t Let I be the channel gain at time t. j,m,t For the electromagnetic interference at time t, For the terminal d to be synchronized at the previous t-1 time points j The local timekeeping performance average, This is the floor function, where κ and λ are preset weight parameters used to keep the variables on the same order of magnitude.
8. The time synchronization method integrating power line carrier technology as described in claim 5, characterized in that, The second historical local timekeeping situation at the next moment can be represented as: in, For the time synchronization terminal d j Local timekeeping performance metrics at time t For the time synchronization terminal d j The second historical local timekeeping situation at the next t+1 time. For the time synchronization terminal d j The first historical local timekeeping situation at time t.
9. A time synchronization system integrating power line carrier technology, characterized in that, include: The time synchronization terminal clock source quantity calculation module is used to calculate the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status corresponding to the terminal to be synchronized at the current time; wherein, the first historical local timekeeping status is used to update the second historical local timekeeping status at the next time. The time synchronization module is used to select, from the time synchronization terminal clock sources corresponding to the time synchronization terminal, a terminal clock source of the same number as the time synchronization terminal and of the same level as the time synchronization terminal for time synchronization; The time synchronization terminal clock source quantity calculation module calculates the number of time synchronization terminal clock sources required by the terminal to be synchronized based on the environmental topology changes, power line carrier channel status, and first historical local timekeeping status of the terminal to be synchronized at the current time, including: The time synchronization terminal clock source quantity calculation module quantifies the environmental topology change of the terminal to be synchronized at the current moment into the number of clock sources of the same level terminal that can be synchronized, and quantifies the first historical local timekeeping situation into the statistics of historical local timekeeping over a period of time, and obtains the power line carrier channel status including channel bandwidth, electromagnetic interference and channel gain. The number of time synchronization terminal clock sources required by the terminal to be synchronized is calculated based on the number of time synchronization peer terminal clock sources, the power line carrier channel status, and the historical local timekeeping statistics.
Citation Information
Patent Citations
Clock synchronization method and device
CN111106889A
Multi-clock-source time service method, device, equipment and medium
CN115567141A