Power system quality evaluation test method based on TSN synchronization technology

The power system quality assessment and testing method based on TSN synchronization technology solves the problems of insufficient channel number, low sampling rate and susceptibility to environmental interference in existing technologies, and realizes high-precision and easily scalable power system data acquisition and analysis.

CN119030653APending Publication Date: 2024-11-26BEIJING JIUYI MEASUREMENT & CONTROL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411137394.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Existing power quality assessment technologies for ship power systems have limited channels and low sampling rates in single, independent testing systems. Their hardware triggering methods are also susceptible to interference from the field environment, making them unsuitable for large-scale power system applications.

Method used

A power system quality assessment and testing method based on TSN synchronization technology is adopted. A distributed trigger acquisition system consisting of four lower-level machines, a switch, a host computer, a time server, and a GPS antenna is used to achieve seamless operation of the hardware and software of all lower-level machines. Data acquisition and transmission are carried out through a future time triggering mechanism, and data packets are integrated and analyzed using the TCP/IP protocol.

Benefits of technology

It achieves high sampling rate data acquisition and analysis with 256 channels and 50KS/s/ch, with trigger synchronization accuracy better than 2us, making it suitable for large-scale power system evaluation. It also requires no additional trigger cables and the system framework is easy to expand.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030653A_ABST
    Figure CN119030653A_ABST
Patent Text Reader

Abstract

The invention discloses an electric power system quality evaluation test method based on a TSN synchronization technology, and relates to the technical field of electric power system evaluation. The system comprises four lower computers, an interaction machine, an upper computer, a time server and a GPS antenna, the lower computers run a Rea-Time real-time operating system, and a switch supports a TSN protocol. According to the invention, based on a triggering mechanism of a future moment, the triggering synchronization precision between any channels is better than 2us, no extra triggering cable is needed, data transmission and triggering moment issuing can be realized only through a network cable, all the time-service lower computers synchronously trigger and collect, and acquisition and storage of all sensor data are completed; by supporting extension of the lower computer acquisition module and extension of the lower computer cluster, a system framework and design do not need to be adjusted, only the number of channels of the acquisition module needs to be updated, and the method is suitable for scenes of large-scale electric power system electric energy quality evaluation and can also be popularized to other multi-channel data acquisition fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system evaluation, and in particular to a power system quality evaluation test method based on TSN synchronization technology. Background Art

[0002] Previously, there were few technical solutions for power quality assessment of ship power systems. The generally implemented solutions were based on a single independent acquisition system. Limited by the number of channels and sampling rate, such test systems can collect local sensor data of ship power systems for analysis and display, but the data acquisition is not comprehensive enough. Alternatively, a hardware-triggered synchronization method is used, relying on on-site deployment of dedicated trigger cables to obtain all sensor data. This solution has high requirements on the quality of the trigger signal and is easily affected by the on-site environment. It is not suitable for large-scale, long-distance power system application scenarios.

[0003] The existing technical solutions for power quality assessment of ship power systems have a small number of channels in a single independent test system and a low sampling rate, which can only meet the analysis requirements of some tests and the depth of test analysis is insufficient. The test system using hardware triggering requires the deployment of special cables, and different deployment points require cable connections. Limited by the distance between measurement points and the complex on-site environment, the trigger signal of this solution is easily interfered with and easily triggered by mistake. The hardware expansion is not flexible enough. Both design solutions are difficult to match larger-scale power system application scenarios.

[0004] Therefore, a power system quality assessment test method based on TSN synchronization technology is proposed. Summary of the invention

[0005] The purpose of the present invention is to solve the problems raised in the above background technology. The present invention provides a power system quality assessment test method based on TSN synchronization technology.

[0006] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:

[0007] A power system quality assessment test method based on TSN synchronization technology includes four lower computers, an interactive computer, a host computer, a time server and a GPS antenna. The lower computers run a RealTime real-time operating system, the switches support the TSN protocol, and the time server is a time-based distributed trigger acquisition system.

[0008] Furthermore, the development programs running on the real-time operating systems of the four slave computers are completely consistent, and all trigger acquisition based on the local real-time operating system host time. The host time comes from the trigger time instruction generated by the upper computer, which is a future time. The future trigger time instructions received by all slave computers are consistent. More specifically, this operation can ensure that the software and hardware of all slave computers work without distinction.

[0009] Furthermore, the data collected by the lower computer is transmitted to the upper computer via the TCP / IP protocol, and the TCP packet thread of the upper computer integrates the data packets and then performs online analysis, display and real-time storage to complete the corresponding functional test.

