IRIG-B decoding time synchronization device based on USB bus

By designing an IRIG-B decoding time-pair device based on USB bus in the field of power and energy, the problem of the lack of IRIG-B code time-pair interface of workstations and servers is solved, low-cost and high-precision time-pair service is achieved, and NTP is reduced Network timing error.

CN222028610UActive Publication Date: 2024-11-19ZHANGJIAKOU MAOYUAN INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202323504138.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2024-11-19
Estimated Expiration
2033-12-21

AI Technical Summary

Technical Problem

In the power field, workstations, servers and some communication management machines lack IRIG-B code timing interfaces, and existing solutions such as firewall connections and PCIe bus expansion have problems such as high cost and large NTP network timing errors.

Method used

Design an IRIG-B decoding timing device based on USB bus, including an isolation conversion circuit, a microcontroller, a driver and a timing unit, and realizes electrical isolation, decoding and timing of the IRIG-B code through a USB interface, and use microcontrollers to achieve the electrical isolation, decoding and timing of the IRIG-B code. The device performs TTL signal conversion and USB protocol communication, providing low-cost and high-precision time-to-time service.

Benefits of technology

It realizes low-cost and accurate IRIG-B code matching in the field of power and energy, reduces NTP network timing errors and adapts to the needs of a secure partitioning environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222028610U_ABST
    Figure CN222028610U_ABST
Patent Text Reader

Abstract

The utility model relates to an IRIG-B decoding time synchronization device based on a USB bus, and the device comprises an isolation conversion circuit which is configured to carry out the electrical isolation and TTL level conversion of an input IRIG-B code time synchronization signal; the microcontroller comprises an IRIG-B decoding unit and a communication unit, the IRIG-B decoding unit is configured to receive the converted IRIG-B code TTL signal and decode the converted IRIG-B code TTL signal, and the communication unit is configured to be connected with a USB interface to obtain power supply and communicate with a time synchronization unit deployed on a host through a USB bus protocol; and the driver and the time synchronization unit are deployed on a host, and the driver and the time synchronization unit are used for acquiring time through a USB (Universal Serial Bus) and carrying out time synchronization. According to the IRIG-B code time synchronization device, the USB interface can be directly adopted to communicate with a work station or a server, and IRIG-B code time synchronization based on a USB bus is achieved. Compared with the prior art, the method has the advantages of low cost and high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of IRIG-B code time synchronization, in particular to an IRIG-B decoding time synchronization device based on a USB bus. Background Art

[0002] IRIG-B (Inter-Range Instrumentation Group time code format B) is a time coding standard for synchronized measurement and control systems. It is widely used in scientific experiments, test and measurement systems, especially in aerospace, defense and industrial applications. For example, in the field of electric power, time synchronization services are generally required in secondary equipment of new energy stations, power plants and substations. However, under the current circumstances, workstations, servers and some communication management machines in the field of electric power do not have IRIG-B code time synchronization interfaces. Moreover, due to the principle of power system security partitioning, the NTP network time synchronization server cannot be directly connected to devices in other partitions. The current common solution is to either set up a time synchronization server in each security partition or connect the security partitions through a firewall, and then perform network time synchronization through the NTP protocol. Another common way of the prior art is to extend the IRIG-B code time synchronization interface for workstations or servers through the PCIe bus. Both of the above solutions can adapt to the security partition environment of the power system and realize the IRIG-B code time synchronization service. However, both the firewall-based and PCIe bus-based methods have high costs, and in the firewall solution, NTP network timing has a larger error than IRIG-B code timing. Summary of the invention

[0003] In view of the above problems existing in the prior art, the purpose of the utility model is to provide an IRIG-B decoding and timing device based on a USB bus which has low cost and accurate timing.

[0004] In order to achieve the above object, the utility model provides an IRIG-B decoding and timing device based on a USB bus in one aspect, comprising:

[0005] An isolation conversion circuit configured to perform electrical isolation and TTL level conversion on an input IRIG-B code timing signal;

