Ethernet transmission-based data encapsulation method, probe, acquisition method, and system

By adopting data packaging method based on Ethernet transmission in industrial equipment, using time to clarify the time information of Ethernet packets, the problem of unclear data time logic in industrial equipment data acquisition system is solved, and high-precision time is achieved Alignment and time reference provision.

WO2025000733A1PCT designated stage expired Publication Date: 2025-01-02FOSHAN IND TECHNOLOGY RESEARCH INSTITUTE OF GUANGDONG ACADEMY OF SCIENCES CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/122905
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-27
Filing Date
2023-09-28
Publication Date
2025-01-02

AI Technical Summary

Technical Problem

Due to the lack of high-precision clock synchronization, the existing industrial equipment data acquisition system cannot realize the unified time plane of the data, resulting in unclear data time logic and inability to conduct comprehensive analysis.

Method used

Using the data encapsulation method based on Ethernet transmission, by listening to Ethernet messages generated by industrial equipment, using time to clarify the network time-gate locking time information, encapsulating the first Ethernet message and time information into the second Ethernet message, Achieve high-precision time alignment of industrial data.

Benefits of technology

It realizes high-precision time alignment of industrial discrete data, provides a time benchmark, and provides an accurate time reference for industrial data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023122905_02012025_PF_FP_ABST
    Figure CN2023122905_02012025_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of communications, and specifically disclosed are an Ethernet transmission-based data encapsulation method, a probe, an acquisition method, and a system. The encapsulation method comprises the steps of: when a first Ethernet packet is heard, locking first time information determined on the basis of a time aware network time signal; and, using the first Ethernet packet and the first time information as data, performing encapsulation to acquire a second Ethernet packet. In the encapsulation method, when the first Ethernet packet generated and transmitted by an industrial device is heard, an occurrence occasion of the first Ethernet packet is locked on the basis of the time aware network time signal, so as to encapsulate the first Ethernet packet and the first time information into the second Ethernet packet, thereby implementing high-precision time alignment of industrial discrete data, and the first Ethernet packet and the high-precision time of a TAN system corresponding thereto can be acquired by parsing the second Ethernet packet, so that a time reference can be provided for analysis of a variety of types of industrial data.
Need to check novelty before this filing date? Find Prior Art

Description

Data encapsulation method, probe, acquisition method and system based on Ethernet transmission Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data encapsulation method, probe, acquisition method and system based on Ethernet transmission. Background Art

[0002] Existing industrial equipment generally relies on independent data acquisition devices to collect device data, which cannot achieve large-scale synchronous collection. The main reason is that the collected data is not unified on the same time plane. For example, there is no high-precision clock synchronization between the collection devices, and accurate time alignment cannot be achieved. As a result, the time logic of the data is unclear and all data cannot be integrated for centralized analysis.

[0003] There is currently no effective technical solution to the above problems.

[0004] Summary of the Invention

[0005] The purpose of this application is to provide a data encapsulation method, probe, acquisition method and system based on Ethernet transmission to achieve time alignment of industrial data.

[0006] In a first aspect, the present application provides a data encapsulation method based on Ethernet transmission, the data encapsulation method based on Ethernet transmission comprising the following steps:

[0007] When the first Ethernet message is intercepted, the first time information determined based on the time-clear network timing is locked;

[0008] A second Ethernet message is obtained by using the first Ethernet message and the first time information as data encapsulation.

[0009] The data encapsulation method based on Ethernet transmission of the present application can be applied to industrial data collection. When a first Ethernet message generated and transmitted by industrial equipment is intercepted, the timing of the occurrence of the first Ethernet message is locked based on the time-clear network timing, so that the first Ethernet message and the first time information are encapsulated into a second Ethernet message, thereby achieving high-precision time alignment of industrial discrete data. The second Ethernet message can be used as monitoring data or historical data. Parsing the second Ethernet message can obtain the first Ethernet message and the corresponding TAN format high-precision time, which can provide a time benchmark for various industrial data analyses.

[0010] In the data encapsulation method based on Ethernet transmission, the step of obtaining a second Ethernet message by encapsulating the first Ethernet message and the first time information as data includes:

[0011] encapsulating the first Ethernet message into a first TAN message according to the first time information;

[0012] The second Ethernet message is obtained by using the first TAN message as data encapsulation.

