Power secondary equipment time information network system and fault-tolerant time synchronization method
By using a simple time information network system and employing B-code selection and CRC calculation, the problems of anti-interference and time synchronization accuracy of secondary power equipment in complex electromagnetic environments are solved, achieving efficient and low-cost time synchronization and improving the reliability and management efficiency of the power system.
Patent Information
- Application Number
- CN202510745686.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-06-05
AI Technical Summary
Existing time information network systems for secondary power equipment have limited anti-interference capabilities in complex electromagnetic environments, and redundant time synchronization designs result in complex structures and high costs.
A simple time information network system is adopted, which uses B code selection, CRC calculation and verification to realize the synchronous selection of time transmission and reception modules and local timekeeping, thereby improving anti-interference performance and time synchronization accuracy.
It improves the time synchronization and anti-interference performance and accuracy of secondary power equipment in complex electromagnetic environments, reduces system costs, and improves the reliability and management efficiency of the power system.
Smart Images

Figure CN120474659B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power system clock calibration technology, and more specifically, relates to a time information network system for power secondary equipment and a fault-tolerant time calibration method. Background Technology
[0002] During power operation, secondary power equipment is diverse in type and numerous in number. Various measuring instruments, protection devices, and control equipment require precise time synchronization to function properly; otherwise, errors or even accidents may occur. By establishing a high-precision time synchronization system, i.e., a time information network system, time synchronization between various devices can be achieved, thereby ensuring the stable operation of the power system.
[0003] Furthermore, time-based information network systems can also be applied to the inspection and maintenance of power systems. Through these systems, remote management of the entire power system can be achieved, significantly improving maintenance efficiency and accuracy.
[0004] In existing technologies, time information network systems typically consist of a high-precision clock source, communication data transmission, and a controller. GPS provides high-precision time signals, fiber optic communication enables data transmission and synchronization, and a centralized controller manages data and performs time synchronization operations. Higher-precision time synchronization is achieved through continuous comparison and fault-tolerance mechanisms between multiple servers. Multiple servers simultaneously receive GPS signals and record their times locally. The times recorded by each server are compared; if there is a discrepancy, the average is calculated and used as the final time. If any server malfunctions, it is removed from the comparison, and the average is recalculated.
[0005] In existing time information network systems, serial communication outputs time information as a serial data stream. Each automatic protection device receives the serial time information once per second for time synchronization. During this synchronization process, both serial data transmission and reception use interrupts, and the interrupt handlers on both sides consume time. Furthermore, in serial communication, data is transmitted bit by bit at a specific baud rate, thus introducing a delay in bus transmission.
[0006] Furthermore, the environment in which secondary power equipment and components operate is complex, and hard pulse time synchronization between multiple devices and components is susceptible to errors due to the complex electromagnetic environment, resulting in limited anti-interference capabilities of the time synchronization system. Existing technologies often employ redundant time synchronization methods, which improve the anti-interference capability of the time synchronization system to some extent. However, the redundant design of the time synchronization source complicates the structure of the time synchronization system and also leads to excessively high costs. Summary of the Invention
[0007] To address the shortcomings of existing technologies, this invention provides a time information network system for secondary power equipment and a fault-tolerant time synchronization method. It adopts a simple system structure, improves the anti-interference performance of time synchronization for multiple devices and multiple plug-ins in complex electromagnetic environments, and enhances time synchronization accuracy.
[0008] The present invention adopts the following technical solution.
[0009] The first aspect of the present invention provides a time information network system for power secondary equipment, including a time information network transmitting module and multiple time information network receiving modules.
[0010] The time information network sending module includes: a B code selection unit, a B code decoding unit, a millisecond counting unit, a cyclic redundancy calculation unit, and a time synchronization sending unit; each of the time information network receiving modules includes: a time synchronization receiving unit, a cyclic redundancy check unit, a synchronization selection unit, and a local timekeeping unit;
[0011] The B code selection unit receives external electrical or optical B codes and makes a selection, then transmits the selected B code to the B code decoding unit.
[0012] The B code decoding unit decodes the selected B code to obtain a second pulse signal and time information accurate to the second, and then transmits the decoded time information to the millisecond counting unit.
[0013] The millisecond counting unit generates millisecond information, which, together with the decoded time information, forms time information with milliseconds and is then passed to the cyclic redundancy calculation unit.
[0014] The cyclic redundancy check unit performs cyclic redundancy check calculations on time information with milliseconds.
[0015] The time synchronization transmitting unit is connected to each time synchronization receiving unit. The time synchronization transmitting unit sends time information data consisting of millisecond time information and cyclic redundancy check calculation results to each time synchronization receiving unit.
[0016] The time synchronization receiving unit sends the received time information data to the cyclic redundancy check unit for verification calculation;
[0017] The synchronization selection unit makes a synchronization selection based on the verification result, and the selected time synchronization information is entered into the local timekeeping unit.
[0018] The local timekeeping unit performs synchronous following or local timekeeping based on time synchronization information.
[0019] Preferably, all devices or plug-ins in the secondary power equipment that require time synchronization are connected to a time information network system. The time information network system has one and only one time information network transmitting module, and the rest are time information network receiving modules.
[0020] Preferably, the electrical B code and optical B code are de-jittered, and the B code selection unit receives the de-jittered electrical B code or optical B code.
[0021] Preferably, the B code selection unit uses electrical B code by default, switches to optical B code when optical B code is detected, and switches to electrical B code when optical B code is detected to be disconnected.
[0022] Preferably, in the cyclic redundancy check unit, the cyclic redundancy check calculation process is represented by the following formula:
[0023] D(x)×x k ÷G(x)=Q(x)…R(x)
[0024] In the formula, D(x) is the polynomial corresponding to the time information in milliseconds, x is the formal variable, k is the check code length of the cyclic redundancy check, G(x) is the generator polynomial, Q(x) is the quotient polynomial, and R(x) is the remainder polynomial.
[0025] Preferably, the generator polynomial G(x) is expressed by the following formula:
[0026] X 16 +X 13 +X 12 +X 11 +X 10 +X 8 +X 6 +X 5 +X 2 +1.
[0027] Preferably, in the time synchronization unit, the transmitted time information data is represented by the following formula:
[0028] T(x) = D(x) × x k +R(x)
[0029] In the formula, T(x) is the time information data sent by the time synchronization unit, D(x) is the polynomial corresponding to the time information in milliseconds, k is the check code length of the cyclic redundancy check, and R(x) is the remainder polynomial.
[0030] Preferably, in the cyclic redundancy check unit, the same generator polynomial as in the time information network transmission module is used to perform cyclic redundancy check calculation on the received time information data. The calculation method is the same as that of the cyclic redundancy check calculation unit in the time information network transmission module. If the cyclic redundancy check result calculated by the cyclic redundancy check unit is consistent with the cyclic redundancy check calculation result in the received time information data, the check passes. If the cyclic redundancy check result calculated by the cyclic redundancy check unit is inconsistent with the cyclic redundancy check calculation result in the received time information data, the check fails.
[0031] Preferably, in the synchronization selection unit, the time synchronization information includes a synchronization follow instruction and a local timekeeping instruction, wherein if the verification passes, a synchronization follow instruction is generated, and if the verification fails, a local timekeeping instruction is generated.
[0032] In the local timekeeping unit, when the time synchronization information is a synchronization follow instruction, the received time information with milliseconds is used; otherwise, the local time generated by the local timekeeping unit itself is used.
[0033] A second aspect of the present invention provides a fault-tolerant time synchronization method for power secondary equipment, based on the aforementioned power secondary equipment time information network system, comprising the following steps:
[0034] Step 1: Select one of all the secondary electrical devices that require time synchronization as the master device, and the rest as slave devices. The master device is equipped with a time information network transmission module, and the B code selection unit receives external electrical B code or optical B code signals and makes a selection.
[0035] Step 2: The B code decoding unit decodes the selected B code, and the millisecond counting unit combines the decoded time information and the millisecond information to form time information with milliseconds.
[0036] Step 3: The cyclic redundancy check unit performs cyclic redundancy check calculation on the time information with milliseconds, and the time synchronization transmission unit sends the cyclic redundancy check calculation result and the time information with milliseconds to each slave device.
[0037] Step 4: The device sets the time information network receiving module, the cyclic redundancy check unit performs verification calculation on the cyclic redundancy check calculation result and the time information with milliseconds received by the time synchronization receiving unit, the synchronization selection unit performs synchronization selection, and generates time synchronization information.
[0038] Step 5: The local timekeeping unit performs synchronous following or local timekeeping based on the time synchronization information.
[0039] Compared with the prior art, the beneficial effects of the present invention include at least the following:
[0040] 1) The time information network system and time synchronization method proposed in this invention perform CRC calculation and verification on time information with milliseconds, and perform synchronous following or local timekeeping according to time synchronization information, which improves the anti-interference performance of the system time synchronization, and occasional communication errors do not affect the time synchronization accuracy.
[0041] 2) The time information network system and time synchronization method proposed in this invention are applied to the time synchronization of multiple devices and multiple plug-ins in power secondary equipment. By selecting a higher quality B code through the B code selection unit, the time synchronization accuracy is significantly improved.
[0042] 3) The time information network system and time synchronization method proposed in this invention adopt a simple, non-redundant structure and have lower cost.
[0043] 4) The time information network system and time synchronization method proposed in this invention can realize time synchronization between various devices, improve the reliability and security of the power system, thereby ensuring the stable operation of the power system, and at the same time improve the management efficiency and maintenance accuracy of the power system. Attached Figure Description
[0044] Figure 1 This is a structural diagram of a time information network system for secondary power equipment provided in accordance with an embodiment of the present invention;
[0045] Figure 2 This is a schematic diagram of a time information network system provided in accordance with an application example of the present invention applied to a multi-device scenario of power secondary equipment;
[0046] Figure 3 This is a schematic diagram illustrating the application of a time information network system provided in the application example of the present invention to a multi-plug-in scenario for secondary power equipment;
[0047] Figure 4 This is a schematic diagram illustrating the application of the time information network system provided by the present invention to a scenario involving multiple devices and multiple plug-ins in power secondary equipment.
[0048] The attached diagram is labeled as follows: 1-Time information network transmitting module; 11-B code selection unit; 12-B code decoding unit; 13-Millisecond counting unit; 14-CRC calculation unit; 15-Time synchronization transmitting unit; 2-Time information network first receiving module; 21-Time synchronization receiving unit; 22-CRC verification unit; 23-Synchronization selection unit; 24-Local timekeeping unit; 3-Time information network second receiving module. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this application are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of this invention.
[0050] like Figure 1 As shown, Embodiment 1 of the present invention provides a time information network system for secondary power equipment, including a time information network sending module 1 and a time information network receiving module.
[0051] Preferably, all devices or plug-ins requiring time synchronization in the secondary power equipment are connected to a time information network system. The time information network transmitting and receiving modules are interconnected to form a high-precision time information network. The system has one and only one time information network transmitting module, with the rest being time information network receiving modules. In an example but non-limiting embodiment, the time information network system uses a first time information network receiving module 2 and a second time information network receiving module 3 with identical structures.
[0052] The time information network sending module specifically includes: a B-code selection unit 11, a B-code decoding unit 12, a millisecond counting unit 13, a CRC (Cyclic Redundancy Check) calculation unit 14, and a time synchronization sending unit 15, all connected in sequence; the time information network receiving module specifically includes: a time synchronization receiving unit 21, a CRC check unit 22, a synchronization selection unit 23, and a local timekeeping unit 24, all connected in sequence; the time synchronization receiving unit 21 of each time information network receiving module is connected to the time synchronization sending unit 15 of the time information network sending module.
[0053] B code (Type B code) refers to IRIG-B serial time code, with a frame rate of 1 frame / s and the ability to transmit 100 bits of information. As a widely used time code, Type B code has the following characteristics: 1) It carries a large amount of information; after decoding, it can obtain pulse signals of 1, 10, 100, and 1000 c / s, as well as BCD-encoded time information and control function information; 2) It has high resolution; 3) The bandwidth of the modulated B code is suitable for long-distance transmission.
[0054] The B code selection unit 11 of the time information network transmission module receives external electrical B code or optical B code, and selects the B code with better quality to output to the B code decoding unit 12.
[0055] In a preferred but non-limiting embodiment of the present invention, the electrical B code and optical B code that jitter due to external interference are subjected to jitter reduction processing, and jitter of less than 128 ns is ignored. The B code selection unit receives the jitter-reduced electrical B code or optical B code.
[0056] In a preferred but non-limiting embodiment of the present invention, the B code selection unit block uses electrical B code by default, switches to using optical B code when optical B code is detected to be accessed, and switches to electrical B code when optical B code is detected to be disconnected.
[0057] Understandably, electrical B-codes, as electrical signals transmitted in twisted-pair or coaxial cables, are susceptible to electromagnetic interference and signal attenuation, and are generally suitable for short-distance applications. However, the complex electromagnetic environments of substations and industrial sites can lead to signal distortion or bit errors due to interference, resulting in poor signal quality. Therefore, optical B-codes, which have stronger resistance to electromagnetic interference and better signal quality, are preferred. The B-code selection unit 11 in complex electromagnetic environments selects between external electrical and optical B-codes, improving the system's anti-interference capability. The higher quality B-code also contributes to improved time synchronization accuracy.
[0058] The B code decoding unit 12 decodes the B code output by the B code selection unit 11. The decoded information includes the second pulse and time information (year, day, hour, minute, second). The decoded time information is then transmitted to the millisecond counting unit 13.
[0059] The millisecond counting unit 13 is reset to zero at the second pulse, and the counter accumulates to generate millisecond information. The millisecond information and the decoded time information form millisecond-encoded time information, which is used for short-interval communication and transmitted to the CRC calculation unit 14.
[0060] It is understood that the time information network system of the present invention adopts a short-interval communication method, which improves the serial transmission rate on the basis of the B code one frame per second interrupt transmission method, sending one frame per 1ms, and adding millisecond information to the time information parsed from the B code through the millisecond counting unit, thereby increasing the time resolution.
[0061] The time information with milliseconds is processed by the CRC calculation unit 14 to obtain the CRC calculation result. The time information with milliseconds and the CRC calculation result are input together to the time synchronization sending unit 15. The time synchronization sending unit 15 is connected to the time synchronization receiving unit 21 in each time information network receiving module. The time synchronization sending unit 15 sends the time information data composed of the time information with milliseconds and the CRC calculation result to the time synchronization receiving unit 21 of each time information network receiving module.
[0062] In a preferred but non-limiting embodiment of the present invention, the time information with milliseconds is represented by the corresponding polynomial D(x), where G(x) is the generator polynomial, Q(x) is the quotient polynomial, and R(x) is the remainder polynomial. The CRC calculation process is then expressed by the following formula:
[0063] D(x)×x k ÷G(x)=Q(x)…R(x)
[0064] In the formula, x is a formal variable used to construct the polynomial structure, representing the positional relationship of each bit in the binary data; k is the number of bits in the generator polynomial G(x) minus 1, i.e. the CRC check code length; each term in the generator polynomial G(x) corresponds to a bit in the binary data. The generator polynomial G(x) is manually set according to pre-agreed rules and is preset in the CRC calculation unit and CRC check unit, and is not transmitted with time information data.
[0065] More preferably, the polynomial for generating the check sequence code in the national standard GB / T 20840.8-2007 for current transformers is selected as the generator polynomial G(x) for CRC calculation, expressed by the following formula:
[0066] X 16 +X 13 +X 12 +X 11 +X 10 +X 8 +X 6 +X 5 +X 2 +1
[0067] The generator polynomial G(x) for CRC checksum is expressed by the following formula:
[0068] X 16 +X 13 +X 12 +X 11 +X 10 +X 8 +X 6 +X 5 +X 2 +1
[0069] The time information in milliseconds and the CRC calculation result sent by the time synchronization unit 15 are denoted as T(x), and are expressed by the following formula:
[0070] T(x) = D(x) × x k +R(x)
[0071] It is understood that this invention uses CRC check instead of the redundant time synchronization method of the prior art. CRC check can be implemented through simple logic circuits, and the calculation process does not require complex calculations. It can achieve the anti-interference capability of the existing redundant time synchronization method with low memory and computing resources.
[0072] The time information data received by the time synchronization receiving unit 21 of the time information network receiving module is verified by the CRC verification unit 22. Specifically, the CRC verification unit 22 uses the same generator polynomial as the time information network sending module to perform CRC calculation on the received time information data. The calculation method is the same as that of the CRC calculation unit 14 in the time information network sending module. If the CRC verification result calculated by the CRC verification unit 22 is consistent with the CRC calculation result in the received time information data, the verification passes. If the CRC verification result calculated by the CRC verification unit 22 is inconsistent with the CRC calculation result in the received time information data, the verification fails.
[0073] The synchronization selection unit 23 makes a synchronization selection based on the verification result and generates time synchronization information. In an exemplary but non-limiting embodiment of the present invention, if the verification passes, a synchronization follow instruction is generated; if the verification fails, synchronization follow is not performed, and a local timekeeping instruction is generated. The synchronization follow instruction and the local timekeeping instruction constitute the time synchronization information.
[0074] It is worth noting that those skilled in the art can also set other instructions as needed. All instructions together constitute time synchronization information, and based on the spirit of this invention, they all fall within the protection scope of this invention.
[0075] The time synchronization information selected by the synchronization selection unit 23 is entered into the local timekeeping unit 24 for synchronization following or local timekeeping. In an exemplary but non-limiting embodiment of the present invention, when the time synchronization information is a synchronization following instruction, the local timekeeping unit 24 uses the received time information with milliseconds; when the time synchronization information is a local timekeeping instruction, the received time information with milliseconds is not used, but the local time generated by the local timekeeping unit 24 itself is used.
[0076] Preferably, the local timekeeping unit 24 accumulates time using a local counter, and the local counter is cleared and re-accumulated each time the synchronization selection unit 23 selects to follow the synchronization.
[0077] Understandably, performing CRC calculation and verification on time information with milliseconds, and then selecting the appropriate time synchronization information, enables the time synchronization system to have fault tolerance. Even if occasional communication errors occur in a complex electromagnetic environment, the time synchronization accuracy will not be affected, further improving the anti-interference capability and time synchronization accuracy of the time synchronization system.
[0078] Embodiment 2 of the present invention provides a fault-tolerant time synchronization method for power secondary equipment, based on the power secondary equipment time information network system described in Embodiment 1, including the following steps:
[0079] Step 1: Select one of all the power secondary devices that require time synchronization as the master device, and the rest as slave devices. The master device is equipped with a time information network transmission module, and the B code selection unit receives external electrical B code or optical B code signals and makes a selection.
[0080] Step 2: The B code decoding unit decodes the B code selected in Step 1, and the millisecond counting unit combines the decoded time information and the millisecond information to form time information with milliseconds.
[0081] Step 3: The CRC calculation unit performs CRC calculation on the time information with milliseconds from Step 2, and the time synchronization sending unit sends the CRC calculation result and the time information with milliseconds to each slave device.
[0082] Step 4: From the device's time information network receiving module, the CRC verification unit performs verification calculations on the CRC calculation result received by the time synchronization receiving unit and the time information with milliseconds. The synchronization selection unit performs synchronization selection and generates time synchronization information. The time synchronization information includes a synchronization follow instruction and a local timekeeping instruction. Specifically, if the verification passes, a synchronization follow instruction is generated; if the verification fails, a local timekeeping instruction is generated.
[0083] Step 5: The local timekeeping unit performs synchronous following or local timekeeping based on the time synchronization information. Specifically, when the time synchronization information is a synchronous following instruction, the decoded information received by the slave device this time is used for local timekeeping. When the time synchronization information is a local timekeeping instruction, i.e., no synchronous following, the local time generated by the slave device itself is used for local timekeeping.
[0084] To further illustrate the technical solution of this invention and its beneficial effects, application examples are provided below. The power secondary equipment time information network system and fault-tolerant time synchronization method of this invention have wide applications, including multi-device time synchronization, multi-plugin time synchronization, and multi-device multi-plugin time synchronization application scenarios.
[0085] like Figure 2As shown, in a multi-device time synchronization application scenario, device 1, which requires time synchronization, uses a time information network transmitting module, while the other devices requiring time synchronization use a time information network receiving module, to achieve time synchronization among the devices. In device 1, the B-code selection unit of the time information network transmitting module receives external electrical or optical B-codes. Under complex electromagnetic environments, the B-code selection unit makes a selection based on the external electrical or optical B-code, choosing the higher-quality B-code to enter the B-code decoding unit. The B-code decoding unit decodes the B-code in the B-code selection unit. The decoded time information and the millisecond information from the millisecond counting unit together form millisecond-containing time information. This millisecond-containing time information, after passing through the CRC calculation unit, includes the CRC calculation result and enters the time synchronization transmitting unit. The time synchronization sending unit of device 1 is connected to the time synchronization receiving unit in the time information network receiving module of device 2 or device 3. Taking device 2 as an example, the time synchronization receiving unit in device 2 receives the time synchronization sending unit in the time information network sending module of device 1. The received data of the time synchronization receiving unit enters the CRC verification unit, and the CRC verification unit performs verification calculation. The synchronization selection unit makes a synchronization selection based on the verification result. The selected time information enters the local timekeeping unit for local timekeeping of device 2.
[0086] like Figure 3 As shown, in a multi-plugin time synchronization application scenario, plug-in 1, which requires time synchronization, uses a time information network sending module, while the other plug-ins requiring time synchronization use a time information network receiving module, to achieve time synchronization among the plug-ins. In plug-in 1, the B-code selection unit of the time information network sending module receives external electrical or optical B-codes. In complex electromagnetic environments, the B-code selection unit makes a selection based on the external electrical or optical B-code, selecting the higher-quality B-code to enter the B-code decoding unit. The B-code decoding unit decodes the B-code in the B-code selection unit. The decoded time information and the millisecond information from the millisecond counting unit together form millisecond-containing time information. This millisecond-containing time information, after passing through the CRC calculation unit, includes the CRC calculation result and enters the time synchronization sending unit. The time synchronization sending unit of Plug-in 1 is connected to the time synchronization receiving unit in the time information network receiving module of Plug-in 2 or Plug-in 3. Taking Plug-in 2 as an example, the time synchronization receiving unit in Plug-in 2 receives the time synchronization sending unit in the time information network sending module of Plug-in 1. The received data of the time synchronization receiving unit enters the CRC verification unit, and after the CRC verification unit performs verification calculation, the synchronization selection unit makes a synchronization selection based on the verification result. The selected time information enters the local timekeeping unit for the local timekeeping of Plug-in 2.
[0087] like Figure 4As shown, in a multi-device, multi-plugin time synchronization application scenario, plug-in 1 in device 1, which requires time synchronization, uses a time information network sending module, while plug-ins in other devices that require time synchronization use a time information network receiving module, in order to achieve time synchronization among multiple devices and plug-ins with time synchronization needs. The B-code selection unit of the time information network sending module of plug-in 1 in device 1 receives external electrical or optical B-codes. In complex electromagnetic environments, the B-code selection unit makes a selection based on the external electrical or optical B-code, selecting the B-code with better quality to enter the B-code decoding unit. The B-code decoding unit decodes the B-code in the B-code selection unit. The decoded time information and the millisecond information from the millisecond counting unit together form millisecond-containing time information. This millisecond-containing time information, after passing through the CRC calculation unit, includes the CRC calculation result and enters the time synchronization sending unit. The time synchronization sending unit of plug-in 1 in device 1 is connected to the time synchronization receiving unit in the time information network receiving module of plug-in in other devices that have time synchronization requirements. Taking plug-in 1 in device 2 as an example, the time synchronization receiving unit of plug-in 1 in device 2 receives the time information network sending unit of plug-in 1 in device 1. The received data of the time synchronization receiving unit enters the CRC verification unit, and after the CRC verification unit performs verification calculation, the synchronization selection unit makes a synchronization selection based on the verification result. The selected time information enters the local timekeeping unit for local timekeeping of plug-in 1 in device 2.
[0088] Compared with the prior art, the beneficial effects of the present invention include at least the following:
[0089] 1) The time information network system and time synchronization method proposed in this invention perform CRC calculation and verification on time information with milliseconds, and perform synchronous following or local timekeeping according to time synchronization information, which improves the anti-interference performance of the system time synchronization, and occasional communication errors do not affect the time synchronization accuracy.
[0090] 2) The time information network system and time synchronization method proposed in this invention are applied to the time synchronization of multiple devices and multiple plug-ins in power secondary equipment. By selecting a higher quality B code through the B code selection unit, the time synchronization accuracy is significantly improved.
[0091] 3) The time information network system and time synchronization method proposed in this invention adopt a simple, non-redundant structure and have lower cost.
[0092] 4) The time information network system and time synchronization method proposed in this invention can realize time synchronization between various devices, improve the reliability and security of the power system, thereby ensuring the stable operation of the power system, and at the same time improve the management efficiency and maintenance accuracy of the power system.
[0093] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A time information network system for secondary power equipment, comprising a time information network transmitting module and multiple time information network receiving modules, characterized in that: The time information network sending module includes: a B code selection unit, a B code decoding unit, a millisecond counting unit, a cyclic redundancy calculation unit, and a time synchronization sending unit; each of the time information network receiving modules includes: a time synchronization receiving unit, a cyclic redundancy check unit, a synchronization selection unit, and a local timekeeping unit; The B code selection unit receives external electrical or optical B codes and makes a selection, then transmits the selected B code to the B code decoding unit. The B code decoding unit decodes the selected B code to obtain a second pulse signal and time information accurate to the second, and then transmits the decoded time information to the millisecond counting unit. The millisecond counting unit generates millisecond information, which, together with the decoded time information, forms time information with milliseconds and is then passed to the cyclic redundancy calculation unit. The cyclic redundancy check unit performs cyclic redundancy check calculations on time information with milliseconds. The time synchronization transmitting unit is connected to each time synchronization receiving unit. The time synchronization transmitting unit sends time information data consisting of millisecond time information and cyclic redundancy check calculation results to each time synchronization receiving unit. The time synchronization receiving unit sends the received time information data to the cyclic redundancy check unit for verification calculation; The synchronization selection unit makes a synchronization selection based on the verification result, and the selected time synchronization information enters the local timekeeping unit; the time synchronization information includes a synchronization follow instruction and a local timekeeping instruction, wherein if the verification passes, a synchronization follow instruction is generated, and if the verification fails, a local timekeeping instruction is generated. The local timekeeping unit performs synchronous following or local timekeeping based on the time synchronization information. When the time synchronization information is a synchronous following instruction, the received time information with milliseconds is used; otherwise, the local time generated by the local timekeeping unit itself is used.
2. The power secondary equipment time information network system according to claim 1, characterized in that: All devices or plug-ins in secondary power equipment that require time synchronization are connected to a time information network system. The time information network system has one and only one time information network transmitting module, and the rest are time information network receiving modules.
3. The power secondary equipment time information network system according to claim 1, characterized in that: The electrical B code and optical B code are de-jittered, and the B code selection unit receives the de-jittered electrical B code or optical B code.
4. The power secondary equipment time information network system according to claim 1, characterized in that: The B-code selection unit defaults to using electrical B-code. When an optical B-code is detected, it switches to using optical B-code. When an optical B-code is detected as disconnected, it switches back to electrical B-code.
5. The power secondary equipment time information network system according to claim 1, characterized in that: In the cyclic redundancy check unit, the cyclic redundancy check calculation process is represented by the following formula: In the formula, D(x) is the polynomial corresponding to the time information in milliseconds, x is the formal variable, k is the check code length of the cyclic redundancy check, G(x) is the generator polynomial, Q(x) is the quotient polynomial, and R(x) is the remainder polynomial.
6. The power secondary equipment time information network system according to claim 5, characterized in that: The generator polynomial G(x) is expressed by the following formula: X 16 +X 13 +X 12 +X 11 +X 10 +X 8 +X 6 +X 5 +X 2 +1。 7. The power secondary equipment time information network system according to claim 1, characterized in that: In the time synchronization unit, the transmitted time information data is represented by the following formula: In the formula, T(x) is the time information data sent by the time synchronization unit, D(x) is the polynomial corresponding to the time information in milliseconds, k is the check code length of the cyclic redundancy check, and R(x) is the remainder polynomial.
8. The power secondary equipment time information network system according to claim 1, characterized in that: In the Cyclic Redundancy Check (CRBC) unit, the same generator polynomial as in the time information network transmission module is used to perform CRBC calculation on the received time information data. The calculation method is the same as that in the CRBC calculation unit in the time information network transmission module. If the CRBC result calculated by the CRBC unit is consistent with the CRBC calculation result in the received time information data, the check passes. If the CRBC result calculated by the CRBC unit is inconsistent with the CRBC calculation result in the received time information data, the check fails.
9. A power secondary device fault-tolerant time synchronization method based on the power secondary device time information network system according to any one of claims 1-8, characterized in that, Includes the following steps: Step 1: Select one of all the secondary electrical devices that require time synchronization as the master device, and the rest as slave devices. The master device is equipped with a time information network transmission module, and the B code selection unit receives external electrical B code or optical B code signals and makes a selection. Step 2: The B code decoding unit decodes the selected B code, and the millisecond counting unit combines the decoded time information and the millisecond information to form time information with milliseconds. Step 3: The cyclic redundancy check unit performs cyclic redundancy check calculation on the time information with milliseconds, and the time synchronization transmission unit sends the cyclic redundancy check calculation result and the time information with milliseconds to each slave device. Step 4: The device sets the time information network receiving module, the cyclic redundancy check unit performs verification calculation on the cyclic redundancy check calculation result and the time information with milliseconds received by the time synchronization receiving unit, the synchronization selection unit performs synchronization selection, and generates time synchronization information. Step 5: The local timekeeping unit performs synchronous following or local timekeeping based on the time synchronization information.
Citation Information
Patent Citations
Redundant time synchronization signal self-selection and time synchronization method based on FPGA and CPU
CN113132040A
Time synchronization method based on DCS
CN119892285A
