A distributed terminal sampling method and system

By using time synchronization signals and synchronization algorithms in the distributed signal acquisition system, adjusting the local clock of the acquisition terminal and performing time compensation, the synchronization performance problems caused by transmission delay in the distributed signal acquisition system are solved, and the synchronization accuracy and real-time performance of the system are improved.

CN119766384APending Publication Date: 2025-04-04YUNNAN POWER GRID CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510041317.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In a distributed signal acquisition system, due to the large number of signal acquisition channels, wide distribution and long distances, the transmission delay between different acquisition node channels is large, which affects the synchronization performance of data acquisition.

Method used

The centralized monitoring management unit sends time synchronization signals to multiple acquisition terminals. After receiving the acquisition terminal, the acquisition terminal records the reception time and replys to the timestamp. The centralized monitoring management unit adjusts the local clock of the acquisition terminal by calculating the time difference between transmission and reception, and performs time compensation through the synchronization algorithm.

Benefits of technology

It significantly improves the synchronization accuracy and real-time nature of distributed sampling, reduces construction and maintenance costs, enhances the stability and reliability of the system, and has good flexibility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766384A_ABST
    Figure CN119766384A_ABST
Patent Text Reader

Abstract

The present invention relates to the field of synchronous sampling technology, in particular to a distributed terminal sampling method and system, which includes a collection terminal performing time compensation through a synchronization algorithm. The beneficial effects of the present invention are that the synchronization accuracy and real-time performance of distributed sampling are significantly improved through precise time synchronization and sampling triggering mechanism, the construction and maintenance costs are reduced, the stability and reliability of the system are enhanced, and at the same time, the system has good flexibility and scalability, can adapt to different network conditions and communication media, and provides an efficient and economical technical means for monitoring key infrastructure such as power systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of synchronous sampling, and in particular to a distributed terminal sampling method and system. Background Art

[0002] With the development of power automation technology, higher requirements are put forward for the accuracy and uniformity of time in substations. Only when various automation equipment in the power system, such as fault recorders, relay protection devices, RTU microcomputer monitoring systems, etc., adopt a unified time base, can the cause and process of the accident be accurately analyzed based on the fault recording data and the sequence and accurate time of the actions of each switch and circuit breaker when an accident occurs. For distributed acquisition terminals, if the synchronous sampling of each terminal can be guaranteed, the problems occurring on site can be quickly analyzed and the cause of the accident can be located more accurately.

[0003] In a distributed signal acquisition system, there are many signal acquisition channels, which are widely distributed and far apart, and the transmission delay between channels of different acquisition nodes is large. When collecting data, the synchronization performance between the data of each channel has a significant impact on the subsequent data processing such as beamforming. Therefore, the synchronous acquisition of signals is the core of the entire distributed signal acquisition system. Summary of the invention

[0004] In view of the above problems or problems existing in the prior art, the present invention is proposed.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: In a first aspect, a distributed terminal sampling method includes a centralized monitoring management unit sending a time synchronization signal to a plurality of collection terminals; After receiving the time synchronization signal, the acquisition terminal records the receiving time and replies with a timestamp; The centralized monitoring management unit adjusts the local clock of the acquisition terminal by calculating the time difference between sending and receiving; The acquisition terminal uses a synchronization algorithm to perform time compensation based on the difference between the time synchronization signal and the local system time.

[0006] As a preferred solution of the distributed terminal sampling method of the present invention, the centralized monitoring management unit calculates the time difference between sending and receiving and adjusts the local clock of the collection terminal, including: The centralized monitoring management unit sends a synchronous sampling trigger signal; After receiving the synchronous sampling trigger signal, the acquisition terminal performs sampling.

[0007] As a preferred solution of the distributed terminal sampling method of the present invention, the time synchronization signal is a B code synchronization message, wherein the B code synchronization message includes time information and identification information.

[0008] As a preferred solution of the distributed terminal sampling method of the present invention, wherein: the centralized monitoring management unit sends a synchronous sampling trigger signal, which is based on the rising edge after the P0 code element of the B code; The synchronous sampling trigger signal also includes a predetermined time delay to compensate for signal transmission delay.

[0009] As a preferred solution of the distributed terminal sampling method of the present invention, the synchronization algorithm includes decoding of the B code signal and extraction of the time stamp.

[0010] In a second aspect, the present invention provides a distributed terminal sampling system, comprising: A sending module, used for the centralized monitoring management unit to send time synchronization signals to multiple acquisition terminals; The recording module is used for the acquisition terminal to perform time compensation according to the difference between the time synchronization signal and the local system time through the synchronization algorithm; An adjustment module is used for the centralized monitoring management unit to adjust the local clock of the acquisition terminal by calculating the time difference between sending and receiving; The compensation module is used for the acquisition terminal to perform time compensation according to the difference between the time synchronization signal and the local system time through a synchronization algorithm.

[0011] In a third aspect, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0012] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when the computer program is executed by a processor.