[0013] In a second aspect, the present application further provides a probe installed on a network cable or optical fiber connected to industrial equipment, the probe comprising:

[0014] A transmission module, configured to transmit a first Ethernet message;

[0015] an encapsulation module, configured to intercept the transmission module and, when intercepting the first Ethernet message, lock the first time information determined based on the time-clear network timing, and obtain a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation;

[0016] An uploading module is used to upload the second Ethernet message.

[0017] The probe of the present application is used to listen to the message data in the communication network composed of industrial equipment. When the first Ethernet message generated and transmitted by the industrial equipment is listened to through the encapsulation module, it can lock the occurrence timing of the first Ethernet message based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message, thereby realizing high-precision time alignment of industrial discrete data, and then using the upload module to upload the second Ethernet message to the corresponding data processing equipment; parsing the second Ethernet message can obtain the first Ethernet message and the corresponding TAN format high-precision time, which can provide a time reference for various industrial data analyses.

[0018] The probe, wherein the data content of the second Ethernet message includes data transmission direction information of the transmission module.

[0019] The probe, wherein the data content of the second Ethernet message includes probe ID information.

[0020] The probe, wherein the transmission module includes multiple groups of data transparent transmission ports.

[0021] In a third aspect, the present application further provides a data acquisition method based on Ethernet transmission, which is applied to a data acquisition system based on Ethernet transmission, wherein the data acquisition system based on Ethernet transmission includes:

[0022] A master clock source, a data platform, and multiple industrial devices, at least two of which are connected via network cables or optical fiber communications;

[0023] The data acquisition method based on Ethernet transmission comprises the following steps:

[0024] Obtain clock information based on time-clear network timing based on the master clock source;

[0025] When the industrial device is intercepted to transmit a first Ethernet message based on a network cable or optical fiber, the first time information determined based on clock information of a time-clear network is locked, and a second Ethernet message is obtained by encapsulating the first Ethernet message and the first time information as data;

[0026] Upload the second Ethernet message to the data platform.

[0027] The data acquisition method based on Ethernet transmission of the present application is applied to a data acquisition system based on Ethernet transmission. It collects, encapsulates and uploads data under the clock information of the same master clock source based on the time-clear network timing. When the first Ethernet message generated and transmitted by the industrial equipment is detected, the timing of the occurrence of the first Ethernet message is locked based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message and upload the data, thereby realizing high-precision time alignment of industrial discrete data. By parsing multiple second Ethernet messages stored in the data platform, multiple first Ethernet messages and the corresponding high-precision time in the TAN format can be obtained, which can provide a time benchmark for various industrial data analyses.

[0028] In a fourth aspect, the present application further provides a data acquisition system based on Ethernet transmission, comprising:

[0029] A master clock source, a data platform, a probe, and multiple industrial devices, at least two of which are connected via a network cable or optical fiber communication, and the probe is installed on the network cable or optical fiber;

[0030] The master clock source is used to provide time to the probe according to the time-clear network so that the probe can obtain clock information based on the time-clear network;

[0031] The probe is used to transmit the first Ethernet message transmitted by the industrial equipment based on the network cable or the optical fiber, and is also used to lock the first time information determined based on the clock information of the time-clear network timing when the industrial equipment is detected to be transmitting the first Ethernet message based on the network cable or the optical fiber, obtain the second Ethernet message using the first Ethernet message and the first time information as data encapsulation, and upload the second Ethernet message to the data platform.

[0032] The data acquisition system based on Ethernet transmission of the present application collects, encapsulates and uploads data under the clock information of the same master clock source based on the time-clear network timing. When the first Ethernet message generated and transmitted by the industrial equipment is detected by a probe, the occurrence timing of the first Ethernet message is locked based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message and upload the data, thereby realizing high-precision time alignment of industrial discrete data. By parsing multiple second Ethernet messages stored in the data platform, multiple first Ethernet messages and the corresponding high-precision time in the TAN format can be obtained, which can provide a time benchmark for various industrial data analyses.

[0033] In the data acquisition system based on Ethernet transmission, there are multiple probes, which are cascaded to form a probe network, and all probes in the probe network are timed based on the master clock source.

[0034] The data acquisition system based on Ethernet transmission further includes a monitoring network, and the probe is communicatively connected to the data platform via the monitoring network.

