Gateway data protocol conversion method and system and medium

By using the Profinet bus for data processing and encoding in the EtherCAT protocol conversion gateway, the problem of insufficient transmission stability and distance in the factory environment of the EtherCAT protocol is solved, real-time high-speed data exchange between the EtherCAT gateway and the slave station is realized, and the Communication efficiency.

CN118945242AInactive Publication Date: 2024-11-12SHENZHEN JUST MOTION CONTROL ELECTROMECHANICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411429660.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2024-11-12
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The EtherCAT protocol conversion gateway has transmission stability and distance problems in practical applications, especially in factory environments, CANOPEN's transmission distance and stability are insufficient, and RS485 is susceptible to interference and has a slow transmission rate.

Method used

Through the Profinet bus, communication between the gateway and slave station is realized, data frames are received and logical operations are performed, EtherCAT protocol data is generated, EtherCAT data frames are coded and data transmission is carried out through EtherCAT industrial Ethernet, improving communication efficiency and stability.

Benefits of technology

Real-time high-speed data exchange between the EtherCAT gateway and the slave station is realized, which significantly improves communication efficiency and stability, and is suitable for data transmission in factory environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945242A_ABST
    Figure CN118945242A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a gateway data protocol conversion method and system and a medium, and the method comprises the steps: receiving a data frame of a Profinet bus, and writing the received data into a public data storage chip according to the provision of a Profinet protocol; data in the public data storage chip is read, and EtherCAT protocol data is generated through logical operation processing; the EtherCAT protocol data is written into an EtherCAT protocol controller, and the EtherCAT protocol data is written into the EtherCAT protocol controller; the method comprises the following steps: reading EtherCAT protocol data according to the regulation of an EtherCAT protocol, and encoding to generate an EtherCAT data frame; the transceiver based on the EtherCAT protocol receives the EtherCAT data frame and sends the EtherCAT data frame to the EtherCAT industrial Ethernet; communication between the gateway and each slave station is realized through a Profinet bus, and real-time data exchange is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data protocol conversion, and in particular to a gateway data protocol conversion method, system and medium. Background Art

[0002] There are many types of EtherCAT protocol conversion gateways, such as EtherCAT to RS485, EtherCAT to CANOPEN, etc. The gateway usually includes an EtherCAT protocol controller, an EtherCAT transceiver, an ARM central controller, a CAN transceiver or a 485 chip. Its working steps are roughly as follows: the EtherCAT gateway receives the data sent by the master station through the central controller after receiving it, and then sends the processed data to the new bus of CANOPEN or RS485 through the CAN transceiver or 485 chip.

[0003] However, the maximum speed of these two buses is 10Mbps. Although the transmission distance of RS485 can reach more than one kilometer, it is also very susceptible to external interference despite being a differential signal, especially in actual application scenarios such as factories. Although CANOPEN is relatively stable, its transmission distance is only 40 meters, the transmission rate is slow, and the transmission stability is poor. Effective technical solutions are urgently needed for the above problems. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a gateway data protocol conversion method, system and medium, which realizes communication between the gateway and each slave station through the Profinet bus, realizes real-time data exchange, greatly enhances the communication efficiency of the EtherCAT gateway, and can exchange data with the slave stations stably and at high speed.

[0005] The present application also provides a gateway data protocol conversion method, including: Receive data frames from the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol; Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation processing; Write EtherCAT protocol data into the EtherCAT protocol controller; According to the provisions of the EtherCAT protocol, read the EtherCAT protocol data, encode it and generate the EtherCAT data frame; Based on the EtherCAT protocol, the transceiver receives the EtherCAT data frame and sends it to the EtherCAT industrial Ethernet.

[0006] Optionally, in the gateway data protocol conversion method described in the embodiment of the present application, receiving a data frame of the Profinet bus, and writing the received data into a public data storage chip according to the Profinet protocol, specifically includes: Receive data frames of the Profinet bus, analyze the data frames of the Profinet bus, and obtain analysis results; Determine whether the analysis results meet the requirements of the Profinet protocol; If satisfied, the data frame of the Profinet bus is written into the public data storage chip; If not, the data frame of the Profinet bus that does not meet the requirements of the Profinet protocol will be optimized until the optimized data frame meets the requirements of the Profinet protocol.