[0010] Furthermore, the operating steps of the system are as follows:

[0011] Step 1: Set up the time server. After connecting the external GPS antenna, set the time server port IP address to match the host computer and TSN switch network segment, and update the GPS time to the time server system time.

[0012] Step 2: Set the TSN switch NTP timing to the host computer, obtain the NTP timing source on the host computer, and select the IP address of the corresponding network port of the TSN switch;

[0013] Step 3: Set the TSN switch PTP timing to all lower-level computer clusters, set the system time PTP timing on the TSN switch to all lower-level computers, and complete the unification of the lower-level computer system time;

[0014] Step 4: The lower computer runs the timing software thread. All lower computer software are consistent. Each lower computer software is designed with a timing thread to run and obtain the TSN switch system time.

[0015] Step 5: The lower computer runs the software thread to update the system time. After all the lower computer timing operations are completed, the local system time of the lower computer is updated at a custom interval;

[0016] Step 6: The upper computer sends a future time trigger instruction. After all the lower computers are updated to the latest GPS absolute time, the lower computer sends the future time trigger instruction to each lower computer via TCP;

[0017] Step 7: The lower computer receives the future time trigger instruction and waits for the trigger. After receiving the future time trigger instruction sent by the upper computer, all the lower computers parse it and run the acquisition thread to wait for the trigger action at that moment;

[0018] Step 8: All lower computers trigger the data upload after collection. All lower computers trigger the collection action at the specified future time, obtain the collected data and upload it through TCP;

[0019] Step 9: The upper computer aggregates and integrates the data. The upper computer processes and integrates the TCP data of all the lower computers, and displays, stores and analyzes the data in real time after reorganization.

[0020] Furthermore, the TCP data packet processing integration algorithm is specifically as follows:

[0021] Step S1: The upper computer buffers the data packets transmitted from each lower computer, and buffers three packets of data to form a buffer pool;

[0022] Step S2: The host computer takes out the data packets with the same ID from the packet pool and distributes them to the display, analysis and storage threads through the queue. If there are no four packets with the same ID in the current packet pool, it waits for the data receiving process again and processes the packets again.

[0023] Step S3: If no valid packet is found when the packet pool is full, the earliest packet of data of each lower computer is discarded and the next data reception is waited.

[0024] Furthermore, since the hardware and software of the four slave computers are completely consistent, once the TCP link between the upper and lower computers is established, the interval between each packet of data is relatively stable, and the buffer pool of three packets of data on each slave computer is sufficient to find data packets with the same ID.

[0025] Furthermore, after completing the packet processing, a larger buffer pool can be opened up for packet processing according to the performance of the host computer to improve the fault tolerance space.

[0026] Furthermore, the lower computer system supports TSN802.1AS protocol.

[0027] The beneficial effects of the present invention are as follows:

[0028] This system realizes full-channel data collection and analysis with 256 channels and 50KS / s / ch sampling rate through the real-time system lower-computer cluster architecture with no difference in software and hardware and the upper-computer TCP packet matching algorithm. The lower-computer cluster can be easily expanded through the TSN switch.

[0029] This system is based on the trigger mechanism of the future moment, and achieves a trigger synchronization accuracy better than 2us between any channels. No additional trigger cable is required, and data transmission and trigger time issuance can be achieved only through the network cable. All lower computers that have been timed will trigger the collection synchronously to complete the acquisition and storage of all sensor data.

[0030] This system can support the expansion of the lower computer acquisition module and the expansion of the lower computer cluster. The system framework and design do not need to be adjusted. Only the number of channels of the acquisition module needs to be updated. It is suitable for the scenario of power quality assessment of large-scale power systems and can also be extended to other multi-channel data acquisition fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a schematic diagram of the overall system of the present invention;