[0035] From the above, it can be seen that the present application provides a data encapsulation method, probe, collection method and system based on Ethernet transmission, wherein the data encapsulation method based on Ethernet transmission can be applied in industrial data collection. When the first Ethernet message generated and transmitted by the industrial equipment is detected, the timing of the occurrence of the first Ethernet message is locked based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message, thereby realizing high-precision time alignment of industrial discrete data. The second Ethernet message can be used as monitoring data or historical data. Parsing the second Ethernet message can obtain the high-precision time of the first Ethernet message and the corresponding TAN format, which can provide a time reference for various industrial data analyses. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] FIG1 is a flow chart of a data encapsulation method based on Ethernet transmission provided in an embodiment of the present application.

[0037] FIG2 is a schematic diagram of the structure of the first TAN message.

[0038] FIG3 is a schematic diagram of the structure of a second Ethernet message.

[0039] FIG4 is a schematic diagram of the structure of the probe provided in an embodiment of the present application.

[0040] FIG5 is a flow chart of a data acquisition method based on Ethernet transmission provided in an embodiment of the present application.

[0041] FIG6 is a schematic diagram of the structure of a data acquisition system based on Ethernet transmission provided in an embodiment of the present application.

[0042] FIG7 is a schematic diagram of the detailed structure of a second Ethernet message in some embodiments.

[0043] Reference numerals: 201, transmission module; 202, encapsulation module; 203, upload module; 401, probe; 402, master clock source; 403, data platform; 404, monitoring network. DETAILED DESCRIPTION

[0044] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the scope of protection of the present application.

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

[0046] In a first aspect, referring to FIG. 1 , some embodiments of the present application provide a data encapsulation method based on Ethernet transmission, the data encapsulation method based on Ethernet transmission comprising the following steps:

[0047] S1. When a first Ethernet message is intercepted, locking the first time information determined based on the time-clear network timing;

[0048] S2. Obtain a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation.

[0049] Specifically, the data encapsulation method based on Ethernet transmission in an embodiment of the present application is applied to a data monitoring device or a data transmission device, aiming to assign first time information to a first Ethernet message based on an accurate time dimension to encapsulate and obtain a second Ethernet message with high-precision time information.

[0050] More specifically, the first Ethernet message is message data generated and transmitted by the Ethernet switching device, which may be a message containing an operation instruction or a message containing an operation parameter. In the embodiment of the present application, it is preferably a message containing various discrete data generated by the operation of various industrial equipment in the industrial workshop, which can reflect the operating status of various industrial equipment in the industrial workshop; the data encapsulation method based on Ethernet transmission in the embodiment of the present application does not affect the transmission of the first Ethernet message, but determines the time node when the first Ethernet message is transmitted in a specific area by listening to the appearance of the first Ethernet message, and determines the time node based on a time-clear network with ultra-high time accuracy, that is, determines the first time Information, and then the first time information representing the time node is used as time data and the first Ethernet message representing the industrial discrete data is encapsulated in the second Ethernet message as ordinary data, so that the first Ethernet messages with poor time alignment effect are all highly aligned with the time-clear network as the time reference to be encapsulated as the second Ethernet message; it should be noted that the second Ethernet message is generally not used as an interactive message for various industrial equipment in an industrial workshop, but is stored in a data backup device or uploaded to a server for use as monitoring data or historical data, that is, the second Ethernet message is a new message that complies with the Ethernet protocol generated based on the encapsulation of the first Ethernet message during the transmission of the first Ethernet message.

[0051] More specifically, Time Aware Network (TAN) is a new time-based industrial network communication network technology that can clarify the time of the entire communication network, the time of interactive devices in the network, and the time of data transmission in the network. It can make the time attributes of devices based on the network time synchronization have high accuracy, and the time of multiple time-synchronized devices is highly aligned.

[0052] More specifically, in the existing industrial Ethernet switching technology (EOE, Ethernet Over Ethernet), the messages transmitted therein must conform to the Ethernet message format, that is, the transmitted message data must have an Ethernet frame header, and the time determined by the TAN timing cannot be directly used as the time of the Ethernet frame header; therefore, the encapsulation method of the embodiment of the present application encapsulates the first Ethernet message and the first time information into a new second Ethernet message, which can be transmitted in the existing Ethernet switching network, that is, the second Ethernet message can be transmitted without modifying the communication channel of the existing Ethernet switching network; therefore, the second Ethernet message in the embodiment of the present application can be transmitted based on Ethernet, and after being parsed, the first Ethernet message and the first time information when the first Ethernet message is intercepted can be obtained, so that the first Ethernet message matches a high-precision time attribute.