[0007] Optionally, in the gateway data protocol conversion method described in the embodiment of the present application, the data in the public data storage chip is read, and the EtherCAT protocol data is generated through logical operation processing, which specifically includes: Acquire data in a public data storage chip, perform logic operations on the data, and obtain processed data; Determining whether the processed data meets the processing requirements; If the processing requirements are met, EtherCAT protocol data is generated; If the processing requirements are not met, the logic operation rules are adjusted to generate new operation logic, and the data in the public data storage chip are processed based on the new operation logic.

[0008] Optionally, in the gateway data protocol conversion method described in the embodiment of the present application, according to the provisions of the EtherCAT protocol, reading the EtherCAT protocol data and encoding to generate an EtherCAT data frame specifically includes: Acquire EtherCAT protocol data, filter the EtherCAT protocol data based on the provisions of the EtherCAT protocol, and obtain data that complies with the provisions of the EtherCAT protocol; Encode the data that complies with the provisions of the EtherCAT protocol to obtain encoded data; Generate EtherCAT data frames based on the encoded data; Data that does not comply with the EtherCAT protocol will be removed.

[0009] Optionally, in the gateway data protocol conversion method described in the embodiment of the present application, encoding the data that complies with the provisions of the EtherCAT protocol to obtain encoded data also includes: Obtain data that complies with the provisions of the EtherCAT protocol, encode it, and obtain ciphertext data; Analyze the encryption level of the ciphertext data to determine whether the encryption level meets the set encryption level; If it meets the set encryption level, the code is determined to meet the encryption requirements and the encoded data is generated; If the set encryption level is not met, the data encoding rules are adjusted.

[0010] Optionally, in the gateway data protocol conversion method described in the embodiment of the present application, receiving the EtherCAT data frame based on the EtherCAT protocol transceiver and sending it to the EtherCAT industrial Ethernet specifically includes: Obtain EtherCAT data frames, classify the EtherCAT data frames, and obtain data of multiple categories; Different sending and receiving protocols are established based on multiple categories of data to transmit data and obtain transmission data; Analyze the accuracy of the transmitted data, dynamically adjust the receiving and sending protocols based on the accuracy of the transmitted data, receive the EtherCAT data frames, and send the received EtherCAT data frames to the EtherCAT industrial Ethernet.

[0011] In a second aspect, an embodiment of the present application provides a gateway data protocol conversion system, the system comprising: a memory and a processor, the memory comprising a program of a gateway data protocol conversion method, and the program of the gateway data protocol conversion method is executed by the processor to implement the following steps: Receive data frames from the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol; Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation processing; Write EtherCAT protocol data into the EtherCAT protocol controller; According to the provisions of the EtherCAT protocol, read the EtherCAT protocol data, encode it and generate the EtherCAT data frame; Based on the EtherCAT protocol, the transceiver receives the EtherCAT data frame and sends it to the EtherCAT industrial Ethernet.

[0012] Optionally, in the gateway data protocol conversion system described in the embodiment of the present application, receiving a data frame of the Profinet bus, and writing the received data into a public data storage chip according to the Profinet protocol, specifically includes: Receive data frames of the Profinet bus, analyze the data frames of the Profinet bus, and obtain analysis results; Determine whether the analysis results meet the requirements of the Profinet protocol; If satisfied, the data frame of the Profinet bus is written into the public data storage chip; If not, the data frame of the Profinet bus that does not meet the requirements of the Profinet protocol will be optimized until the optimized data frame meets the requirements of the Profinet protocol.

[0013] Optionally, in the gateway data protocol conversion system described in the embodiment of the present application, the data in the public data storage chip is read, and the EtherCAT protocol data is generated through logical operation processing, which specifically includes: Acquire data in a public data storage chip, perform logic operations on the data, and obtain processed data; Determining whether the processed data meets the processing requirements; If the processing requirements are met, EtherCAT protocol data is generated; If the processing requirements are not met, the logic operation rules are adjusted to generate new operation logic, and the data in the public data storage chip are processed based on the new operation logic.

[0014] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a gateway data protocol conversion method program. When the gateway data protocol conversion method program is executed by a processor, the steps of the gateway data protocol conversion method as described in any one of the above items are implemented.