[0006] A microcontroller, the microcontroller comprising an IRIG-B decoding unit and a communication unit, the IRIG-B decoding unit being configured to receive and decode the converted IRIG-B code TTL signal, the communication unit being configured to connect to a USB interface to obtain power supply and communicate with a timing unit deployed on a host through a USB bus protocol;

[0007] The driver and the timing unit are deployed on the host, and the time is obtained and synchronized through the USB bus.

[0008] In the present utility model, the host includes a server, a workstation, a communication management machine, etc. The timing unit is a dedicated timing module that complies with the IRIG-B code protocol, such as timing software. This technical means is widely used in domestic power, aerospace, communication, military and other fields, and it itself does not belong to the scope of protection claimed by the present utility model.

[0009] Preferably, the isolation conversion circuit is electrically connected to the microcontroller and the RS485 bus communication interface, and can be an isolated RS485 chip or an isolation chip split design.

[0010] Preferably, a surge protection circuit is provided between the isolation conversion circuit and the RS485 bus communication interface.

[0011] Preferably, the RS485 bus communication interface includes an RS485A line and an RS485B line, and the surge protection circuit includes a first resistor, a second resistor, a first filter capacitor, a second filter capacitor, a TVS tube, a common mode choke, a first recoverable fuse and a second recoverable fuse electrically connected to the RS485A line and the RS485B line respectively; the first resistor and the second resistor are configured to maintain a high level when the interface of the RS485 bus communication interface is idle; the first filter capacitor and the second filter capacitor are configured to filter out high-frequency differential interference on the RS485 bus communication interface; the TVS tube is configured to achieve surge overvoltage protection; the common mode choke is configured to filter out high-frequency common-mode interference on the RS485 bus communication interface; the first recoverable fuse and the second recoverable fuse are configured to disconnect when the current is greater than a preset value.

[0012] Preferably, when the IRIG-B decoding unit performs decoding, the decoding content includes:

[0013] 1PPS transition edge detection; and,

[0014] Parse time scale data, leap second information, time signal quality, time zone information.

[0015] Preferably, the IRIG-B decoding unit is further configured to generate a UTC timestamp according to the parsed time scale data, leap second information and time zone information.

[0016] Preferably, the microcontroller also includes a delay correction unit, and the IRIG-B decoding unit is also configured to immediately start the delay correction unit to time with a resolution of 0.1 microseconds after detecting the 1PPS transition edge, and when the communication unit communicates with the drive and timing unit, microsecond and millisecond information is generated according to the timing results.

[0017] Preferably, the microcontroller further comprises a status monitoring and resetting unit, which is configured to monitor the operating status of the IRIG-B decoding unit, the communication unit and / or the USB interface in real time and reset the corresponding modules according to preset conditions.

[0018] Preferably, the drive and timing unit sends a confirmation frame after receiving the communication message, and the microcontroller is configured to determine whether the USB interface and the communication unit are abnormal based on the confirmation frame. If so, reset the USB protocol stack and re-establish the connection.

[0019] Preferably, the USB interface is an integrated design of a USB-A male port, or an independent design of a USB-B female port.

[0020] The utility model can directly use the USB interface to communicate with the workstation or server to realize the IRIG-B code time synchronization based on the USB bus. Compared with the prior art, it has the beneficial effect of low cost, and compared with the NTP network time synchronization, it also has the advantage of high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 The utility model is a logic structure block diagram of an IRIG-B decoding and timing device based on USB bus.

[0022] Figure 2 The utility model is a circuit structure diagram of an isolation conversion circuit of an IRIG-B decoding and timing device based on a USB bus.

[0023] Main reference numerals:

[0024] 1-isolation conversion circuit; 2-IRIG-B decoding unit; 3-delay correction unit; 4-communication unit; 5-status monitoring and reset unit; 6-USB interface; 7-drive and timing unit; 11-microcontroller; 12-isolation chip; 13-first resistor; 14-second resistor; 15-first filter capacitor; 16-second filter capacitor; 17-TVS tube; 18-common mode choke; 19-first resettable fuse; 20-second resettable fuse. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0026] Various aspects and features of the present invention are described herein with reference to the accompanying drawings.

[0027] These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment given as a non-limiting example, with reference to the accompanying drawings.