[0053] More specifically, the first time information locked in step S1 is the time node when the first Ethernet message is intercepted, that is, it reflects the timing of the appearance of the first Ethernet message at a specific location in the transmission network (industrial Ethernet). If the message generating device is intercepted, the first time information is the time node when the first Ethernet message is generated. If the message generating device is intercepted, the first time information is the time node when the first Ethernet message passes through the switching device or transmission point in the transmission network. By deploying multiple listening points in the entire transmission network, step S1 of the encapsulation method of the embodiment of the present application can accurately determine the generation time nodes of different first Ethernet messages and accurately locate the time-related transmission positions of different first Ethernet messages. The first Ethernet message is transmitted based on the Ethernet frame during the transmission process. Therefore, in the embodiment of the present application, when a specific switching device or transmission point in the transmission network is intercepted, the first time information is the time node when the first Ethernet message enters or is input into the corresponding switching device or transmission point.

[0054] More specifically, in step S1 , the process of locking the first time information is to determine and extract the corresponding first time information, and this process does not affect the change of the time determined based on the time-explicit network timing.

[0055] The data encapsulation method based on Ethernet transmission in the embodiment of the present application can be applied to industrial data collection. When a first Ethernet message generated and transmitted by industrial equipment is detected, the timing of the occurrence of the first Ethernet message is locked based on the time-clear network timing, so that the first Ethernet message and the first time information are encapsulated into a second Ethernet message, thereby achieving high-precision time alignment of industrial discrete data. The second Ethernet message can be used as monitoring data or historical data. Parsing the second Ethernet message can obtain the first Ethernet message and the corresponding TAN format high-precision time, which can provide a time reference for various industrial data analyses.

[0056] In some preferred embodiments, the step of obtaining the second Ethernet message by using the first Ethernet message and the first time information as data encapsulation includes:

[0057] S21. Encapsulate the first Ethernet message into a first TAN message according to the first time information;

[0058] S22: Obtain a second Ethernet message by using the first TAN message as data encapsulation.

[0059] Specifically, a message is generally divided into two parts: an encapsulation header and data. For example, an Ethernet message consists of an Ethernet frame header (i.e., an encapsulation header) and data, and a TAN message consists of a TAN frame header and data. Step S21 is equivalent to encapsulating the received first Ethernet message into the data portion of the TAN message, then generating a TAN frame header according to the TAN encapsulation logic and the first time information, and then combining the TAN frame header and the data portion into a first TAN message. Similarly, step S22 is equivalent to encapsulating the first TAN message generated by step S21 into the data portion of the Ethernet message, then generating an Ethernet frame header according to the Ethernet encapsulation logic, and then combining the Ethernet frame header and the data portion into a second Ethernet message.

[0060] More specifically, as shown in Figure 2, the first TAN message includes a TAN frame header and a first Ethernet message, and as shown in Figure 3, the second Ethernet message includes an Ethernet frame header (i.e., the encapsulation header in Figure 7) which is preferably a three-layer Ethernet UPD frame header and a data portion consisting of the TAN frame header and the first Ethernet message; therefore, if the second Ethernet message is parsed, the frame header information of the second Ethernet message and the complete TAN message can be obtained, and then the TAN message can be parsed again to obtain the precise time determined based on the time-clear network and the original first Ethernet message.

[0061] In some preferred embodiments, step S21 includes:

[0062] The first Ethernet message is encapsulated into a first TAN message according to the first time information and the data transmission direction information.

[0063] In some other embodiments, step S21 includes:

[0064] The first Ethernet message is encapsulated into a first TAN message according to the first time information and the probe ID information.

[0065] In some more preferred embodiments, step S21 includes:

[0066] The first Ethernet message is encapsulated into a first TAN message according to the first time information, the data transmission direction information and the probe ID information.

[0067] In a second aspect, referring to FIG. 4 , some embodiments of the present application further provide a probe installed on a network cable or optical fiber connected to industrial equipment, the probe comprising:

[0068] Transmission module 201, configured to transmit a first Ethernet message;