[0015] As can be seen from the above, a gateway data protocol conversion method, system and medium provided in an embodiment of the present application receive data frames from a Profinet bus, and write the received data into a public data storage chip according to the provisions of the Profinet protocol; read the data in the public data storage chip, generate EtherCAT protocol data through logical operation processing; write the EtherCAT protocol data into an EtherCAT protocol controller; read the EtherCAT protocol data according to the provisions of the EtherCAT protocol, encode and generate EtherCAT data frames; receive the EtherCAT data frames based on an EtherCAT protocol transceiver and send them to the EtherCAT industrial Ethernet; realize communication between the gateway and each slave station through the Profinet bus, realize real-time data exchange, greatly enhance the communication efficiency of the EtherCAT gateway, and can exchange data with the slave stations stably and at high speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flowchart of a gateway data protocol conversion method provided in an embodiment of the present application; Figure 2 A flow chart of a method for writing into a public data storage chip of a gateway data protocol conversion method provided in an embodiment of the present application; Figure 3 Flowchart of the EtherCAT protocol data generation method of the gateway data protocol conversion method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] 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 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 claimed 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 belong to the scope of protection of the present application.

[0019] 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 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 cannot be understood as indicating or implying relative importance.

[0020] Please refer to Figure 1 , Figure 1 1 is a flow chart of a gateway data protocol conversion method in some embodiments of the present application. The gateway data protocol conversion method is used in a terminal device, and the gateway data protocol conversion method includes the following steps: S101, receiving a data frame of the Profinet bus, and writing the received data into a public data storage chip according to the Profinet protocol; S102, reading data from the public data storage chip, and generating EtherCAT protocol data through logical operation processing; S103, writing the EtherCAT protocol data into the EtherCAT protocol controller; S104, according to the provisions of the EtherCAT protocol, read the EtherCAT protocol data, encode and generate an EtherCAT data frame; S105, receiving the EtherCAT data frame based on the EtherCAT protocol transceiver and sending it to the EtherCAT industrial Ethernet.

[0021] It should be noted that Profinet has smaller wiring and simplified debugging, can support multiple master stations to access one slave station, freely select topology, and more flexible wiring. Profinet is used in many industries, such as automobile manufacturing (robot loading station), paper industry, textile industry, process management automation - such as petrochemical, pharmaceutical industry, cement production, food production, beer production, etc.

[0022] Please refer to Figure 2 , Figure 2 The present invention is a flowchart of a method for writing data into a public data storage chip in a gateway data protocol conversion method in some embodiments of the present invention. According to an embodiment of the present invention, a data frame of a Profinet bus is received, and according to the provisions of the Profinet protocol, the received data is written into the public data storage chip, specifically including: S201, receiving a data frame of the Profinet bus, analyzing the data frame of the Profinet bus, and obtaining an analysis result; S202, judging whether the analysis result meets the requirements of the Profinet protocol; S203, if the conditions are met, the data frame of the Profinet bus is written into the public data storage chip; S204, if not, optimizing the data frame of the Profinet bus that does not meet the Profinet protocol specification until the optimized data frame meets the Profinet protocol specification.

[0023] It should be noted that by analyzing whether the data frame of the Profinet bus meets the requirements of the Profinet protocol, the data frame is dynamically optimized and adjusted, and the optimized data frame is stored in a public data storage chip.

[0024] Please refer to Figure 3 , Figure 3 The flowchart of the EtherCAT protocol data generation method of a gateway data protocol conversion method in some embodiments of the present application is as follows. According to an embodiment of the present invention, the data in the public data storage chip is read, and the EtherCAT protocol data is generated through logical operation processing, which specifically includes: S301, acquiring data in a public data storage chip, performing a logical operation on the data, and obtaining processed data; S302, determining whether the processed data meets the processing requirements; S303, if the processing requirements are met, generate EtherCAT protocol data; S304: If the processing requirement is not met, the logic operation rules are adjusted to generate new operation logic, and the data in the public data storage chip is processed based on the new operation logic.

[0025] It should be noted that by performing logical operations on the data in the public data storage chip and analyzing whether the current logical operation rules meet the requirements, the logical operation rules are dynamically adjusted so that data processing meets the processing rule requirements and improves data processing accuracy.