[0032] Figure 2 It is a schematic diagram of the timing link of the system of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0034] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In addition, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0036] In the description of the embodiments of the present invention, it should be noted that the terms "inside", "outside", "upper", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the inventive product is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0037] like Figure 1 to Figure 2As shown in the figure, a power system quality assessment test method based on TSN synchronization technology includes four lower computers, an interactive computer, a host computer, a time server and a GPS antenna. The lower computers run the RealTime real-time operating system, the switch supports the TSN protocol, and the time server is a time-based distributed trigger acquisition system. Specifically, this system is a time-based distributed trigger acquisition system. GPS transmits GPS time to the time server system clock through the NMEA-0183 standard protocol. The time server uses the NTP protocol to synchronize the system clocks of the host computer and the TSN switch, and the TSN switch uses the 802.1AS protocol PTP to synchronize the system clocks of four embedded host computers. The ship power data acquisition and analysis system adopts an action mechanism based on future time triggering and TSN synchronization technology to unify the system time of all lower computers. A real-time system lower computer cluster architecture and a host computer TCP packet pairing algorithm with no difference in software and hardware are designed. 256-channel power system sensor data are acquired in real time at a sampling rate of 50KS / s / CH, and online analysis and real-time storage are performed. The specific function calculation software module written according to the requirements provides real and effective analysis data for the ship power system evaluation. The designed system architecture model is easy to expand and suitable for large-scale application and promotion.

[0038] The development programs running on the real-time operating systems of the four slave computers are completely consistent, and all trigger acquisition based on the local real-time operating system host time. The host time comes from the trigger time instruction generated by the upper computer, which is a future time. The future trigger time instructions received by all slave computers are consistent. More specifically, this operation can ensure that the software and hardware of all slave computers work indiscriminately.

[0039] The data collected by the lower computer is transmitted to the upper computer via the TCP / IP protocol. The TCP packet thread of the upper computer integrates the data packets and then performs online analysis, display and real-time storage to complete the corresponding functional test.

[0040] The system operates as follows:

[0041] Step 1: Set up the time server. After connecting the external GPS antenna, set the time server port IP address to match the host computer and TSN switch network segment, and update the GPS time to the time server system time.

[0042] Step 2: Set the TSN switch NTP timing to the host computer, obtain the NTP timing source on the host computer, and select the IP address of the corresponding network port of the TSN switch;

[0043] Step 3: Set the TSN switch PTP timing to all lower-level computer clusters, set the system time PTP timing on the TSN switch to all lower-level computers, and complete the unification of the lower-level computer system time;

[0044] Step 4: The lower computer runs the timing software thread. All lower computer software are consistent. Each lower computer software is designed with a timing thread to run and obtain the TSN switch system time.

[0045] Step 5: The lower computer runs the software thread to update the system time. After all the lower computer timing operations are completed, the local system time of the lower computer is updated at a custom interval;

[0046] Step 6: The upper computer sends a future time trigger instruction. After all the lower computers are updated to the latest GPS absolute time, the lower computer sends the future time trigger instruction to each lower computer via TCP;

[0047] Step 7: The lower computer receives the future time trigger instruction and waits for the trigger. After receiving the future time trigger instruction sent by the upper computer, all the lower computers parse it and run the acquisition thread to wait for the trigger action at that moment;

[0048] Step 8: All lower computers trigger the data upload after collection. All lower computers trigger the collection action at the specified future time, obtain the collected data and upload it through TCP;

[0049] Step 9: The upper computer aggregates and integrates the data. The upper computer processes and integrates the TCP data of all the lower computers, and displays, stores and analyzes the data in real time after reorganization.

[0050] The TCP data packet processing integration algorithm is as follows:

[0051] Step S1: The upper computer buffers the data packets transmitted from each lower computer, and buffers three packets of data to form a buffer pool;

[0052] Step S2: The host computer takes out the data packets with the same ID from the packet pool and distributes them to the display, analysis and storage threads through the queue. If there are no four packets with the same ID in the current packet pool, it waits for the data receiving process again and processes the packets again.

[0053] Step S3: If no valid packet is found when the packet pool is full, the earliest packet of data of each lower computer is discarded and the next data reception is waited.

[0054] Since the hardware and software of the four slave computers are completely identical, once the TCP link between the upper and lower computers is established, the interval between each data packet is relatively stable, and the buffer pool of three packets of data on each slave computer is sufficient to find data packets with the same ID.

[0055] After completing the packet processing, you can also open up a larger buffer pool for packet processing based on the performance of the host computer to increase the fault tolerance space.

[0056] The lower computer system supports TSN802.1AS protocol.

[0057] In summary: through the real-time system lower computer cluster architecture with no difference in software and hardware and the upper computer TCP packet pairing algorithm, full-channel data collection and analysis with 256 channels and 50KS / s / ch sampling rate is realized. The lower computer cluster can be easily expanded through the TSN switch. Through the trigger mechanism based on the future moment, the trigger synchronization accuracy between any channels is better than 2us. No additional trigger cable is required. Data transmission and trigger time can be sent only through the network cable. All lower computers after timing are synchronously triggered for collection, and all sensor data are acquired and stored. The expansion of the lower computer acquisition module and the expansion of the lower computer cluster can be supported by settings. The system framework and design do not need to be adjusted. Only the number of channels of the acquisition module needs to be updated. It is suitable for the scenario of power quality assessment of large-scale power systems, and can also be extended to other multi-channel data acquisition fields.