[0069] The encapsulation module 202 is configured to intercept the transmission module and further configured to, upon intercepting the first Ethernet message, lock the first time information determined based on the time-clear network timing, and obtain a second Ethernet message by encapsulating the first Ethernet message and the first time information as data;

[0070] The uploading module 203 is configured to upload the second Ethernet message.

[0071] Specifically, the probe of the embodiment of the present application is an Ethernet message listening device, which has two data channels, wherein the transmission module 201 constitutes the first data channel, which is used to transmit message data on the network cable or optical fiber, so it can transmit the first Ethernet message, and the encapsulation module 202 and the upload module 203 constitute another data channel different from the transmission module 201, which is used to copy and collect the first Ethernet message and encapsulate and package it into a second Ethernet message for uploading without affecting the transmission of the first Ethernet message by the transmission module 201; therefore, the probe of the embodiment of the present application can realize the encapsulation and uploading of the second Ethernet message without affecting the transmission of the first Ethernet message, thereby avoiding the influence of the encapsulation process on the data transmission efficiency, and therefore has the effect of low transmission latency.

[0072] The probe of the embodiment of the present application is used to listen to the message data in the communication network composed of industrial equipment. When the first Ethernet message generated and transmitted by the industrial equipment is listened to through the encapsulation module 202, it can lock the occurrence timing of the first Ethernet message based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message, thereby realizing high-precision time alignment of industrial discrete data, and then using the upload module 203 to upload the second Ethernet message to the corresponding data processing device; parsing the second Ethernet message can obtain the first Ethernet message and the corresponding TAN format high-precision time, which can provide a time reference for various industrial data analyses.

[0073] In some preferred implementations, the data content of the second Ethernet message includes data transmission direction information of the transmission module.

[0074] Specifically, the data transmission direction information is the transmission direction of the first Ethernet message in the network cable or optical fiber or probe.

[0075] More specifically, generally speaking, the message data of industrial equipment belongs to interactive data information, so for data collection services, it is necessary to consider the transmission direction of the message data. Therefore, when the probe of the embodiment of the present application performs the second Ethernet message encapsulation, the data transmission direction information representing the data transmission direction will be encapsulated in the second Ethernet message, so that when performing data analysis later, the transmission path of the first Ethernet message in the communication network composed of the entire industrial equipment can be determined.

[0076] More specifically, in an embodiment of the present application, the data transmission direction information is determined by sensing the input and output relationship of the first Ethernet message through the transmission module 201, and is acquired by the encapsulation module 202 and then encapsulated in the second Ethernet message; since the data transmission direction information belongs to the frame header information of the non-traditional Ethernet message, the probe of the embodiment of the present application preferably encapsulates the data transmission direction information in the TAN frame header.

[0077] In some preferred embodiments, the data transmission direction information includes input direction information and output direction information; wherein the input direction information represents the source direction of the first Ethernet message input to the probe, and the output direction information represents the output target direction of the first Ethernet message in the probe.

[0078] Since industrial equipment is crisscrossed and connected, the input and output ends of an industrial device are often connected to multiple other industrial devices, and a network cable may also have multiple branches. Therefore, in an embodiment of the present application, the input direction information is preferably the ID information of the source device, and the output direction information is preferably the ID information of the destination device, so that the probe can accurately record and encapsulate the data transmission direction information.

[0079] In some more preferred embodiments, as shown in Figure 7, the input direction information is preferably the source probe device ID information (i.e., the source TAN switching device ID), and the output direction information is preferably the destination probe ID information (i.e., the destination TAN switching device ID); the industrial equipment is essentially a generation and receiving terminal for the first Ethernet message, and the second Ethernet message uploaded by the probe package of the embodiment of the present application is mainly used to analyze the transmission relationship of the message data with respect to time, that is, what needs to be considered is the transmission path of the first Ethernet message in the network cable or optical fiber. Therefore, for the case where multiple probes are provided in the network cable or optical fiber, the data transmission direction information actually needs to consider the transmission relationship in the listening network composed of multiple probes, so as to further clarify the transmission characteristics of industrial discrete data with respect to time and direction in the entire transmission network, so as to clearly analyze the flow direction of industrial discrete data.

[0080] In some preferred embodiments, the data content of the second Ethernet message includes probe ID information.

