Control device with time synchronization function

By designing a control device with time-based function in power equipment, using JTAG, RJ45 interfaces and Ethernet communication module combined with IEEE1588 protocol, the time deviation problem of power equipment is solved, and high-precision clock synchronization is achieved.

CN222234867UActive Publication Date: 2024-12-24CHINA THREE GORGES CORPORATION +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202420955001.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-12-24
Estimated Expiration
2034-05-06

AI Technical Summary

Technical Problem

The prior art has the problem of excessive time deviation when synchronizing power equipment in time, especially when the internal clock errors of computers and automatic devices accumulate largely, and the accuracy of the NTP protocol is not enough to meet the situation where the time requirements are high.

Method used

A control device with time-based function is designed, including JTAG module, RJ45 interface module and Ethernet communication module. The time-based debugging is carried out through the main controller module based on clock information and timestamps, and the IEEE1588 protocol is used to improve the time-based accuracy. Calculate link delay and clock deviation, perform message analysis and clock compensation to achieve master-slave clock synchronization.

Benefits of technology

Effectively reduce or even eliminate time deviations, improve the accuracy of time synchronization, and meet the high-precision time-based requirements for power equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222234867U_ABST
    Figure CN222234867U_ABST
Patent Text Reader

Abstract

The utility model discloses a control device with a time synchronization function, which belongs to the technical field of industrial control and comprises a JTAG (Joint Test Action Group) module, an RJ45 interface module, an Ethernet communication module and a main controller module, main clock synchronization information is obtained through the RJ45 interface module, a clock synchronization data message is transmitted to the main controller module through the Ethernet communication module, further, in order to achieve accurate time synchronization, a timestamp is marked on the Ethernet communication module and transmitted to the main controller module, and the main clock synchronization information is transmitted to the main controller module through the Ethernet communication module. Therefore, the main controller module can carry out data processing calculation according to the clock synchronization data message and the timestamp and generate a time synchronization instruction for an application program to call, specifically, according to timestamp information captured by the Ethernet communication module, link delay entering and clock skew are calculated, message analysis and clock compensation are carried out, and time synchronization is realized. Therefore, synchronization of the device and the master clock is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of industrial control, in particular to a control device with a time synchronization function. Background Art

[0002] In scenarios such as substations and power plants, it is necessary to provide time information and synchronization signals for power secondary equipment and automation devices, such as dispatching automation systems, microcomputer relay protection devices, fault recorders, time sequence recording devices, telecontrol devices, computer data exchange networks, lightning location systems, intelligent devices IED, etc.

[0003] However, the internal clocks of computers and automatic devices are generally based on ordinary oscillation circuits, and the daily error can reach the second level. After a period of accumulation, a larger error will appear. Therefore, a standard clock is needed to synchronize with it and correct the time deviation in time. At present, NTP is usually used for synchronization. NTP is a software-based network synchronization protocol with an accuracy of up to milliseconds. However, for occasions with higher synchronization accuracy requirements, NTP no longer meets the requirements.

[0004] Therefore, in the process of performing time synchronization on power equipment in the prior art, there is a problem of excessive time deviation. Utility Model Content

[0005] In view of this, it is necessary to provide a control device with a time synchronization function to solve the problem of excessive time deviation in the process of time synchronization of power equipment in the prior art.

[0006] In order to solve the above problems, the utility model provides a control device with a time synchronization function, comprising:

[0007] JTAG module, used to set the timing program;

[0008] RJ45 interface module, used to send and receive clock information;

[0009] The Ethernet communication module is connected to the RJ45 interface module and the main controller module respectively, and is used to mark the timestamp and transmit the clock information and the timestamp to the main controller module;

[0010] The main controller module is also connected to the JTAG module for timing debugging based on clock information, time stamp and timing program.

[0011] In a possible implementation, the main controller module includes a main control chip, a first capacitor, a second capacitor, a first resistor and a crystal oscillator chip;

[0012] The first capacitor, the second capacitor, the first resistor and the crystal oscillator chip constitute a crystal oscillator circuit, and the crystal oscillator circuit is used to generate and send a time synchronization instruction to the Ethernet communication module according to the master clock timestamp and the slave clock timestamp;