[0058] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. A power system quality assessment test method based on TSN synchronization technology, characterized in that: It includes four lower computers, an interactive computer, a host computer, a time server and a GPS antenna. The lower computers run the Real-Time real-time operating system, the switch supports the TSN protocol, and the time server is a time-based distributed trigger acquisition system.

2. According to claim 1, a power system quality assessment test method based on TSN synchronization technology is characterized in that: The development programs running on the real-time operating systems of the four slave computers are completely consistent, and all trigger acquisition based on the local real-time operating system host time. The host time comes from the trigger time instruction generated by the upper computer, which is a future time. The future trigger time instructions received by all slave computers are consistent. More specifically, this operation can ensure that the software and hardware of all slave computers work without distinction.

3. A power system quality assessment test method based on TSN synchronization technology according to claim 2, characterized in that: The data collected by the lower computer is transmitted to the upper computer via the TCP / IP protocol, and the TCP packet thread of the upper computer integrates the data packets and then performs online analysis, display and real-time storage to complete the corresponding functional test.

4. The power system quality assessment test method based on TSN synchronization technology according to claim 1 is characterized in that: The system operates as follows: Step 1: Set up the time server. After connecting the external GPS antenna, set the time server port IP address to match the host computer and TSN switch network segment, and update the GPS time to the time server system time. Step 2: Set the TSN switch NTP timing to the host computer, obtain the NTP timing source on the host computer, and select the IP address of the corresponding network port of the TSN switch; Step 3: Set the TSN switch PTP timing to all lower-level computer clusters, set the system time PTP timing on the TSN switch to all lower-level computers, and complete the unification of the lower-level computer system time; Step 4: The lower computer runs the timing software thread. All lower computer software are consistent. Each lower computer software is designed with a timing thread to run and obtain the TSN switch system time. Step 5: The lower computer runs the software thread to update the system time. After all the lower computer timing operations are completed, the local system time of the lower computer is updated at a custom interval; Step 6: The upper computer sends a future time trigger instruction. After all the lower computers are updated to the latest GPS absolute time, the lower computer sends the future time trigger instruction to each lower computer via TCP; Step 7: The lower computer receives the future time trigger instruction and waits for the trigger. After receiving the future time trigger instruction sent by the upper computer, all the lower computers parse it and run the acquisition thread to wait for the trigger action at that moment; Step 8: All lower computers trigger the data upload after collection. All lower computers trigger the collection action at the specified future time, obtain the collected data and upload it through TCP; Step 9: The upper computer aggregates and integrates the data. The upper computer processes and integrates the TCP data of all the lower computers, and displays, stores and analyzes the data in real time after reorganization.

5. The power system quality assessment test method based on TSN synchronization technology according to claim 1 is characterized in that: The TCP data packet processing integration algorithm is specifically as follows: Step S1: The upper computer buffers the data packets transmitted from each lower computer, and buffers three packets of data to form a buffer pool; Step S2: The host computer takes out the data packets with the same ID from the packet pool and distributes them to the display, analysis and storage threads through the queue. If there are no four packets with the same ID in the current packet pool, it waits for the data receiving process again and processes the packets again. Step S3: If no valid packet is found when the packet pool is full, the earliest packet of data of each lower computer is discarded and the next data reception is waited.

6. A power system quality assessment test method based on TSN synchronization technology according to claim 4, characterized in that: Since the hardware and software of the four slave computers are completely identical, once the TCP link between the upper and lower computers is established, the interval between each data packet is relatively stable, and the buffer pool of three packets of data on each slave computer is sufficient to find data packets with the same ID.

7. A power system quality assessment test method based on TSN synchronization technology according to claim 6, characterized in that: After completing the packet processing, you can also open up a larger buffer pool for packet processing based on the performance of the host computer to increase the fault tolerance space.

8. The power system quality assessment test method based on TSN synchronization technology according to claim 4 is characterized in that: The lower computer system supports the TSN802.1AS protocol.

Citation Information

Cited By

  • Distributed acquisition system and data processing method

    CN121619053A