A time synchronization method and system based on direct current IRIG-B code time source positioning
By transmitting DC IRIG-B codes containing identification identifiers in the power system and combining them with the ping-pong algorithm and SCD configuration file, the problem of inaccurate time source localization of DC IRIG-B codes was solved, enabling accurate localization of time topology relationships and efficient fault diagnosis.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NARI NANJING CONTROL SYSTEM CO LTD
- Filing Date
- 2023-05-31
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, DC IRIG-B code time source positioning does not have an identification identifier, which leads to arbitrary access to the time synchronization topology of the time synchronization device, increasing the workload of fault diagnosis and reducing the efficiency of time synchronization fault handling.
By transmitting a DC IRIG-B code containing an identification identifier between the clock device and the time-synchronized device, the time deviation is obtained using the ping-pong algorithm, and a time synchronization status monitoring topology map is generated by combining the whole-station SCD configuration file, thus realizing the accurate location and monitoring of time deviation and time source information.
It improves the efficiency of troubleshooting time synchronization faults, and can quickly identify the time synchronization status of one or more time-synchronized devices, ensuring the accurate positioning and synchronization status monitoring of the clock device and the time-synchronized device.
Smart Images

Figure CN116633476B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a time synchronization method and system based on DC IRIG-B code time source positioning, belonging to the field of power automation time synchronization technology. Background Technology
[0002] With the continuous improvement of power system automation, the reliance of power grid automation systems on automated equipment is increasing. This necessitates accurate, safe, and reliable time sources to provide precise time references for various power equipment. Especially after the deployment of new-generation dispatch systems, applications such as dispatch state estimation place significantly higher demands on the time synchronization of substation measurement data, requiring the collection of unified cross-sectional data. The "high-voltage and high-frequency" characteristics of the power grid bring new dynamic stability issues such as subsynchronous oscillations and broadband oscillations, requiring precise synchronization of wide-area synchronous broadband measurement data for analysis. Lightning location and two-terminal traveling wave fault location applications also have high requirements for the time synchronization of data sampling. In the distribution network sector, with the large-scale integration of distributed renewable energy generation, energy storage, and electric vehicles, high-precision synchronized micro PMUs are being deployed to collect power data such as voltage and current at distribution network nodes with precise synchronization time scales, serving real-time monitoring, situational awareness, and fault analysis and processing of the distribution network. All these applications rely on accurate, safe, and reliable time synchronization technology.
[0003] To address issues like "false synchronization" in time-synchronized devices, engineering applications have introduced monitoring methods such as 1PPS monitoring, IRIG-B code monitoring, triggered SOE monitoring, and the "ping-pong method" for NTP / GOOSE. These methods have largely solved the problem of monitoring "false synchronization" in time-synchronized devices. However, when a time-synchronized device malfunctions, such as experiencing "false synchronization" or occasional time synchronization interruptions, troubleshooting typically involves re-examining the connection between the clock and the time-synchronized device. This usually involves reviewing design drawings, checking labels, measuring the time synchronization cable, or manually disconnecting and reconnecting the time synchronization cable to reconstruct the time synchronization topology. This is because the DC IRIG-B code synchronization message does not contain configuration information; the time-synchronized device can achieve its time synchronization function by connecting any pair of available time synchronization contacts, leading to numerous instances of "arbitrary" connections in engineering projects.
[0004] Because of this situation, troubleshooting time synchronization faults requires additional work, significantly reducing the efficiency of handling such faults. Therefore, how to conveniently and accurately locate the time source and prevent "arbitrary" access is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide a time synchronization method and system based on DC IRIG-B code time source positioning.
[0006] To solve the above-mentioned technical problems, the present invention provides a time synchronization method based on DC IRIG-B code time source localization, comprising:
[0007] Obtain the DC IRIG-B code containing the identity identifier sent by the clock device, and determine the clock device's own time source identity identifier based on the DC IRIG-B code containing the identity identifier;
[0008] The DC IRIG-B code containing the identity identifier is sent to the time-synchronized device. After the time-synchronized device parses the DC IRIG-B code containing the identity identifier, it obtains the clock device identity identifier of the time synchronization message used by the time-synchronized device. Based on the clock device identity identifier of the time synchronization message used by the time-synchronized device, the time source information used by the time-synchronized device is located.
[0009] The time synchronization deviation between the clock device and the time-receiving device is obtained using the ping-pong algorithm.
[0010] The time synchronization status monitoring results are determined based on the time source identification of the clock device, the clock device identification of the synchronization message used by the time-synchronized device, and the time synchronization deviation between the clock device and the time-synchronized device.
[0011] Based on the time synchronization status monitoring results and the time source information used by the time synchronization device, a time synchronization status timing and monitoring topology map of the entire station is generated using the pre-acquired full-station SCD configuration file as a static data source.
[0012] Furthermore, the acquisition of the DC IRIG-B code containing the identification identifier sent by the clock acquisition device includes:
[0013] Acquire the time information TOD and second pulse 1PPS signal output by the clock device, as well as the application functions set by the clock device;
[0014] The information TOD′ signal that needs to be encoded is determined based on the time information TOD, the second pulse 1PPS signal, and the application function.
[0015] Based on the 1PPS signal and the TOD′ signal, the DC IRIG-B signal containing the identity identifier is obtained by encoding using the symbol rules of DL / T 1100.1 DC IRIG-B code.
[0016] Furthermore, before sending the DC IRIG-B signal containing the identification identifier to the time synchronization device, the DC IRIG-B signal containing the identification identifier is subjected to level conversion, isolation, and expansion processing, and the processed DC IRIG-B signal containing the identification identifier is transmitted to the time synchronization device via optical fiber / RS485.
[0017] Further, determining the time synchronization status monitoring result based on the time source identity identifier of the clock device, the clock device identity identifier used by the time-receiving device for the time-reporting message, and the time synchronization deviation between the clock device and the time-receiving device includes:
[0018] Obtain the time source identity identifier n of the clock device, the time source identity identifier m located in the time-reporting message sent by the time-receiving device, and the time synchronization deviation between the clock device and the time-receiving device to determine the time synchronization status monitoring result x;
[0019] Determine the time synchronization deviation alarm status U, including: when |x| < p, set U to 0, otherwise set U to 1; where p is the time synchronization deviation alarm threshold;
[0020] Determine the time service alarm status V, including: when n = m, set V to 0, otherwise set V to 1;
[0021] The time synchronization status monitoring result of the clock device and the time-receiving device is constituted by the time synchronization deviation alarm status U and the time service alarm status V.
[0022] Further, generating a full-station time synchronization status timing and monitoring topology map based on the time synchronization status monitoring result and the time source information used by the time-receiving device, with the pre-obtained full-station SCD configuration file as the static data source, includes:
[0023] Analyze the full-station configuration SCD file to obtain the IED name, IP address, and APPID information of the time-receiving device;
[0024] Based on the time synchronization status monitoring result, with the IP address of the NTP message or the APPID information of the GOOSE message as the filtering condition, obtain the IED name of the time-receiving device, and automatically generate a full-station timing and monitoring topology map;
[0025] Mark the time source identity identifier m located in the time-reporting message sent by the time-receiving device, the time synchronization deviation between the clock device and the time-receiving device to determine the time synchronization status monitoring result x, the time synchronization deviation alarm status U, the time service alarm status V, and the corresponding IED name, IP address, and APPID information of the time-receiving device on the full-station timing and monitoring topology map to obtain the final full-station time synchronization status timing and monitoring topology map.
[0026] Further, encoding using the code element rules of DL / T 1100.1 DC IRIG-B code includes:
[0027] Encoding is performed according to binary, with the lower bits in front, using the reserved code element bits 76 - 78 in the code element rules of DL / T 1100.1 DC IRIG-B code.
[0028] Furthermore, the determination of the NTP / GOOSE message includes:
[0029] The clock device acts as a client of the NTP protocol, and the device being synchronized acts as a server of the NTP protocol. It is determined that the interaction between the clock device and the device being synchronized uses NTP messages.
[0030] If the time-receiving device is a process layer device, then the time-receiving device uses the GOOSE protocol to determine that the interaction between the clock device and the time-receiving device uses GOOSE messages.
[0031] Furthermore, the NTP message uses the Referenceidentifier field;
[0032] The extended data type of the GOOSE message is INT8.
[0033] A time synchronization system based on DC IRIG-B code time source localization includes:
[0034] The first acquisition module is used to acquire the DC IRIG-B code containing the identity identifier sent by the clock device, and determine the clock device's own time source identity identifier based on the DC IRIG-B code containing the identity identifier.
[0035] The parsing module is used to send the DC IRIG-B code containing the identity identifier to the time-controlled device, obtain the clock device identity identifier of the time synchronization message used by the time-controlled device after parsing the DC IRIG-B code containing the identity identifier, and determine the time source information used by the time-controlled device based on the clock device identity identifier of the time synchronization message used by the time-controlled device.
[0036] The second acquisition module is used to obtain the time synchronization deviation between the clock device and the time-synchronized device using the ping-pong algorithm.
[0037] The determination module is used to determine the time synchronization status monitoring result based on the time source identity of the clock device, the clock device identity of the synchronization message used by the time-synchronization device, and the time synchronization deviation between the clock device and the time-synchronization device.
[0038] The generation module is used to generate a time synchronization status timing and monitoring topology map of the entire station based on the time synchronization status monitoring results and the time source information used by the time synchronization device, using a pre-acquired full-station SCD configuration file as a static data source.
[0039] Furthermore, the clock device includes: a BeiDou / GPS satellite module / IRIG-B code decoding module, a CPU module, an encoding module, and an IRIG-B code module;
[0040] The Beidou / GPS satellite module / IRIG-B code decoding module is used to output the time information TOD and the 1PPS signal to the bus;
[0041] The CPU module is used to obtain the time information TOD and the 1PPS information from the bus for processing application functions, configure the clock identity identification parameters, and output the information TOD' signal to be encoded to the encoding module. The information TOD' signal to be encoded is determined according to the time information TOD, the 1PPS signal, and the application function;
[0042] The encoding module is used to obtain the 1PPS signal and the TOD' signal from the bus and the CPU module respectively. The encoding rule is encoded according to the code element rule of the DC IRIG-B code in DL / T 1100.1, and the encoded DC IRIG-B code containing the identity identification is output to the bus;
[0043] The IRIG-B code module is used to obtain the DC IRIG-B signal containing the identity identification from the bus, perform level conversion, isolation, and expansion processing on the DC IRIG-B signal containing the identity identification, and transmit the processed DC IRIG-B signal containing the identity identification to the time-receiving device in the form of optical fiber / RS485.
[0044] Further, the clock device further includes: a time monitoring module;
[0045] The time monitoring module is used to
[0046] obtain the DC IRIG-B signal containing the identity identification from the bus, and determine the time source identity identification n of the clock device according to the DC IRIG-B code containing the identity identification;
[0047] obtain the NTP / GOOSE message replied by the time-receiving device, obtain the time source information of the time-receiving device according to the NTP / GOOSE message, and determine the time source identity identification m located in the time-reporting message sent by the time-receiving device according to the time source information of the time-receiving device;
[0048] use the ping-pong algorithm to obtain the time synchronization deviation x between the clock device and the time-receiving device;
[0049] determine the time synchronization deviation alarm status U, including: when |x| < p, U is set to 0, otherwise U is set to 1; where p is the time synchronization deviation alarm threshold;
[0050] determine the time service alarm status V, including: when n = m, V is set to 0, otherwise V is set to 1;
[0051] The time synchronization status monitoring results are determined by the time discrepancy alarm status U and the time synchronization service alarm status V, which constitute the time discrepancy between the clock device and the time-synchronized device.
[0052] A computer-readable storage medium for storing one or more programs, characterized in that the one or more programs include instructions that, when executed by a computing device, cause the computing device to perform any of the methods described.
[0053] A computer device, comprising,
[0054] One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for performing any of the methods described.
[0055] The beneficial effects achieved by this invention are as follows:
[0056] The time-synchronized device uploads its time source to the monitoring system to facilitate troubleshooting in case of malfunctions. Advanced applications for whole-station time synchronization monitoring and fault diagnosis can be applied by using the time synchronization deviation results and time source information of all time-synchronized devices at the station. For example, if a single time-synchronized device has a time synchronization deviation, it can be considered a time synchronization fault of the time-synchronized device; however, if multiple time-synchronized devices with the same time source fail, it can be considered a clock fault. Attached Figure Description
[0057] Figure 1 This is a schematic diagram of the frame of the DC IRIG-B code clock device with identification of the present invention;
[0058] Figure 2 This is a schematic diagram of the time synchronization system of the present invention. Detailed Implementation
[0059] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0060] like Figure 1 As shown, the system of the present invention includes one or more clock devices, generally composed of multiple devices; it includes one or more time-synchronized devices (interval layer devices such as protection, measurement and control, and maintenance and testing devices, and process layer devices such as merging units, intelligent terminals, and integrated intelligent systems). Conventional substations generally have multiple interval layer time-synchronized devices, while intelligent substations generally include both multiple interval layer time-synchronized devices and multiple process layer time-synchronized devices; it includes a monitoring system (monitoring backend, intelligent gateway, maintenance substation, and other monitoring and communication equipment), generally consisting of dual monitoring backends A and B and an intelligent gateway. In areas with suitable conditions, there may be auxiliary monitoring equipment such as maintenance substations.
[0061] In this system, all clock devices send a DC IRIG-B code containing an identification identifier to the time-synchronized device. This identifier can be flexibly configured via the device's LCD panel or configuration file, ensuring the uniqueness of each clock's identifier across the entire station. Simultaneously, the clock devices are responsible for sending and receiving NTP / GOOSE messages interacting with the time-synchronized device. NTP and GOOSE messages can be implemented using a common board or deployed on separate boards; this invention uses a common board. Finally, the clock devices obtain the time synchronization status of the time-synchronized device through a time status monitoring algorithm and send the result to the monitoring system.
[0062] When the time-synchronized device parses the received DC IRIG-B code, it obtains the identification of the clock device to which the time message belongs and locates the time source information it uses. Subsequently, the time source information is returned to the clock device as a parameter in the NTP / GOOSE protocol message used for interaction with the clock device. Finally, the time source information is sent to the monitoring system.
[0063] The monitoring system uses the time synchronization status monitoring results and time source information sent by the clock device and the time-synchronized device to generate a topology map of the time synchronization status monitoring of the entire station, with the whole station SCD configuration file as the static data source.
[0064] like Figure 2 As shown. A method for time source localization based on DC IRIG-B code includes the following steps: Step 1: The clock device sends a DC IRIG-B code containing an identification identifier to the time-controlled device.
[0065] 2-1: The BeiDou / GPS satellite module or IRIG-B code decoding module of the clock device outputs the time information (TOD) and pulse-of-seconds (1PPS) signals to the device bus. In this invention, the master clock device uses the BeiDou / GPS satellite module for time synchronization, while the slave clock device uses the IRIG-B code decoding module. The IRIG-B code synchronization message of the slave clock is obtained from the master clock. The signals output by the BeiDou / GPS satellite module to the device bus are generally 3.3V serial port messages and 1PPS phase information, while the IRIG-B code decoding module generally uses fiber optic cable to receive the DC IRIG-B code signal from the master clock, thereby obtaining the time information (TOD) and pulse-of-seconds (1PPS) signals.
[0066] 2-2: The CPU module of the clock device obtains TOD and 1PPS information from the bus for application function processing, such as leap second function, clock adjustment, and other basic application functions. In addition, important clock identification parameters are also configured in this module. The configuration method of this invention uses a liquid crystal panel human-machine interface, setting a unique identification for the entire station according to the design drawings. In step five, the identification sent by the clock device can be verified in the monitoring system to ensure uniqueness. Finally, the information to be encoded, i.e., the TOD' signal, is output to the encoding module. 2-3: The encoding module of the clock device obtains the 1PPS signal and the TOD' signal from the device bus and CPU module respectively. The encoding rule is based on the symbol rules of DL / T 1100.1 DC IRIG-B code. The clock identification parameter in TOD' is encoded using binary, with the least significant bit first, for the reserved 76th to 78th bits, as shown in Table 1. Finally, the encoded DC IRIG-B code containing the identification is output to the device bus.
[0067] Table 1. DC IRIG-B code symbol table with identification.
[0068]
[0069]
[0070] 2-4: The IRIG-B code module of the clock device obtains a DC IRIG-B signal containing identification information from the device bus. After processing through level conversion, isolation, and expansion, it is provided to the time-tracking devices in the system via fiber optic / RS485. In the system, the number of time-tracking devices is generally much larger than the clock device itself. Therefore, the IRIG-B code module is deployed on the device in the form of a board. The DC IRIG-B code board of this invention contains 18 channels, and the device can deploy a maximum of 10 identical boards, all using the same method to obtain the DC IRIG-B signal containing identification information from the device bus.
[0071] Step 2: The DC IRIG-B code signal with identification is transmitted to the time synchronization device via optical fiber or RS485 time synchronization cable. When the time synchronization module of the time synchronization device parses the DC IRIG-B code, in addition to parsing the normal time information such as year, month, day, hour, minute, and second and obtaining 1PPS phase information, it further parses the reserved code bits 76-78 to obtain the time source information of the time synchronization message used by the device.
[0072] Step 3: The time monitoring module of the clock device is used to monitor the time synchronization deviation of the time-synchronized device and obtain the time source identification.
[0073] 2-5: The time monitoring module obtains the DC IRIG-B signal containing the identity identifier from the device bus. The module acts as a client of the NTP protocol, and the device to be time-synchronized acts as the server of the NTP protocol. Or if the device to be time-synchronized is a process layer device, the GOOSE protocol can be used to obtain the time information and time source information of the device to be time-synchronized through the publish / subscribe mechanism.
[0074] 2-6: The time monitoring module obtains the time synchronization deviation between the clock and the device to be time-synchronized by means of the ping-pong algorithm. In addition, the time source information is obtained from the Reference identifier field (Reference ID) in the NTP packet replied by the device to be time-synchronized. The NTP standard stipulates that this field can be extended outside the predefined identifier, so this packet is compatible with the conventional NTP packet, as described in Table 2. Or if the device to be time-synchronized is a process layer device, the time source information modeling information is added to the GOOSE publish packet, as described in Table 3. Table 2 NTP with identity identifier
[0075] Message format
[0076]
[0077]
[0078] Table 3 GOOSE message with identity identifier published by the device to be time-synchronized
[0079]
[0080]
[0081]
[0082] Step 4: Time status monitoring algorithm of the clock device. It can be obtained in step 2-5 that the time source identity identifier n of the time monitoring module itself, that is, the clock device number; it can be obtained in step 2-6 that the time source identity identifier m located in the time synchronization packet sent by the device to be time-synchronized; it can be obtained in step 2-6 that the time synchronization deviation x between the clock device and the device to be time-synchronized. Then the time status monitoring algorithm is as follows:
[0083] For the time synchronization deviation alarm status U, when |x| < p, U is set to 0, otherwise U is set to 1; where p is the time synchronization deviation alarm threshold, which can be obtained through configuration.
[0084] For the time service alarm status V, when n == m, V is set to 0, otherwise V is set to 1.
[0085] Step 5: The monitoring system generates a station-wide time synchronization status time synchronization and monitoring topology map. By parsing the station-wide SCD file, the monitoring system obtains descriptive information such as the IED name, IP address, and APPID of the time-synchronized devices, providing static data for automatically generating the time monitoring topology map. Based on the time synchronization status of the time-synchronized devices sent by the clock device, and using the IP address of the NTP packet or the APPID information of the GOOSE packet as a filtering condition, the monitoring system obtains the descriptive information such as the IED name of the time-synchronized devices and automatically generates a station-wide time synchronization status time synchronization and monitoring topology map. The system then marks the time source identification m, time deviation x, time deviation alarm status U, time synchronization service alarm status V of the time-synchronized devices sent by the clock device, as well as the corresponding IED name, IP address, and APPID descriptive information of the time-synchronized devices, onto the topology map.
[0086] Accordingly, the present invention also provides a time synchronization system based on DC IRIG-B code time source localization, comprising:
[0087] The first acquisition module is used to acquire the DC IRIG-B code containing the identity identifier sent by the clock device, and determine the clock device's own time source identity identifier based on the DC IRIG-B code containing the identity identifier.
[0088] The parsing module is used to send the DC IRIG-B code containing the identity identifier to the time-controlled device, obtain the clock device identity identifier of the time synchronization message used by the time-controlled device after parsing the DC IRIG-B code containing the identity identifier, and determine the time source information used by the time-controlled device based on the clock device identity identifier of the time synchronization message used by the time-controlled device.
[0089] The second acquisition module is used to obtain the time synchronization deviation between the clock device and the time-synchronized device using the ping-pong algorithm.
[0090] The determination module is used to determine the time synchronization status monitoring result based on the time source identity of the clock device, the clock device identity of the synchronization message used by the time-synchronization device, and the time synchronization deviation between the clock device and the time-synchronization device.
[0091] The generation module is used to generate a time synchronization status timing and monitoring topology map of the entire station based on the time synchronization status monitoring results and the time source information used by the time synchronization device, using a pre-acquired full-station SCD configuration file as a static data source.
[0092] The clock device includes: a BeiDou / GPS satellite module / IRIG-B code decoding module, a CPU module, an encoding module, and an IRIG-B code module;
[0093] The Beidou / GPS satellite module / IRIG-B code decoding module is used to output the time information TOD and the 1PPS signal to the bus;
[0094] The CPU module is used to obtain the time information TOD and the 1PPS information from the bus for processing application functions, configure the clock identity identification parameters, and output the information TOD' signal to be encoded to the encoding module. The information TOD' signal to be encoded is determined according to the time information TOD, the 1PPS signal, and the application function;
[0095] The encoding module is used to obtain the 1PPS signal and the TOD' signal from the bus and the CPU module respectively. The encoding rule is encoded according to the code element rule of the DL / T 1100.1 DC IRIG-B code, and the encoded DC IRIG-B code containing the identity identification is output to the bus;
[0096] The IRIG-B code module is used to obtain the DC IRIG-B signal containing the identity identification from the bus, perform level conversion, isolation, and expansion processing on the DC IRIG-B signal containing the identity identification, and transmit the processed DC IRIG-B signal containing the identity identification to the time-synchronized device in the form of optical fiber / RS485.
[0097] The clock device further includes: a time monitoring module;
[0098] The time monitoring module is used to
[0099] Obtain the DC IRIG-B signal containing the identity identification from the bus, and determine the time source identity identification n of the clock device according to the DC IRIG-B code containing the identity identification;
[0100] Obtain the NTP / GOOSE message replied by the time-synchronized device, obtain the time source information of the time-synchronized device according to the NTP / GOOSE message, and determine the time source identity identification m located in the time report message sent by the time-synchronized device according to the time source information of the time-synchronized device;
[0101] Use the ping-pong algorithm to obtain the time synchronization deviation x between the clock device and the time-synchronized device;
[0102] Determine the time synchronization deviation alarm status U, including: when |x| < p, U is set to 0, otherwise U is set to 1; where p is the time synchronization deviation alarm threshold;
[0103] Determine the time synchronization service alarm status V, including: when n = m, V is set to 0, otherwise V is set to 1;
[0104] The time synchronization status monitoring results are determined by the time discrepancy alarm status U and the time synchronization service alarm status V, which constitute the time discrepancy between the clock device and the time-synchronized device.
[0105] Accordingly, the present invention also provides a computer-readable storage medium for storing one or more programs, said one or more programs including instructions that, when executed by a computing device, cause the computing device to perform any of the methods described.
[0106] Accordingly, the present invention also provides a computer device, comprising,
[0107] One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for performing any of the methods described.
[0108] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can 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.
[0109] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0110] 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.
[0111] 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.
[0112] 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 based on DC IRIG-B code time source localization, characterized in that, Including: Obtain the DC IRIG-B code containing the identity identifier sent by the clock device, and determine the self-time source identity identifier of the clock device according to the DC IRIG-B code containing the identity identifier; Send the DC IRIG-B code containing the identity identifier to the time-synchronized device, obtain the clock device identity identifier of the time-reporting message used by the time-synchronized device after the time-synchronized device analyzes the DC IRIG-B code containing the identity identifier, and locate the time source information used by the time-synchronized device according to the clock device identity identifier of the time-reporting message used by the time-synchronized device; Use the ping-pong algorithm to obtain the time synchronization deviation between the clock device and the time-synchronized device; Determine the time synchronization status monitoring result according to the time source identity identifier of the clock device, the clock device identity identifier of the time-reporting message used by the time-synchronized device, and the time synchronization deviation between the clock device and the time-synchronized device; According to the time synchronization status monitoring result and the time source information used by the time-synchronized device, generate a station-wide time synchronization status timing and monitoring topology map with the pre-obtained station-wide SCD configuration file as the static data source.
2. The time synchronization method based on DC IRIG-B code time source localization according to claim 1, characterized in that, The obtaining of the DC IRIG-B code containing the identity identifier sent by the clock device includes: Obtain the time information TOD, the 1PPS signal of the second pulse, and the application function set by the clock device; Determine the information TOD´ signal to be encoded according to the time information TOD, the 1PPS signal, and the application function; Encode according to the 1PPS signal and the TOD´ signal using the code element rule of the DL / T 1100.1 DC IRIG-B code to obtain the DC IRIG-B signal containing the identity identifier.
3. The time synchronization method based on DC IRIG-B code time source localization according to claim 1, characterized in that, Before sending the DC IRIG-B signal containing the identity identifier to the time-synchronized device, perform level conversion, isolation, and expansion processing on the DC IRIG-B signal containing the identity identifier, and transmit the processed DC IRIG-B signal containing the identity identifier to the time-synchronized device in the form of optical fiber or RS485.
4. The time synchronization method based on DC IRIG-B code time source localization according to claim 1, characterized in that, The determining of the time synchronization status monitoring result according to the time source identity identifier of the clock device, the clock device identity identifier of the time-reporting message used by the time-synchronized device, and the time synchronization deviation between the clock device and the time-synchronized device includes: Obtain the time source identity identifier n of the clock device, the time source identity identifier m located in the time-reporting message sent by the time-synchronized device, and the time synchronization deviation between the clock device and the time-synchronized device to determine the time synchronization status monitoring result x; Determine the time synchronization deviation alarm status U, including: when |x| < p, set U to 0, otherwise set U to 1; where p is the time synchronization deviation alarm threshold; Determine the time service alarm status V, including: when n = m, set V to 0, otherwise set V to 1; The time synchronization status monitoring result of the clock device and the time-synchronized device is constituted by the time synchronization deviation alarm status U and the time service alarm status V.
5. The time synchronization method based on DC IRIG-B code time source localization according to claim 4, characterized in that, The generating of the station-wide time synchronization status timing and monitoring topology map according to the time synchronization status monitoring result and the time source information used by the time-synchronized device, with the pre-obtained station-wide SCD configuration file as the static data source, includes: Parse the full-site configuration SCD file to obtain the IED name, IP address, and APPID information of the time-synchronized device; Based on the time synchronization status monitoring results, using the IP address of NTP packets or the APPID information of GOOSE packets as filtering conditions, the IED name of the time-synchronized device is obtained, and a full-site time synchronization and monitoring topology map is automatically generated. The time source identifier m, the time synchronization status monitoring result x (determining the time synchronization deviation between the clock device and the time-synchronized device), the time synchronization deviation alarm status U, the time synchronization service alarm status V, and the corresponding IED name, IP address, and APPID information of the time-synchronized device are marked in the whole-site time synchronization and monitoring topology map to obtain the final whole-site time synchronization status time synchronization and monitoring topology map.
6. The time synchronization method based on DC IRIG-B code time source localization according to claim 2, characterized in that, The encoding using the symbol rules of DL / T 1100.1 DC IRIG-B code includes: In the code element rules of DL / T 1100.1 DC IRIG-B code, the 76th to 78th bits of the reserved code element are encoded in binary with the least significant bit first.
7. The time synchronization method based on DC IRIG-B code time source localization according to claim 2, characterized in that, The communication message specifically refers to an NTP / GOOSE message, and the determination process includes: The clock device acts as a client of the NTP protocol, and the device being synchronized acts as a server of the NTP protocol. It is determined that the interaction between the clock device and the device being synchronized uses NTP messages. If the time-receiving device is a process layer device, then the time-receiving device uses the GOOSE protocol to determine that the interaction between the clock device and the time-receiving device uses GOOSE messages.
8. The time synchronization method based on DC IRIG-B code time source localization according to claim 7, characterized in that, The NTP message uses the Referenceidentifier field; The extended data type of the GOOSE message is INT8.
9. A time synchronization system based on DC IRIG-B code time source localization, characterized in that, include: The first acquisition module is used to acquire the DC IRIG-B code containing the identity identifier sent by the clock device, and determine the clock device's own time source identity identifier based on the DC IRIG-B code containing the identity identifier. The parsing module is used to send the DC IRIG-B code containing the identification identifier to the time-controlled device, obtain the clock device identification identifier of the time synchronization message used by the time-controlled device after parsing the DC IRIG-B code containing the identification identifier, and determine the time source information used by the time-controlled device based on the clock device identification identifier of the time synchronization message used by the time-controlled device. The second acquisition module is used to obtain the time synchronization deviation between the clock device and the time-synchronized device using the ping-pong algorithm; The determination module is used to determine the time synchronization status monitoring result based on the time source identity of the clock device, the clock device identity of the synchronization message used by the time-synchronization device, and the time synchronization deviation between the clock device and the time-synchronization device. The generation module is used to generate a time synchronization status timing and monitoring topology map of the entire station based on the time synchronization status monitoring results and the time source information used by the time synchronization device, using a pre-acquired full-station SCD configuration file as a static data source.
10. The time synchronization system based on DC IRIG-B code time source localization according to claim 9, characterized in that, The clock device includes: a Beidou / GPS satellite module / IRIG-B code decoding module, a CPU module, an encoding module, and an IRIG-B code module; The Beidou / GPS satellite module / IRIG-B code decoding module is used to output the time information TOD and the 1PPS signal to the bus; The CPU module is used to obtain the time information TOD and the 1PPS information from the bus for processing application functions, configure the clock identity identification parameters, and output the information TOD´ signal to be encoded to the encoding module, where the information TOD´ signal to be encoded is determined according to the time information TOD, the 1PPS signal, and the application function; The encoding module is used to obtain the 1PPS signal and the TOD´ signal from the bus and the CPU module respectively, encode according to the code element rules of the DL / T 1100.1 DC IRIG-B code, and output the encoded DC IRIG-B code containing the identity identification to the bus; The IRIG-B code module is used to obtain the DC IRIG-B signal containing the identity identification from the bus, perform level conversion, isolation, and expansion processing on the DC IRIG-B signal containing the identity identification, and transmit the processed DC IRIG-B signal containing the identity identification to the time-synchronized device in the form of optical fiber or RS485.
11. The time synchronization system based on DC IRIG-B code time source localization according to claim 10, characterized in that, The clock device further includes: a time monitoring module; The time monitoring module is used to obtain the DC IRIG-B signal containing the identity identification from the bus, and determine the time source identity identification n of the clock device according to the DC IRIG-B code containing the identity identification; obtain the NTP / GOOSE message replied by the time-synchronized device, obtain the time source information of the time-synchronized device according to the NTP / GOOSE message, and determine the time source identity identification m located in the time report message sent by the time-synchronized device according to the time source information of the time-synchronized device; use the ping-pong algorithm to obtain the time synchronization deviation x between the clock device and the time-synchronized device; determine the time synchronization deviation alarm status U, including: when |x| < p, U is set to 0, otherwise U is set to 1; where p is the time synchronization deviation alarm threshold; determine the time service alarm status V, including: when n = m, V is set to 0, otherwise V is set to 1; constitute the time synchronization status monitoring result of the clock device and the time-synchronized device through the time synchronization deviation alarm status U and the time service alarm status V.
12. A computer-readable storage medium for storing one or more programs, characterized in that, The one or more programs include instructions that, when executed by a computing device, cause the computing device to execute any of the methods according to claims 1 to 8.
13. A computer device, characterized in that, including, one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods according to claims 1 to 8.
Citation Information
Patent Citations
Time synchronization method and device
CN102215101A
Online monitoring optical signal direct measurement method and measurement system based on time synchronization
CN107395310A