[0028] It should also be understood that although the present invention has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present invention that have the features described in the claims and are therefore within the scope of protection defined thereby.

[0029] The above and other aspects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

[0030] Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it should be understood that the invented embodiments are merely examples of the present invention, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to determine the true intent based on the user's historical operations and to avoid unnecessary or redundant details that make the present invention unclear. Therefore, the specific structural and functional details invented herein are not intended to be limiting, but are merely used as the basis and representative basis for the claims to teach those skilled in the art to use the present invention in a variety of ways with substantially any appropriate detailed structure.

[0031] Figure 1 The figure shows a logic structure block diagram of an IRIG-B decoding and timing device based on a USB bus of the utility model. Figure 1 As shown, an IRIG-B decoding and timing device based on a USB bus provided by an embodiment of the utility model includes:

[0032] An isolation conversion circuit 1 is configured to perform electrical isolation and TTL level conversion on an input IRIG-B code timing signal;

[0033] A microcontroller 11, wherein the microcontroller 11 includes an IRIG-B decoding unit 2 and a communication unit 4, wherein the IRIG-B decoding unit 2 is configured to receive and decode the converted IRIG-B code TTL signal, and the communication unit 4 is configured to be connected to a USB interface 6 to obtain power (generally a 5V power supply of a standard USB interface) and communicate with a timing unit deployed on the host through a USB bus protocol; preferably, the USB interface is an integrated design of a USB-A male port, or an independent design of a USB-B female port.

[0034] The driver and the timing unit are deployed on the host, and the timing unit is configured to obtain time and synchronize time through a USB bus.

[0035] In the present utility model, the host includes a server, a workstation, a communication management machine, etc. The timing unit is a dedicated timing module that complies with the IRIG-B code protocol, such as timing software. This technical means is widely used in domestic power, aerospace, communication, military and other fields, and it itself does not belong to the scope of protection required by the present utility model. Taking the timing software as an example, when the timing software receives the communication message sent by the device and sends a confirmation frame, the microcontroller 11 is also configured to determine whether the USB interface 6 and the communication unit 4 are abnormal according to the confirmation frame. If so, reset the USB protocol stack and re-establish the connection.