[0026] According to an embodiment of the present invention, according to the provisions of the EtherCAT protocol, reading the EtherCAT protocol data and encoding to generate an EtherCAT data frame specifically includes: Acquire EtherCAT protocol data, filter the EtherCAT protocol data based on the provisions of the EtherCAT protocol, and obtain data that complies with the provisions of the EtherCAT protocol; Encode the data that complies with the provisions of the EtherCAT protocol to obtain encoded data; Generate EtherCAT data frames based on the encoded data; Data that does not comply with the EtherCAT protocol will be removed.

[0027] It should be noted that the data is screened and processed according to the provisions of the EtherCAT protocol, so as to screen out data that meets the requirements, encode the data, and improve the processing accuracy of the data.

[0028] According to an embodiment of the present invention, encoding data that complies with the provisions of the EtherCAT protocol to obtain encoded data also includes: Obtain data that complies with the provisions of the EtherCAT protocol, encode it, and obtain ciphertext data; Analyze the encryption level of the ciphertext data to determine whether the encryption level meets the set encryption level; If it meets the set encryption level, the code is determined to meet the encryption requirements and the encoded data is generated; If the set encryption level is not met, the data encoding rules are adjusted.

[0029] It should be noted that by encrypting the data specified in the EtherCAT protocol, the security of data transmission is improved.

[0030] According to an embodiment of the present invention, an EtherCAT protocol transceiver receives an EtherCAT data frame and sends it to an EtherCAT industrial Ethernet, specifically including: Obtain EtherCAT data frames, classify the EtherCAT data frames, and obtain data of multiple categories; Different sending and receiving protocols are established based on multiple categories of data to transmit data and obtain transmission data; Analyze the accuracy of the transmitted data, dynamically adjust the receiving and sending protocols based on the accuracy of the transmitted data, receive the EtherCAT data frames, and send the received EtherCAT data frames to the EtherCAT industrial Ethernet.

[0031] It should be noted that by analyzing the categories of EtherCAT data frames and establishing different sending and receiving protocols, data can be transmitted efficiently and the accuracy of data transmission can be improved.

[0032] In a second aspect, an embodiment of the present application provides a gateway data protocol conversion system, the system comprising: a memory and a processor, the memory comprising a program of a gateway data protocol conversion method, and the program of the gateway data protocol conversion method is executed by the processor to implement the following steps: Receive data frames from the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol; Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation processing; Write EtherCAT protocol data into the EtherCAT protocol controller; According to the provisions of the EtherCAT protocol, read the EtherCAT protocol data, encode it and generate the EtherCAT data frame; Based on the EtherCAT protocol, the transceiver receives the EtherCAT data frame and sends it to the EtherCAT industrial Ethernet.

[0033] It should be noted that Profinet has smaller wiring and simplified debugging, can support multiple master stations to access one slave station, freely select topology, and more flexible wiring. Profinet is used in many industries, such as automobile manufacturing (robot loading station), paper industry, textile industry, process management automation - such as petrochemical, pharmaceutical industry, cement production, food production, beer production, etc.

[0034] According to an embodiment of the present invention, receiving a data frame of a Profinet bus and writing the received data into a public data storage chip according to the Profinet protocol specifically includes: Receive data frames of the Profinet bus, analyze the data frames of the Profinet bus, and obtain analysis results; Determine whether the analysis results meet the requirements of the Profinet protocol; If satisfied, the data frame of the Profinet bus is written into the public data storage chip; If not, the data frame of the Profinet bus that does not meet the requirements of the Profinet protocol will be optimized until the optimized data frame meets the requirements of the Profinet protocol.

[0035] It should be noted that by analyzing whether the data frame of the Profinet bus meets the requirements of the Profinet protocol, the data frame is dynamically optimized and adjusted, and the optimized data frame is stored in a public data storage chip.

[0036] According to an embodiment of the present invention, data in a public data storage chip is read and processed by logic operations to generate EtherCAT protocol data, which specifically includes: Acquire data in a public data storage chip, perform logic operations on the data, and obtain processed data; Determine whether the processed data meets the processing requirements; If the processing requirements are met, EtherCAT protocol data is generated; If the processing requirements are not met, the logic operation rules are adjusted to generate new operation logic, and the data in the public data storage chip are processed based on the new operation logic.