[0013] The main control chip is connected in series with the crystal oscillator circuit, the first capacitor is connected in parallel with the second capacitor, the crystal oscillator chip is connected to the first capacitor and the second capacitor respectively, and the first capacitor is also connected to the first resistor.

[0014] In a possible implementation, the main control chip includes at least one of a microcontroller, a digital signal processor, an ARM processor, a field programmable gate array, and a system on chip.

[0015] In a possible implementation, the Ethernet communication module includes a PHY chip, a second resistor, a first inductor, and a magnetic bead;

[0016] Wherein, the PHY chip is connected to the second resistor, the first inductor and the magnetic bead respectively.

[0017] In a possible implementation manner, the PHY chip includes at least one of an Ethernet PHY chip, a fiber PHY chip, a wireless PHY chip, and a SONET / SDH PHY chip.

[0018] In a possible implementation, the RJ45 interface module includes an Ethernet connector, a third resistor, and a third capacitor;

[0019] The Ethernet connector is connected to the third resistor and the third capacitor respectively.

[0020] In a possible implementation, the Ethernet connector includes at least one of an RJ-45 connector, an RJ-11 connector, a BNC connector, and an SC connector.

[0021] In a possible implementation, the control device with a time synchronization function further includes a power module, which is connected to the main controller module and is used to supply power to a chip in the main controller module.

[0022] In a possible implementation, the power module includes a DC-DC power chip, a fourth resistor, a fourth capacitor, a diode, and a second inductor;

[0023] The DC-DC power supply chip is connected to the fourth resistor and the fourth capacitor respectively, the diode is connected to the fourth resistor and the fourth capacitor respectively, and the second inductor is connected to the diode and the fourth capacitor.

[0024] In a possible implementation, the DC-DC power supply chip includes at least one of a linear regulator, a switch mode power supply, a charge pump, and a battery management unit.

[0025] The beneficial effect of adopting the above technical solution is: the utility model provides a control device with a time synchronization function, which transmits the time synchronization program to the main controller module through the JTAG module, and then sets the RJ45 interface module to collect clock information; further, in order to achieve time synchronization, the timestamp is marked through the Ethernet communication module and transmitted to the main controller module, so that the main controller module can perform data processing according to the clock information and timestamp, and generate a time synchronization instruction to guide the time synchronization operation. Specifically, according to the timestamp information captured by the Ethernet communication module, the link entry delay and the clock deviation are calculated, and the message parsing and clock compensation are performed, thereby realizing the master-slave clock synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the structure of the first embodiment of the control device with a time synchronization function provided by the utility model;

[0027] Figure 2 A schematic diagram of the structure of an embodiment of a main controller module provided by the utility model;

[0028] Figure 3 A schematic diagram of the structure of an Ethernet communication module according to an embodiment of the present invention;

[0029] Figure 4 A schematic diagram of the structure of an embodiment of an RJ45 interface module provided by the utility model;

[0030] Figure 5 A schematic diagram of the structure of a second embodiment of a control device with a time synchronization function provided by the utility model;

[0031] Figure 6 This is a schematic structural diagram of an embodiment of a power module provided by the utility model. DETAILED DESCRIPTION

[0032] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the present application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0033] The types of clock protocols include NTP, SNTP, IEEE1588, V10, V20, V30, V40, UDP, Telnet, etc. Among them, it should be emphasized that the IEEE1588 protocol (also known as the PTP protocol) is a network communication protocol for clock synchronization, and its full name is "Precision Clock Synchronization Protocol for Networked Measurement and Control Systems". The IEEE1588 protocol is a master clock that synchronizes all other slave clocks through packet exchange.

[0034] In order to solve the above problems, the utility model provides a control device with a time synchronization function, which is described in detail below.

[0035] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of the first embodiment of the control device with a time synchronization function provided by the utility model. The control device with a time synchronization function 100 includes:

[0036] JTAG module 101, used to set the timing program;

[0037] RJ45 interface module 102, used for sending and receiving clock synchronization data;