[0081] Specifically, the probe ID information is the ID of the probe that currently collects the first Ethernet message. Since the probe ID information belongs to the frame header information of non-traditional Ethernet messages, the probe in the embodiment of the present application preferably encapsulates the probe ID information in the TAN frame header; for the case where multiple probes are provided in the network cable or optical fiber, the probe ID information can clarify the current location information of the first Ethernet message in the entire transmission network, so that subsequent data analysis can further clarify the transmission characteristics of industrial discrete data regarding time and location in the entire transmission network.

[0082] In some more preferred embodiments, for a listening network composed of multiple probes, for each probe, it only needs to clarify the data output direction to determine the transmission direction of the first Ethernet message with the help of the data transmission direction information recorded by the previous probe. Therefore, the ID information of the source device is preferably the probe ID information of the probe that intercepts the first Ethernet message, so that the data transmission direction information includes the ID of this probe and the ID of the destination probe, which can determine the direction characteristics of the transmission of the first Ethernet message.

[0083] In some preferred embodiments, the transmission module includes multiple groups of data transparent transmission ports.

[0084] Specifically, based on the above content, it can be seen that the probe needs to consider the data interaction of different industrial devices, so it is necessary to have multiple groups of data transparent transmission ports to listen to the first Ethernet messages transmitted by different devices in different directions.

[0085] In some preferred embodiments, when the probe detects the header of the first Ethernet message (the local message received first), it uses the encapsulation module 202 to lock the first time information, and starts the encapsulation action after the first Ethernet message enters the transmission module 201 for a certain length (reaching a preset length). When performing the encapsulation action, the transmission module 201 maintains the forwarding transmission of the first Ethernet message to ensure that the first Ethernet message passes through the probe with ultra-low latency; wherein, the processing method of starting the encapsulation action with a delay based on length judgment can avoid the locking behavior, encapsulation behavior of the encapsulation module 202 and the start-up transmission behavior of the transmission module 201 being triggered at the same time to cause data jamming.

[0086] In a third aspect, referring to FIG. 5 , some embodiments of the present application further provide a data acquisition method based on Ethernet transmission, which is applied to a data acquisition system based on Ethernet transmission. The data acquisition system based on Ethernet transmission includes:

[0087] A master clock source 402, a data platform 403, and multiple industrial devices, at least two of which are connected via a network cable or optical fiber communication; and a data acquisition method based on Ethernet transmission includes the following steps:

[0088] A1. Acquiring clock information based on time-clear network timing based on the master clock source 402;

[0089] A2. When the industrial device is intercepted transmitting a first Ethernet message based on a network cable or optical fiber, the first time information determined based on the clock information of the time-clear network is locked, and a second Ethernet message is obtained by encapsulating the first Ethernet message and the first time information as data;

[0090] A3. Upload the second Ethernet message to the data platform 403.

[0091] Specifically, the data acquisition method based on Ethernet transmission in an embodiment of the present application is used to listen to the message data of each location node of the transmission network composed of industrial equipment. The message listening and encapsulation processing behaviors of different location nodes are all performed under the clock information of the same master clock source 402 based on the time-clear network timing, thereby ensuring that the second Ethernet message obtained by encapsulation contains the precisely aligned first time information.

[0092] The data acquisition method based on Ethernet transmission of the embodiment of the present application is applied to a data acquisition system based on Ethernet transmission, which performs data acquisition, encapsulation and uploading under the clock information of the same master clock source 402 based on the time-clear network timing. When a first Ethernet message generated and transmitted by an industrial device is detected, the occurrence timing of the first Ethernet message is locked based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message and upload the data, thereby realizing high-precision time alignment of industrial discrete data. By parsing multiple second Ethernet messages stored in the data platform 403, multiple first Ethernet messages and the corresponding high-precision time in the TAN format can be obtained, which can provide a time reference for various industrial data analyses.

[0093] In a fourth aspect, referring to FIG. 6 , some embodiments of the present application further provide a data acquisition system based on Ethernet transmission, including:

[0094] A master clock source 402, a data platform 403, a probe 401 and multiple industrial devices (not shown), at least two of which are connected via a network cable or optical fiber communication, and the probe 401 is installed on the network cable or optical fiber;

[0095] The master clock source 402 is used to provide time to the probe 401 according to the time-clear network so that the probe 401 can obtain clock information based on the time-clear network time service;