[0037] It should be noted that by performing logical operations on the data in the public data storage chip and analyzing whether the current logical operation rules meet the requirements, the logical operation rules are dynamically adjusted so that data processing meets the processing rule requirements and improves data processing accuracy.

[0038] According to an embodiment of the present invention, according to the provisions of the EtherCAT protocol, reading the EtherCAT protocol data and encoding to generate an EtherCAT data frame specifically includes: Acquire EtherCAT protocol data, filter the EtherCAT protocol data based on the provisions of the EtherCAT protocol, and obtain data that complies with the provisions of the EtherCAT protocol; Encode the data that complies with the provisions of the EtherCAT protocol to obtain encoded data; Generate EtherCAT data frames based on the encoded data; Data that does not comply with the EtherCAT protocol will be removed.

[0039] It should be noted that the data is screened and processed according to the provisions of the EtherCAT protocol, so as to screen out data that meets the requirements, encode the data, and improve the processing accuracy of the data.

[0040] According to an embodiment of the present invention, encoding data that complies with the provisions of the EtherCAT protocol to obtain encoded data also includes: Obtain data that complies with the provisions of the EtherCAT protocol, encode it, and obtain ciphertext data; Analyze the encryption level of the ciphertext data to determine whether the encryption level meets the set encryption level; If it meets the set encryption level, the code is determined to meet the encryption requirements and the encoded data is generated; If the set encryption level is not met, the data encoding rules are adjusted.

[0041] It should be noted that by encrypting the data specified in the EtherCAT protocol, the security of data transmission is improved.

[0042] According to an embodiment of the present invention, an EtherCAT protocol transceiver receives an EtherCAT data frame and sends it to an EtherCAT industrial Ethernet, specifically including: Obtain EtherCAT data frames, classify the EtherCAT data frames, and obtain data of multiple categories; Different sending and receiving protocols are established based on multiple categories of data to transmit data and obtain transmission data; Analyze the accuracy of the transmitted data, dynamically adjust the receiving and sending protocols based on the accuracy of the transmitted data, receive the EtherCAT data frames, and send the received EtherCAT data frames to the EtherCAT industrial Ethernet.

[0043] It should be noted that by analyzing the categories of EtherCAT data frames and establishing different sending and receiving protocols, data can be transmitted efficiently and the accuracy of data transmission can be improved.

[0044] A third aspect of the present invention provides a computer-readable storage medium, which includes a gateway data protocol conversion method program. When the gateway data protocol conversion method program is executed by a processor, the steps of the gateway data protocol conversion method as described above are implemented.

[0045] The present invention discloses a gateway data protocol conversion method, system and medium. The method comprises the following steps: receiving a data frame of a Profinet bus, and writing the received data into a public data storage chip according to the provisions of the Profinet protocol; reading the data in the public data storage chip, and generating EtherCAT protocol data through logic operation processing; writing the EtherCAT protocol data into an EtherCAT protocol controller; reading the EtherCAT protocol data according to the provisions of the EtherCAT protocol, and encoding and generating an EtherCAT data frame; receiving the EtherCAT data frame based on an EtherCAT protocol transceiver and sending the frame to the EtherCAT industrial Ethernet; realizing communication between the gateway and each slave station through the Profinet bus, realizing real-time data exchange, greatly enhancing the communication efficiency of the EtherCAT gateway, and being able to stably and quickly exchange data with the slave stations.

[0046] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0047] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0048] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0049] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, the aforementioned program can be stored in a readable storage medium, and when the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.

[0050] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A gateway data protocol conversion method, characterized in that: include: Receive data frames from the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol; Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation processing; Write EtherCAT protocol data into the EtherCAT protocol controller; According to the provisions of the EtherCAT protocol, read the EtherCAT protocol data, encode it and generate the EtherCAT data frame; Based on the EtherCAT protocol, the transceiver receives the EtherCAT data frame and sends it to the EtherCAT industrial Ethernet.

2. The gateway data protocol conversion method according to claim 1, characterized in that: Receive the data frame of the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol, including: Receive data frames of the Profinet bus, analyze the data frames of the Profinet bus, and obtain analysis results; Determine whether the analysis results meet the requirements of the Profinet protocol; If satisfied, the data frame of the Profinet bus is written into the public data storage chip; If not, the data frame of the Profinet bus that does not meet the requirements of the Profinet protocol will be optimized until the optimized data frame meets the requirements of the Profinet protocol.