[0038] The Ethernet communication module 103 is connected to the RJ45 interface module 102 and the main controller module 104 respectively, and is used to transmit clock information to the main controller module 104;

[0039] The main controller module 104 is also connected to the JTAG module 101 for performing timing debugging according to the clock information, time stamp and timing program.

[0040] In this embodiment, clock synchronization information is obtained through the RJ45 interface module 102, and the clock synchronization data message is transmitted to the main controller module 104 via the Ethernet communication module 103. Furthermore, in order to achieve accurate time synchronization, the Ethernet communication module 103 marks the timestamp and transmits it to the main controller module 104, so that the main controller module 104 can perform data processing and calculation based on the clock synchronization data message and the marked timestamp, thereby generating a time synchronization instruction to guide the time synchronization operation.

[0041] In a specific embodiment, according to the timestamp information captured by the Ethernet communication module 103, the link entry delay and the clock deviation are calculated, and the message parsing and clock compensation are performed, so as to achieve synchronization between the device and the master clock.

[0042] It should be noted that, in order to improve the accuracy of time synchronization, the IEEE1588 protocol is selected as the time stamp source of the control device 100 with a time synchronization function.

[0043] In addition, the I / O interface is selected as the port for connecting the main controller module 104 with the outside. The outside can directly obtain and execute the timing instruction of the main controller module 104 by directly connecting to the I / O interface.

[0044] In a specific embodiment, if Figure 2 As shown, Figure 2 This is a structural schematic diagram of an embodiment of a main controller module provided by the utility model.

[0045] The main controller module 104 includes a main control chip M, a first capacitor C1, a second capacitor C2, a first resistor R1 and a crystal oscillator chip Y;

[0046] The first capacitor C1, the second capacitor C2, the first resistor R1 and the crystal oscillator chip Y constitute a crystal oscillator circuit, and the crystal oscillator circuit is used to generate and send a time synchronization instruction to the Ethernet communication module 103 according to the master clock timestamp and the slave clock timestamp;

[0047] The main control chip M is connected in series with the crystal oscillator circuit, the first capacitor C1 is connected in parallel with the second capacitor C2, the crystal oscillator chip Y is connected to the first capacitor C1 and the second capacitor C2 respectively, and the first capacitor C1 is also connected to the first resistor R1.

[0048] It should be noted that the main function of the crystal oscillator circuit is to generate a stable and accurate clock signal, which plays a vital role in electronic devices. The specific functions of the crystal oscillator circuit include:

[0049] 1. Provide clock signal. The crystal oscillator circuit acts as the main oscillator in the circuit, generating an oscillation signal with a fixed frequency. This signal is used as the clock signal in the circuit to provide a stable timing reference for digital circuits, processors, sensors, etc.

[0050] 2. Ensure signal synchronization. In digital circuits, crystal oscillators can be used as clock signal sources to ensure signal synchronization between various digital components. By distributing the clock signal generated by the crystal oscillator to various components, it can be ensured that they start working at the same time, avoiding data transmission errors or signal asynchrony problems.

[0051] 3. Realize signal conversion. Crystal oscillators can also be used for signal conversion, such as converting analog signals to digital signals, or converting high-frequency signals to low-frequency signals. These conversion processes require the use of crystal oscillators to provide a stable frequency reference to ensure the accuracy and reliability of the conversion results.

[0052] 4. Provide carrier frequency for wireless communication systems. In wireless communication systems, crystal oscillators can be used as frequency sources to provide stable carrier frequency for signals. This carrier frequency is used to modulate information signals and send them into the air. At the receiving end, the carrier frequency generated by the crystal oscillator is used to demodulate the signal and restore it to the original information.

[0053] 5. Ensure the consistency of communication protocols. In communication systems, crystal oscillators can also ensure the consistency of communication protocols. For example, in wireless communication technologies such as Bluetooth, Wi-Fi, and NFC, the clock signal generated by the crystal oscillator is used to synchronize various links of the communication protocol to ensure stable and reliable communication between various devices.