[0036] In some embodiments, an isolated RS485 chip with isolated DCDC may be used, or an isolated chip split design may be used. Figure 2 The circuit structure diagram of the isolation conversion circuit of the IRIG-B decoding and timing device based on the USB bus of the utility model is shown. Figure 2 As shown, the isolation conversion circuit 1 is electrically connected to the microcontroller and the RS485 bus communication interface. In some applications, in order to prevent static electricity or lightning from damaging the device, such as Figure 2 As shown, preferably, a surge protection circuit is provided between the isolation conversion circuit and the RS485 bus communication interface. Specifically, the RS485 bus communication interface includes an RS485A line and an RS485B line, and the surge protection circuit includes a first resistor 13 (R1), a second resistor 14 (R2, a first filter capacitor 15 (C1), a second filter capacitor 16 (C2), a TVS tube 17 (D1, D2, D3), a common mode choke 18 (L1), a first resettable fuse 19 (PTC1) and a second resettable fuse 20 (PTC2) which are electrically connected to the RS485A line and the RS485B line respectively. 3 and the second resistor 14 are configured to maintain a high level when the interface of the RS485 bus communication interface is idle; the first filter capacitor 15 and the second filter capacitor 16 are configured to filter out high-frequency differential interference on the RS485 bus communication interface; the TVS tube 17 can be specifically provided with three, which are configured to achieve surge overvoltage protection; the common-mode choke 18 is configured to filter out high-frequency common-mode interference on the RS485 bus communication interface; the first resettable fuse 19 and the second resettable fuse 20 are configured to disconnect when the current is greater than a preset value.

[0037] In the present invention, preferably, when the IRIG-B decoding unit performs decoding, the decoding content specifically includes: 1PPS jump edge detection; parsing time stamp data, leap second information, time signal quality, time zone information. The IRIG-B decoding unit is also configured to generate a UTC timestamp according to the parsed time stamp data, leap second information and time zone information.

[0038] Another example Figure 1 As shown, in some improvements of the present invention, the microcontroller 11 also includes a delay correction unit 3, and the IRIG-B decoding unit 2 is also configured to immediately start the delay correction unit 3 to time with a resolution of 0.1 microseconds after detecting the 1PPS transition edge, and when the communication unit 4 communicates with the drive and timing unit 7, microsecond and millisecond information is generated according to the timing results.

[0039] Furthermore, the microcontroller 11 further includes a status monitoring and resetting unit 5, which is configured to monitor the operating status of the IRIG-B decoding unit 2, the communication unit 4 and / or the USB interface 6 in real time and reset the corresponding modules according to preset conditions. The preset conditions can be exemplified by IRIG-B code loss, USB communication abnormality or IRIG-B code decoding failure.

[0040] It is worth noting that, in the present invention, the IRIG-B decoding unit 2, the delay correction unit 3, the communication unit 4, the state monitoring and reset unit 5 can be implemented by a microcontroller 11 (MCU) based on software, or by CPLD / FPGA hardware. Optionally, the communication unit 4 can also use an independent USB chip to implement the USB bus protocol.

[0041] The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention. The protection scope of the present invention is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present invention, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.

Claims

1. An IRIG-B decoding and timing device based on USB bus, characterized in that: include: An isolation conversion circuit configured to perform electrical isolation and TTL level conversion on an input IRIG-B code timing signal; A microcontroller, the microcontroller comprising an IRIG-B decoding unit and a communication unit, the IRIG-B decoding unit being configured to receive and decode the converted IRIG-B code TTL signal, the communication unit being configured to connect to a USB interface to obtain power supply and communicate with a timing unit deployed on a host through a USB bus protocol; The driver and the timing unit are deployed on the host, and the time is obtained and synchronized through the USB bus.

2. The IRIG-B decoding and timing device based on the USB bus as claimed in claim 1, characterized in that: The isolation conversion circuit is electrically connected to the microcontroller and the RS485 bus communication interface, and can be an isolated RS485 chip or an isolation chip split design.

3. The IRIG-B decoding and timing device based on USB bus as claimed in claim 2, characterized in that: A surge protection circuit is provided between the isolation conversion circuit and the RS485 bus communication interface.

4. The IRIG-B decoding and timing device based on the USB bus as claimed in claim 3, characterized in that: The RS485 bus communication interface includes an RS485A line and an RS485B line, and the surge protection circuit includes a first resistor, a second resistor, a first filter capacitor, a second filter capacitor, a TVS tube, a common mode choke, a first recoverable fuse and a second recoverable fuse electrically connected to the RS485A line and the RS485B line respectively; the first resistor and the second resistor are configured to maintain a high level when the interface of the RS485 bus communication interface is idle; the first filter capacitor and the second filter capacitor are configured to filter out high-frequency differential interference on the RS485 bus communication interface; the TVS tube is configured to achieve surge overvoltage protection; the common mode choke is configured to filter out high-frequency common-mode interference on the RS485 bus communication interface; the first recoverable fuse and the second recoverable fuse are configured to disconnect when the current is greater than a preset value.

5. The IRIG-B decoding and timing device based on USB bus as claimed in claim 1, characterized in that: The microcontroller also includes a delay correction unit, and the IRIG-B decoding unit is also configured to immediately start the delay correction unit to time with a resolution of 0.1 microseconds after detecting the 1PPS jump edge, and when the communication unit communicates with the drive and timing unit, generate microsecond and millisecond information according to the timing results.

6. The IRIG-B decoding and timing device based on USB bus as claimed in claim 1, characterized in that: The microcontroller also includes a status monitoring and resetting unit, which is configured to monitor the operating status of the IRIG-B decoding unit, the communication unit and / or the USB interface in real time and reset the corresponding modules according to preset conditions.

7. The IRIG-B decoding and timing device based on USB bus as claimed in claim 1, characterized in that: The USB interface is an integrated design of a USB-A male port, or an independent design of a USB-B female port.

Citation Information

Cited By

  • Smart energy control terminal device for new energy field

    CN223362522U