3. The gateway data protocol conversion method according to claim 2, characterized in that: Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation, including: Acquire data in a public data storage chip, perform logic operations on the data, and obtain processed data; Determining whether the processed data meets the processing requirements; If the processing requirements are met, EtherCAT protocol data is generated; If the processing requirements are not met, the logic operation rules are adjusted to generate new operation logic, and the data in the public data storage chip are processed based on the new operation logic.

4. The gateway data protocol conversion method according to claim 3, characterized in that: According to the provisions of the EtherCAT protocol, read the EtherCAT protocol data and encode it to generate the EtherCAT data frame, including: Acquire EtherCAT protocol data, filter the EtherCAT protocol data based on the provisions of the EtherCAT protocol, and obtain data that complies with the provisions of the EtherCAT protocol; Encode the data that complies with the provisions of the EtherCAT protocol to obtain encoded data; Generate EtherCAT data frames based on the encoded data; Data that does not comply with the EtherCAT protocol will be removed.

5. The gateway data protocol conversion method according to claim 4, characterized in that: Encoding the data in accordance with the provisions of the EtherCAT protocol to obtain encoded data, further comprising: Obtain data that complies with the provisions of the EtherCAT protocol, encode it, and obtain ciphertext data; Analyze the encryption level of the ciphertext data to determine whether the encryption level meets the set encryption level; If it meets the set encryption level, the code is determined to meet the encryption requirements and the encoded data is generated; If the set encryption level is not met, the data encoding rules are adjusted.

6. The gateway data protocol conversion method according to claim 4, characterized in that: Based on the EtherCAT protocol transceiver, the EtherCAT data frame is received and sent to the EtherCAT industrial Ethernet, including: Obtain EtherCAT data frames, classify the EtherCAT data frames, and obtain data of multiple categories; Different sending and receiving protocols are established based on multiple categories of data to transmit data and obtain transmission data; Analyze the accuracy of the transmitted data, dynamically adjust the receiving and sending protocols based on the accuracy of the transmitted data, receive the EtherCAT data frames, and send the received EtherCAT data frames to the EtherCAT industrial Ethernet.

7. A gateway data protocol conversion system, characterized in that: The system includes: a memory and a processor, wherein the memory includes a program of a gateway data protocol conversion method, and when the program of the gateway data protocol conversion method is executed by the processor, the following steps are implemented: Receive data frames from the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol; Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation processing; Write EtherCAT protocol data into the EtherCAT protocol controller; According to the provisions of the EtherCAT protocol, read the EtherCAT protocol data, encode it and generate the EtherCAT data frame; Based on the EtherCAT protocol, the transceiver receives the EtherCAT data frame and sends it to the EtherCAT industrial Ethernet.

8. The gateway data protocol conversion system according to claim 7, characterized in that: Receive the data frame of the Profinet bus and write the received data into the public data storage chip according to the Profinet protocol, including: Receive data frames of the Profinet bus, analyze the data frames of the Profinet bus, and obtain analysis results; Determine whether the analysis results meet the requirements of the Profinet protocol; If satisfied, the data frame of the Profinet bus is written into the public data storage chip; If not, the data frame of the Profinet bus that does not meet the requirements of the Profinet protocol will be optimized until the optimized data frame meets the requirements of the Profinet protocol.

9. The gateway data protocol conversion system according to claim 8, characterized in that: Read the data in the public data storage chip, and generate EtherCAT protocol data after logical operation, including: Acquire data in a public data storage chip, perform logic operations on the data, and obtain processed data; Determining whether the processed data meets the processing requirements; If the processing requirements are met, EtherCAT protocol data is generated; If the processing requirements are not met, the logic operation rules are adjusted to generate new operation logic, and the data in the public data storage chip are processed based on the new operation logic.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a gateway data protocol conversion method program, and when the gateway data protocol conversion method program is executed by a processor, the steps of the gateway data protocol conversion method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Gateways for EtherCAT and PROFIBUS-DP protocol communication conversion and their communication methods

    CN102291337A

  • IIoT (Industrial Internet of Things)-specific data exchange system

    DE202019106455U1

  • Protocol converter and automation system

    US20230039256A1