[0013] The beneficial effects of the present invention are as follows: through precise time synchronization and sampling trigger mechanism, the synchronization accuracy and real-time performance of distributed sampling are significantly improved, the construction and maintenance costs are reduced, the stability and reliability of the system are enhanced, and at the same time, it has good flexibility and scalability, and can adapt to different network conditions and communication media, providing an efficient and economical technical means for monitoring key infrastructure such as power systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them: Figure 1It is a flowchart of the centralized monitoring management unit.

[0015] Figure 2 This is a flow chart of the acquisition terminal.

[0016] Figure 3 It is a connection diagram between the centralized monitoring management unit and the collection terminal.

[0017] Figure 4 Schematic diagram of the message model for sending B code synchronization.

[0018] Figure 5 Schematic diagram of trigger signal.

[0019] Figure 6 This is the timing diagram of the B code signal and the synchronous sampling trigger signal.

[0020] Figure 7 A schematic diagram of the internal structure of a computer device. DETAILED DESCRIPTION

[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0023] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0024] Example 1 Reference Figure 1 to Figure 6 , is the first embodiment of the present invention, which provides a distributed terminal sampling method, which includes the acquisition terminal performing time compensation through a synchronization algorithm, specifically, S1. The centralized monitoring management unit sends a time synchronization signal to multiple acquisition terminals, wherein the centralized monitoring management unit and the distributed acquisition terminals are connected via shielded twisted pair cables.

[0025] Furthermore, the time synchronization signal is a B-code synchronization message, wherein the B-code synchronization message includes time information and identification information.

[0026] S2. After receiving the time synchronization signal, the acquisition terminal records the receiving time and replies with a timestamp.

[0027] It should be noted that after receiving the B-code synchronization message, the acquisition terminal parses the message and uses the parsing result to adjust the local clock.

[0028] S3. The centralized monitoring management unit adjusts the local clock of the acquisition terminal by calculating the time difference between sending and receiving.

[0029] Combined with Figure 3 and attached Figure 4 Understand that the centralized monitoring management unit sends B code synchronization messages to the distributed collection terminals respectively, the time is recorded as T1, and the distributed collection terminals receive it and record it as T2, where d1 is the delay of the centralized monitoring management unit sending, d2 is the delay of the distributed collection terminal sending reply, t is the time deviation between the centralized management unit and the distributed collection terminal, and D is the round-trip time between the centralized management unit and the distributed collection terminal, that is: , In the formula, T3: indicates the local time recorded by the acquisition terminal after receiving the B-code synchronization message sent by the centralized monitoring management unit. This time point is the time when the acquisition terminal receives the synchronization signal and prepares to reply; T4: indicates the time when the acquisition terminal processes (such as parsing the B-code signal, calculating the time difference, etc.) and sends a reply message to the centralized monitoring management unit after recording the T3 time. This time point is the time when the acquisition terminal completes the synchronization processing and sends a reply.

[0030] Assuming that the transmission time between the centralized monitoring management unit and the distributed collection terminal is equal, that is, d1=d2, we can get: t=(T2-T1)-(T3-T4) / 2, d=(T2-T1)+(T4-T3), Further we get: t=(T2-T1)-d1=(T2-T1)-d / 2, From the above formula, we can conclude that t is related to the values ​​of T2, T1, T4, and T3, but has nothing to do with the difference between T2 and T3. Therefore, the distributed acquisition terminal can calculate the time difference t through T1, T2, T3, and T4 to adjust the local clock.

[0031] Preferably, the distributed acquisition terminal synchronous sampling technology is based on B-code synchronization messages, does not require additional wiring, and reduces the construction workload.

[0032] Furthermore, the centralized monitoring management unit calculates the time difference between sending and receiving and adjusts the local clock of the acquisition terminal, including: The centralized monitoring management unit sends a synchronous sampling trigger signal, wherein the signal may be an electrical signal, an optical signal or other forms of communication signals; After receiving the synchronous sampling trigger signal, the acquisition terminal performs sampling.

[0033] It should be noted that the acquisition terminal performs a local clock calibration before starting the sampling process.

[0034] It should be further explained that the centralized monitoring and management unit sends the timing signal to the distributed acquisition terminal in the form of B code. The B code signal is a time string code of one frame per second. Its basic code elements are "0" code element, "1" code element and "P" code element. Each code element occupies 10ms, and the frame string code contains 100 code elements.

[0035] Preferably, a synchronous triggering mechanism is adopted to quickly start sampling in the entire system, thereby improving the response speed and overall performance of the system.

[0036] Further, the centralized monitoring management unit sends a synchronous sampling trigger signal, which is based on the rising edge after the P0 code element of the B code; The synchronous sampling trigger signal also includes a predetermined time delay to compensate for the signal transmission delay, that is, when the centralized monitoring management unit sends a sampling trigger signal to the acquisition terminal, this signal does not immediately cause the acquisition terminal to start sampling, but includes an additional time delay. This time delay is pre-set in order to compensate for the delay experienced by the signal from the control unit to the acquisition terminal.

[0037] It should be noted that the distributed acquisition terminal adjusts the local clock through T1, T2, T3, and T4. After the adjustment is completed, the rising edge after the B code P0 is judged as the trigger signal for synchronous sampling. The trigger signal is as shown in the attached Figure 5 shown.