[0096] The probe 401 is used to transmit the first Ethernet message transmitted by the industrial equipment based on the network cable or optical fiber, and is also used to lock the first time information determined by the clock information of the time-clear network timing when the industrial equipment is detected to be transmitting the first Ethernet message based on the network cable or optical fiber, obtain the second Ethernet message using the first Ethernet message and the first time information as data encapsulation, and upload the second Ethernet message to the data platform 403.

[0097] The data acquisition system based on Ethernet transmission of the embodiment of the present application collects, encapsulates and uploads data under the clock information of the same master clock source 402 based on the time-clear network timing. When the first Ethernet message generated and transmitted by the industrial equipment is detected by the probe 401, the occurrence timing of the first Ethernet message is locked based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message and upload the data, thereby realizing high-precision time alignment of industrial discrete data. By parsing the multiple second Ethernet messages stored in the data platform 403, the multiple first Ethernet messages and the corresponding TAN format high-precision time can be obtained, which can provide a time reference for various industrial data analyses.

[0098] In some preferred embodiments, there are multiple probes 401 , and the multiple probes 401 are cascaded to form a probe 401 network. All probes 401 in the probe 401 network are timed based on the master clock source 402 .

[0099] Specifically, multiple probes 401 are used to listen to the message data of nodes at different locations in the transmission network composed of industrial equipment. The accuracy of timing needs to be ensured, so a master clock source 402 needs to be used for timing processing. In order to further improve the accuracy of timing, in an embodiment of the present application, the master clock source 402 only sends a timing message to one probe 401 for timing, and then the probe 401 network is used to perform upper and lower level timing processing based on the interconnected probes 401 to improve the timing efficiency and timing accuracy.

[0100] In some preferred embodiments, the probe 401 network is a ring network, that is, multiple probe 401 timing terminals are connected in a ring.

[0101] Specifically, for the probe 401 network of the ring network, the master clock source 402 preferably performs time synchronization processing based on the time-clear network for all probes 401 in a message queue manner; wherein, the master clock source 402 is connected to one or more probes 401 in the probe 401 network. When time synchronization is required, the master clock source 402 generates a main synchronization message determined based on the TAN standard and sends it to any probe 401 connected thereto. The probe 401 that receives the message queue containing only the main synchronization message obtains the synchronization information interacted with the master clock source 402, and fills the synchronization information as a secondary synchronization message behind the main synchronization message to form a message queue. Then, the probe 401, as a secondary clock switching device, sends the message queue to the next probe 401 in a single direction. The probe 401 that receives the message queue The synchronization information interacting with the message queue is obtained, and the synchronization information is filled into the end of the message queue. The message queue is then sent to the next probe 401 in a single direction as a secondary clock switching device, and this process is repeated until the message queue returns to the first probe 401 in the ring network that receives the message queue and then returns to the main clock source 402 for timing calibration, thereby achieving timing for all probes 401. Compared with the traditional one-by-one timing processing method, this timing method effectively saves the time required for timing of multiple listening devices. Secondly, during the synchronization process, the probe 401 can calculate the transmission error based on the main timing message generated by the main clock source 402 in the message queue and all the secondary timing messages in the message queue, so as to adjust the clock of each probe 401, thereby ensuring that the clocks of all probes 401 are accurately aligned.

[0102] In some preferred embodiments, the data acquisition system based on Ethernet transmission further includes a monitoring network 404 , and the probe 401 is communicatively connected to the data platform 403 via the monitoring network 404 .

[0103] Specifically, the monitoring network 404 can be a TAN network or an EOE switch, which is used to monitor the second Ethernet message uploaded by the probe 401 in the transmission network, and organize and package the second Ethernet message and upload it to the data platform 403 for data archiving; for the transmission network composed of industrial equipment, the industrial workshop needs to be divided into different industrial areas based on the working conditions and task allocation of the workshop, so different monitoring networks 404 need to be set up to monitor and classify data for different industrial areas to achieve the classification processing of the second Ethernet message.

[0104] In summary, the embodiments of the present application provide a data encapsulation method, probe, collection method and system based on Ethernet transmission, wherein the data encapsulation method based on Ethernet transmission can be applied in industrial data collection. When a first Ethernet message generated and transmitted by industrial equipment is detected, the timing of the occurrence of the first Ethernet message is locked based on the time-clear network timing, so as to encapsulate the first Ethernet message and the first time information into a second Ethernet message, thereby realizing high-precision time alignment of industrial discrete data. The second Ethernet message can be used as monitoring data or historical data. Parsing the second Ethernet message can obtain the high-precision time of the first Ethernet message and the corresponding TAN format, which can provide a time reference for various industrial data analyses.