[0054] In this embodiment, by constructing a main controller module 104 with a crystal oscillator circuit to process the master clock timestamp and the slave clock timestamp of the power equipment, data synchronization can be effectively guaranteed, thereby reducing or even eliminating time deviation.

[0055] In addition, in order to ensure the coordination consistency between the main control chip M and the crystal oscillator circuit, the main control chip M includes at least one of a microcontroller, a digital signal processor, an ARM processor, a field programmable gate array, and a system on chip. By setting a high-precision main control chip M, the reliability of the entire main controller module 104 can be better guaranteed.

[0056] In a specific embodiment, if Figure 3 As shown, Figure 3 This is a structural schematic diagram of an embodiment of an Ethernet communication module provided by the utility model.

[0057] The Ethernet communication module 103 includes a PHY chip, a second resistor R2, a first inductor L1 and a magnetic bead LL;

[0058] The PHY chip is connected to the second resistor R2, the first inductor L1 and the magnetic bead LL respectively.

[0059] The PHY chip includes at least one of an Ethernet PHY chip, an optical fiber PHY chip, a wireless PHY chip and a SONET / SDH PHY chip.

[0060] It should be noted that the ferrite beads LL mainly play the role of electromagnetic compatibility (EMC) in Ethernet communication. The ferrite beads LL can absorb and isolate high-frequency electromagnetic waves, thereby suppressing electromagnetic interference and electromagnetic leakage, improving the anti-interference ability of the circuit, and ensuring the stable operation of the circuit.

[0061] Specifically, the magnetic beads LL have the following functions in Ethernet communication:

[0062] 1. Filtering: Magnetic beads LL can absorb ultra-high frequency signals to prevent these signals from interfering with communications. For example, in RF circuits, PLL, oscillation circuits, and ultra-high frequency memory circuits (such as DDR SDRAM, RAMBUS, etc.), magnetic beads LL need to be added to the power input part to absorb these high-frequency noise and spike interference.

[0063] 2. Electromagnetic compatibility: The high resistivity and permeability of the magnetic beads LL enable them to absorb electrostatic pulses, which helps protect the circuit from electrostatic discharge (ESD). In addition, the magnetic beads LL can also reduce electromagnetic radiation, thus meeting the requirements of electromagnetic compatibility.

[0064] 3. Improve signal transmission quality: Adding magnetic beads LL in the antenna and RF front-end module can improve the transmission quality and stability of the signal. This is very important for Ethernet communication because it needs to ensure accurate and reliable data transmission.

[0065] In a specific embodiment, if Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of an embodiment of the RJ45 interface module provided by the utility model. The RJ45 interface module 102 includes an Ethernet connector, a third resistor R3 and a third capacitor C3;

[0066] The Ethernet connector is connected to the third resistor R3 and the third capacitor C3 respectively.

[0067] The Ethernet connector includes at least one of an RJ-45 connector, an RJ-11 connector, a BNC connector and an SC connector.

[0068] It should be noted that the RJ45 interface module 102 can be directly connected to external power equipment, while the Ethernet communication module 103 cannot be directly connected to external power equipment. Therefore, a special Ethernet connector needs to be set up to connect to the Ethernet communication module 103 to obtain the command information in the Ethernet communication module 103, thereby guiding the external power equipment to perform timing operations.

[0069] Furthermore, in order to ensure the stability of power supply, Figure 5 As shown, Figure 5 This is a structural schematic diagram of the second embodiment of the control device with a time synchronization function provided by the utility model. The control device with a time synchronization function 100 also includes a power module 105, which is connected to the main controller module 104 and is used to power the chip in the main controller module 104.

[0070] Furthermore, if Figure 6 As shown, Figure 6This is a schematic diagram of the structure of an embodiment of the power module provided by the utility model. The power module 105 includes a DC-DC power chip, a fourth resistor R4, a fourth capacitor C4, a diode D and a second inductor L2;

[0071] The DC-DC power supply chip is connected to the fourth resistor R4 and the fourth capacitor C4 respectively, the diode D is connected to the fourth resistor R4 and the fourth capacitor C4 respectively, and the second inductor L2 is connected to the diode D and the fourth capacitor C4.