[0038] S4. The acquisition terminal uses a synchronization algorithm to perform time compensation based on the difference between the time synchronization signal and the local system time.

[0039] Furthermore, the synchronization algorithm includes decoding of the B-code signal and extraction of the timestamp.

[0040] It should be noted that the distributed acquisition terminal performs acquisition by judging the rising edge. Since the terminal needs to store, parse, and forward the transmitted signal, synchronization errors may occur due to the asynchrony of the actual execution of instructions.

[0041] Combined with Figure 6 The start signal is triggered by the sampling clock edge. If the start signal misses the edge of the current clock, a sampling clock error will occur.

[0042] It should be further explained that the synchronization algorithm first uses the synchronization signal as the signal reference. , … The distributed acquisition terminal receives the B code signal from the timing device, triggers an external interrupt, and records the current timestamp. ,… . Further decode the signal, extract the time information such as hours, minutes, and seconds, and obtain the B code time; obtain the local system time, and calculate the difference between the B code time and the current time ,… , after compensating the time separately, the delay Sampling starts at the moment of the start, sampling ends, data storage, calculation and delay Data is sent all the time. , It must be longer than the time it takes for the program to parse the B code, store the sampled data, and perform calculations.

[0043] Preferably, the synchronization algorithm can enable the acquisition terminal to accurately sample at the same time or at a predetermined time difference even in the presence of clock deviation and transmission delay. Furthermore, the synchronization algorithm can adjust parameters according to various application scenarios to ensure the reliability and applicability of the system.

[0044] In summary, the beneficial effects of the distributed terminal sampling method of the present invention significantly improve the synchronization accuracy and real-time performance of distributed sampling through precise time synchronization and sampling trigger mechanism, reduce construction and maintenance costs, enhance the stability and reliability of the system, and at the same time have good flexibility and scalability, can adapt to different network conditions and communication media, and provide an efficient and economical technical means for monitoring key infrastructure such as power systems.

[0045] Example 2 This embodiment provides a distributed terminal sampling system, which includes a sending module for a centralized monitoring management unit to send a time synchronization signal to multiple collection terminals; The recording module is used for the acquisition terminal to perform time compensation according to the difference between the time synchronization signal and the local system time through the synchronization algorithm; An adjustment module is used for the centralized monitoring management unit to adjust the local clock of the acquisition terminal by calculating the time difference between sending and receiving; The compensation module is used for the acquisition terminal to perform time compensation according to the difference between the time synchronization signal and the local system time through a synchronization algorithm.

[0046] The above-mentioned unit modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above-mentioned modules.

[0047] Example 3 This embodiment provides a computer device, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a distributed terminal sampling method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0048] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements: a centralized monitoring management unit sends a time synchronization signal to multiple collection terminals; after receiving the time synchronization signal, the collection terminal records the receiving time and replies with a timestamp; the centralized monitoring management unit adjusts the local clock of the collection terminal by calculating the time difference between sending and receiving; the collection terminal performs time compensation according to the difference between the time synchronization signal and the local system time through a synchronization algorithm.

[0049] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A distributed terminal sampling method, characterized in that: include, The centralized monitoring management unit sends time synchronization signals to multiple acquisition terminals; After receiving the time synchronization signal, the acquisition terminal records the receiving time and replies with a timestamp; The centralized monitoring management unit adjusts the local clock of the acquisition terminal by calculating the time difference between sending and receiving; The acquisition terminal uses a synchronization algorithm to perform time compensation based on the difference between the time synchronization signal and the local system time.

2. The distributed terminal sampling method according to claim 1, characterized in that: The centralized monitoring management unit calculates the time difference between sending and receiving and adjusts the local clock of the acquisition terminal, including: The centralized monitoring management unit sends a synchronous sampling trigger signal; After receiving the synchronous sampling trigger signal, the acquisition terminal performs sampling.

3. The distributed terminal sampling method according to claim 2, characterized in that: The time synchronization signal is a B-code synchronization message, wherein the B-code synchronization message includes time information and identification information.

4. The distributed terminal sampling method according to claim 3, characterized in that: The centralized monitoring management unit sends a synchronous sampling trigger signal based on the rising edge after the P0 code element of the B code; The synchronous sampling trigger signal also includes a predetermined time delay to compensate for signal transmission delay.

5. The distributed terminal sampling method according to claim 4, characterized in that: The synchronization algorithm includes decoding of B code signal and extraction of time stamp.

6. A system using the distributed terminal sampling method according to any one of claims 1 to 5, characterized in that: include, A sending module, used for the centralized monitoring management unit to send time synchronization signals to multiple acquisition terminals; The recording module is used for collecting the time compensation of the terminal according to the difference between the time synchronization signal and the local system time through the synchronization algorithm; An adjustment module is used for the centralized monitoring management unit to adjust the local clock of the acquisition terminal by calculating the time difference between sending and receiving; The compensation module is used for the acquisition terminal to perform time compensation according to the difference between the time synchronization signal and the local system time through a synchronization algorithm.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Distributed power quality monitoring terminal and monitoring method thereof

    CN120414891A