[0105] The solution of the embodiment of the present application is mainly used in industrial Ethernet equipment, but is not limited to industrial Ethernet equipment, and can also be applied to various general network equipment.

[0106] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0108] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.

[0109] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data encapsulation method based on Ethernet transmission, characterized in that: The data encapsulation method based on Ethernet transmission comprises the following steps: When the first Ethernet message is intercepted, the first time information determined based on the time-clear network timing is locked; Obtaining a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation; The step of obtaining a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation comprises: encapsulating the first Ethernet message into a first TAN message according to the first time information; The second Ethernet message is obtained by using the first TAN message as data encapsulation.

2. A probe installed on a network cable or optical fiber connected to industrial equipment, characterized in that: The probe comprises: A transmission module, used for transmitting a first Ethernet message; an encapsulation module, used to intercept the transmission module, and further used to lock the first time information determined based on the time-clear network timing when intercepting the first Ethernet message, and obtain a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation; An uploading module, used for uploading the second Ethernet message; The step of obtaining a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation comprises: encapsulating the first Ethernet message into a first TAN message according to the first time information; The second Ethernet message is obtained by using the first TAN message as data encapsulation.

3. The probe according to claim 2, characterized in that: The data content of the second Ethernet message includes data transmission direction information of the transmission module.

4. The probe according to claim 2, characterized in that: The data content of the second Ethernet message includes probe ID information.

5. The probe according to claim 2, characterized in that: The transmission module includes multiple groups of data transparent transmission ports.

6. A data acquisition method based on Ethernet transmission, characterized in that: Applied in a data acquisition system based on Ethernet transmission, the data acquisition system based on Ethernet transmission comprises: A master clock source, a data platform and a plurality of industrial devices, at least two of which are connected via network cables or optical fiber communications; The data acquisition method based on Ethernet transmission comprises the following steps: Obtain clock information based on time-clear network timing based on the master clock source; When the industrial device is intercepted to transmit a first Ethernet message based on a network cable or an optical fiber, the timing based on the time-clear network is locked. The first time information is determined by the clock information, and the first Ethernet message and the first time information are used as data encapsulation to obtain a second Ethernet message; Uploading the second Ethernet message to the data platform; The step of obtaining a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation comprises: encapsulating the first Ethernet message into a first TAN message according to the first time information; The second Ethernet message is obtained by using the first TAN message as data encapsulation.

7. A data acquisition system based on Ethernet transmission, characterized in that: include: A master clock source, a data platform, a probe and a plurality of industrial devices, at least two of the industrial devices are connected based on network cables or optical fiber communications, and the probe is installed on the network cables or the optical fibers; The master clock source is used to provide time to the probe according to the time-clear network so that the probe can obtain clock information based on the time-clear network time service; The probe is used to transmit a first Ethernet message transmitted by the industrial device based on the network cable or the optical fiber, and is also used to lock the first time information determined based on the clock information of the time-clear network timing when the industrial device transmits the first Ethernet message based on the network cable or the optical fiber, obtain the second Ethernet message by using the first Ethernet message and the first time information as data encapsulation, and upload the second Ethernet message to the data platform; The step of obtaining a second Ethernet message by using the first Ethernet message and the first time information as data encapsulation comprises: encapsulating the first Ethernet message into a first TAN message according to the first time information; The second Ethernet message is obtained by using the first TAN message as data encapsulation.

8. The data acquisition system based on Ethernet transmission according to claim 7, characterized in that: There are multiple probes, and the multiple probes are cascaded to form a probe network. All probes in the probe network are timed based on the main clock source.

9. The data acquisition system based on Ethernet transmission according to claim 7, characterized in that: It also includes a monitoring network, and the probe is communicatively connected with the data platform through the monitoring network.

Citation Information

Patent Citations

  • NTP server time service implementation method based on hardware timestamp

    CN106506107A

  • Time synchronization method for data acquisition of high-speed railway and corresponding system

    CN115622652A

  • Network data packet transmission method and device, and storage medium

    CN115842853A

  • Data processing method, equipment, system and medium

    CN116032440A

  • Data encapsulation method, probe, acquisition method and system based on Ethernet transmission

    CN116506335A