[0072] In order to ensure the stability of the DC-DC power supply chip, the DC-DC power supply chip includes at least one of a linear regulator, a switch mode power supply, a charge pump and a battery management unit.

[0073] Through the above method, the timing program is transmitted to the main controller module 104 through the JTAG module 101, and then the RJ45 interface module 102 is set to collect clock information; further, in order to achieve timing, the timestamp is marked through the Ethernet communication module 103 and transmitted to the main controller module 104, so that the main controller module 104 can perform data processing according to the clock information and timestamp, and generate timing instructions to guide the timing operation. Specifically, according to the timestamp information captured by the Ethernet communication module 103, the link entry delay and clock deviation are calculated, and the message parsing and clock compensation are performed, so as to achieve master-slave clock synchronization, so as to effectively reduce or even eliminate the time deviation.

[0074] In order to solve the above problems, the utility model also provides a time synchronization system, including the control device with the time synchronization function as described above.

[0075] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention.

Claims

1. A control device with a time synchronization function, characterized in that: include: JTAG module, used for debugging and downloading timing programs; RJ45 interface module, used to send and receive clock information; An Ethernet communication module, connected to the RJ45 interface module and the main controller module respectively, for marking a timestamp and transmitting the clock information and the timestamp to the main controller module; The main controller module is also connected to the JTAG module and is used for performing timing debugging according to the clock information, the timestamp and the timing program.

2. The control device with time synchronization function according to claim 1, characterized in that: The main controller module includes a main control chip, a first capacitor, a second capacitor, a first resistor and a crystal oscillator chip; Wherein, the first capacitor, the second capacitor, the first resistor and the crystal oscillator chip constitute a crystal oscillator circuit, and the crystal oscillator circuit is used to generate and send a time synchronization instruction to the Ethernet communication module according to the master clock timestamp and the slave clock timestamp; The main control chip is connected in series with the crystal oscillator circuit, the first capacitor is connected in parallel with the second capacitor, the crystal oscillator chip is connected to the first capacitor and the second capacitor respectively, and the first capacitor is also connected to the first resistor.

3. The control device with time synchronization function according to claim 2, characterized in that: The main control chip includes at least one of a microcontroller, a digital signal processor, an ARM processor, a field programmable gate array and a system on chip.

4. The control device with time synchronization function according to claim 1, characterized in that: The Ethernet communication module includes a PHY chip, a second resistor, a first inductor and a magnetic bead; Wherein, the PHY chip is connected to the second resistor, the first inductor and the magnetic bead respectively.

5. The control device with time synchronization function according to claim 4, characterized in that: The PHY chip includes at least one of an Ethernet PHY chip, an optical fiber PHY chip, a wireless PHY chip and a SONET / SDH PHY chip.

6. The control device with time synchronization function according to claim 1, characterized in that: The RJ45 interface module includes an Ethernet connector, a third resistor and a third capacitor; Wherein, the Ethernet connector is connected to the third resistor and the third capacitor respectively.

7. The control device with time synchronization function according to claim 6, characterized in that: The Ethernet connector includes at least one of an RJ-45 connector, an RJ-11 connector, a BNC connector, and an SC connector.

8. The control device with time synchronization function according to claim 1, characterized in that: The control device with a time synchronization function further comprises a power supply module, which is connected to the main controller module and is used to supply power to a chip in the main controller module.

9. The control device with time synchronization function according to claim 8, characterized in that: The power module includes a DC-DC power chip, a fourth resistor, a fourth capacitor, a diode and a second inductor; The DC-DC power supply chip is connected to the fourth resistor and the fourth capacitor respectively, the diode is connected to the fourth resistor and the fourth capacitor respectively, and the second inductor is connected to the diode and the fourth capacitor.

10. The control device with time synchronization function according to claim 9, characterized in that: The DC-DC power supply chip includes at least one of a linear regulator, a switch mode power supply, a charge pump and a battery management unit.

Citation Information

Cited By

  • Time synchronization implementation method of nanosecond point-to-point wireless communication equipment clock

    CN120614075A