Multi-protocol adaptive conversion control method and controller based on industrial ethernet

By designing a multi-protocol adaptive conversion controller, which utilizes IP cores and a central processing unit of multiple Ethernet protocol types to process data frames, the adaptability problem of industrial Ethernet controllers in different environments is solved, and the controller can be flexibly applied under multiple protocols.

CN118677960BActive Publication Date: 2025-12-30BEIJING LANPUFENG TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410613405.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2025-12-30
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

How to realize the application of industrial Ethernet controllers in different environments, especially the adaptive conversion under different Ethernet protocol types? Most current industrial network configurations are based on industrial Ethernet technology, which lacks flexibility and adaptability.

Method used

Design a multi-protocol adaptive conversion controller based on industrial Ethernet, which includes multiple IP cores of different Ethernet protocol types. The IP cores process data frames and the central processing unit performs protocol application layer processing to enable the controller to be used in different situations.

Benefits of technology

This enables the controller to adapt flexibly to different Ethernet protocol environments, expands the application scenarios of the controller, and improves the adaptability and flexibility of industrial networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677960B_ABST
    Figure CN118677960B_ABST
Patent Text Reader

Abstract

The application discloses a multi-protocol adaptive conversion method based on an industrial Ethernet and a controller. The controller has a plurality of IP cores corresponding to different Ethernet protocol types. The IP cores can process data frames of different Ethernet protocol types to obtain corresponding processed data frames. An application layer of an Ethernet protocol corresponding to the Ethernet protocol type in the processed data frames is processed by using a central processing unit to obtain a final data frame. Thus, the controller can be applied in different occasions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of conversion control technology, and in particular to a multi-protocol adaptive conversion control method and controller based on industrial Ethernet. Background Technology

[0002] As the concept of Industry 4.0 is increasingly integrated into industrial production, the global manufacturing industry is gradually shifting from digitalization to intelligentization. This is crucial for improving personnel efficiency, increasing production capacity, saving production costs, and creating unmanned, modern intelligent factories. Achieving intelligentization requires the support of basic network communication, and most current industrial network configurations are based on Industrial Ethernet technology. Industrial Ethernet protocols utilize Ethernet components and technologies, employ the TCP / IP protocol, and are compatible with the IEEE 802.3 standard. By adding specific protocols at the application layer, they enable applications in different environments. Therefore, how to implement controller applications in different environments has become a pressing technical problem for those skilled in the art. Summary of the Invention

[0003] In view of this, this application provides a multi-protocol adaptive conversion control method and controller based on industrial Ethernet. The controller has multiple IP cores corresponding to different Ethernet protocol types. The IP cores can process data frames of different Ethernet protocol types to obtain corresponding processed data frames. The central processing unit then processes the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain the final data frame. This enables the controller to be used in different situations.

[0004] According to one aspect of this application, a multi-protocol adaptive conversion controller based on industrial Ethernet is provided, including at least one Ethernet port and a programmable logic device; the programmable logic device includes at least one media access controller, the Ethernet port and the media access controller are corresponding, and the Ethernet port is used to send data frames to the media access controller;

[0005] The programmable logic device is used to determine the target Ethernet protocol type corresponding to the data frame received by the media access controller;

[0006] The programmable logic device further includes multiple IP cores corresponding to different Ethernet protocol types; the editable logic editor is also used to call the IP core corresponding to the target Ethernet protocol type, and use the IP core corresponding to the target Ethernet protocol type to process the data frame; send the processed data frame and the target Ethernet protocol type to the central processing unit; the central processing unit is used to process the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain a final data frame, so as to control external devices using the final data frame; the central processing unit is also used to return the final data frame to the Ethernet interface through the programmable logic device.

[0007] In some embodiments, the Ethernet port is used to send the data frame to the media access controller via the interface between the physical interface transceiver and the programmable logic device.

[0008] In some embodiments, the programmable logic device is used to send the data frame and the target Ethernet protocol type to the central processing unit via a parallel port.

[0009] In some embodiments, the number of Ethernet ports is two.

[0010] In some embodiments, the plurality of IP cores corresponding to different Ethernet protocol types include at least an EtherCAT protocol processing IP core, an EtherNet / IP protocol processing IP core, a PROF1NET protocol processing IP core, and a Modbus TCP / IP protocol processing IP core.

[0011] In some embodiments, the IP core is an IP core with modifiable parameters.

[0012] According to another aspect of this application, a multi-protocol adaptive conversion control method based on industrial Ethernet is provided, applied to a multi-protocol adaptive conversion controller based on industrial Ethernet, comprising:

[0013] The Ethernet port sends data frames to the media access controller;

[0014] The programmable logic device determines the target Ethernet protocol type corresponding to the data frame received by the media access controller; calls the IP core corresponding to the target Ethernet protocol type, processes the data frame using the IP core corresponding to the target Ethernet protocol type; and sends the processed data frame and the target Ethernet protocol type to the central processing unit.

[0015] The central processing unit processes the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain a final data frame, which is then used to control external devices. The central processing unit returns the final data frame to the Ethernet interface through the programmable logic device.

[0016] In some embodiments, the step of the programmable logic device processing the data frame using an IP core corresponding to the target Ethernet protocol type to obtain the final data frame includes:

[0017] The programmable logic device processes the data link layer, network layer, and transport layer of the Ethernet protocol corresponding to the Ethernet protocol type in the data frame to obtain the final data frame.

[0018] In some embodiments, the Ethernet port transmits the data frames to the media access controller via the interface between the physical interface transceiver and the programmable logic device.

[0019] In some embodiments, the programmable logic device sends the data frame and the target Ethernet protocol type to the central processing unit via a parallel port.

[0020] This application provides a multi-protocol adaptive conversion control method and controller based on industrial Ethernet. The controller has multiple IP cores corresponding to different Ethernet protocol types. The IP cores can process data frames of different Ethernet protocol types to obtain corresponding processed data frames. The central processing unit then processes the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain the final data frame. This enables the controller to be used in different situations.

[0021] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0022] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0023] Figure 1 An exemplary schematic diagram of a multi-protocol adaptive conversion controller based on industrial Ethernet, according to some embodiments, is shown.

[0024] Figure 2 A flowchart of a multi-protocol adaptive switching control method based on industrial Ethernet is shown as an example, according to some embodiments. Detailed Implementation

[0025] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0026] As the concept of Industry 4.0 is increasingly integrated into industrial production, the global manufacturing industry is gradually shifting from digitalization to intelligentization. This is crucial for improving personnel efficiency, increasing production capacity, saving production costs, and creating unmanned, modern intelligent factories. Achieving intelligentization requires the support of basic network communication, and most current industrial network configurations are based on Industrial Ethernet technology. Industrial Ethernet protocols utilize Ethernet components and technologies, employ the TCP / IP protocol, and are compatible with the IEEE 802.3 standard. By adding specific protocols at the application layer, they enable applications in different environments. Therefore, how to implement controller applications in different environments has become a pressing technical problem for those skilled in the art.

[0027] To address the aforementioned technical problems, this application provides a multi-protocol adaptive conversion controller based on industrial Ethernet. This controller contains multiple IP cores corresponding to different Ethernet protocol types. The IP cores can process data frames of different Ethernet protocol types to obtain corresponding processed data frames. The central processing unit then processes the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain the final data frame. This allows the controller to be used in different applications.

[0028] Figure 1 An exemplary schematic diagram of a multiprotocol adaptive conversion controller based on industrial Ethernet is shown according to some embodiments.

[0029] In this embodiment, the controller includes at least one Ethernet port 1 and a programmable logic device 2; the programmable logic device 2 includes at least one media access controller 21 (MAC), and the Ethernet port 1 corresponds to the media access controller 21. The Ethernet port 1 is used to send data frames to the media access controller. For example, the Ethernet port 1 can be an RJ45 port with an isolation transformer.

[0030] In this embodiment, the number of Ethernet ports and the number of media access controllers are the same. In some embodiments, the number of Ethernet ports is two. The two Ethernet ports have switching functionality. Correspondingly, the number of media access controllers is also two.

[0031] In some embodiments, the Ethernet port 1 is used to send the data frame to the media access controller 21 through the interface 22 of the physical interface transceiver 3 (PHY) and the programmable logic device (FPGA).

[0032] In some embodiments, the interface of the programmable logic device may be an MII interface, an RMII interface, a GMII interface, or an RGMII interface.

[0033] The programmable logic device is used to determine the target Ethernet protocol type corresponding to the data frame received by the media access controller.

[0034] In this embodiment, the programmable logic device determines the target Ethernet protocol type corresponding to the data frame. Using the target Ethernet protocol type, the IP core to be invoked subsequently is determined.

[0035] The programmable logic device also includes multiple IP cores corresponding to different Ethernet protocol types; the editable logic editor is also used to call the IP core corresponding to the target Ethernet protocol type and process the data frame using the IP core corresponding to the target Ethernet protocol type.

[0036] In this embodiment of the application, after determining the target Ethernet protocol type corresponding to the data frame, the programmable logic device selects the IP core corresponding to the same Ethernet protocol type as the target Ethernet protocol type from multiple different Ethernet protocol types, and uses the IP core to convert the data frame.

[0037] In this embodiment, the controller, acting as an Ethernet protocol slave module, can automatically determine and identify the target Ethernet protocol type based on the data frame. It then uses different IP cores to process frames in different ways according to the different target Ethernet protocol types, thereby achieving the function of a slave controller module that automatically adapts to multiple types of industrial Ethernet protocols. Specifically, each IP core can be used to process data frames of different target Ethernet protocol types.

[0038] In this embodiment, the programmable logic device can process data frames of different Ethernet protocol types received by the Ethernet interface using IP cores of different Ethernet protocol types. In this way, when the Ethernet protocol type of the data frame received by the Ethernet interface changes, the controller can process the data frame of the current Ethernet protocol type detected in real time, thereby expanding the application scenarios of the controller.

[0039] In some embodiments, the step of the programmable logic device processing the data frame using an IP core corresponding to the target Ethernet protocol type to obtain the final data frame includes:

[0040] The programmable logic device uses the IP core corresponding to the target Ethernet protocol type to process the data link layer, network layer, and transport layer of the Ethernet protocol corresponding to the Ethernet protocol type in the data frame to obtain the final data frame.

[0041] Specifically, the programmable logic device uses an IP core corresponding to the target Ethernet protocol type to identify the data frame and perform CRC (Cyclic Redundancy Check) verification. For example, the data frame is identified according to the protocol rules of the target Ethernet protocol type, specifically including determining whether the data frame is complete and whether it conforms to the expected format. If the data frame is determined to be complete and conforms to the expected format, the CRC verification continues. If the verification passes, ensuring the integrity and correctness of the data, the data frame is further parsed to extract the frame format and protocol commands corresponding to the target Ethernet protocol type, resulting in the final data frame.

[0042] In some embodiments, the plurality of IP cores corresponding to different Ethernet protocol types include at least an EtherCAT protocol processing IP core, an EtherNet / IP protocol processing IP core, a PROF1NET protocol processing IP core, and a Modbus TCP / IP protocol processing IP core. It should be noted that, in addition to the Ethernet protocol types mentioned above, other Ethernet protocol types may also be included; the Ethernet protocol types mentioned above are commonly used industrial Ethernet protocol types.

[0043] In some embodiments, the IP core is an IP core with modifiable parameters. In this application embodiment, in the programmable logic device, each relatively complex program function module of the industrial Ethernet protocol to be processed is designed as an IP core with modifiable parameters. This allows the IP core to be modified according to the actual protocol type required for conversion.

[0044] The data frame and the target Ethernet protocol type are sent to the central processing unit using the IP core corresponding to the target Ethernet protocol type.

[0045] In some embodiments, the programmable logic device 2 is used to send the data frame and the target Ethernet protocol type to the central processing unit 5 via parallel port 4.

[0046] In some embodiments, parallel port 4 can be an FSMC (Flexible Static Memory Controller) interface.

[0047] In some embodiments, the programmable logic device also detects the connection status of the parallel port before sending the data frame and the target Ethernet protocol type to the central processing unit via the parallel port.

[0048] In some embodiments, when the parallel port is in the connection established state, the data frame and the target Ethernet protocol type are sent to the central processing unit.

[0049] The central processing unit 5 is used to process the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain the final data frame, so as to control the external device 6 using the final data frame.

[0050] In this embodiment, the central processing unit is responsible for processing the application layer of the current Ethernet protocol and finally interacting with the user layer to realize different applications of the controller.

[0051] In other words, the programmable logic device (PLD) determines the current Ethernet protocol type based on the received Ethernet data (data frames). Then, it uses the IP core corresponding to the Ethernet protocol type to process the data link layer, network layer, and transport layer of the Ethernet protocol within the Ethernet data, and interacts with the central processing unit (CPU) to inform the CPU of the current protocol type. The CPU is responsible for processing the application layer of the Ethernet protocol within the current Ethernet data, connecting different types of peripherals as needed, and interacting with the user layer to implement applications in different scenarios.

[0052] In this embodiment, the central processing unit (CPU) is further configured to return the final data frame to the Ethernet interface via the programmable logic device (PLD), thereby enabling bidirectional interaction between the CPU and the Ethernet interface. In some embodiments, the CPU sends the final data frame to the PLD via a parallel port, and the PLD sends the received final data frame to the Ethernet port via its interface and physical interface transceiver.

[0053] Figure 2 A flowchart of a multi-protocol adaptive switching control method based on industrial Ethernet, according to some embodiments, is illustrated. Figure 2In this process, the programmable logic device (PLD) acquires Ethernet data frames and determines the Ethernet protocol type based on the data frame. Then, it calls the corresponding IP core based on the Ethernet protocol type. Figure 2 The IP cores include IP cores for EtherCAT, EtherNet / IP, PROF / NET, and Modbus TCP / IP protocols, and may also include IP cores for other commonly used Ethernet protocols. The IP cores send the processed protocol data frames and the current protocol type (data frame and target Ethernet protocol type) to the central processing unit (CPU) for further processing. The CPU processes the corresponding Ethernet protocol application layer information, interacts with the user layer, and calls and processes different peripherals as needed.

[0054] This application also provides a multi-protocol adaptive conversion control method based on industrial Ethernet, applied to a multi-protocol adaptive conversion controller based on industrial Ethernet. This control method corresponds to the controller described above, so the specific steps of the control method will not be explained here; please refer to the description of the controller above. The method includes:

[0055] The Ethernet port sends data frames to the media access controller.

[0056] In some embodiments, the Ethernet port transmits the data frames to the media access controller via the interface between the physical interface transceiver and the programmable logic device.

[0057] The programmable logic device determines the target Ethernet protocol type corresponding to the data frame received by the media access controller; it calls the IP core corresponding to the target Ethernet protocol type and processes the data frame using the IP core corresponding to the target Ethernet protocol type.

[0058] In some embodiments,

[0059] The steps of processing the data frame using an IP core corresponding to the target Ethernet protocol type to obtain the final data frame by the programmable logic device include:

[0060] The programmable logic device uses the IP core corresponding to the target Ethernet protocol type to process the data link layer, network layer, and transport layer of the Ethernet protocol corresponding to the Ethernet protocol type in the data frame to obtain the final data frame.

[0061] The IP core corresponding to the target Ethernet protocol type sends the processed data frame and the target Ethernet protocol type to the central processing unit.

[0062] In some embodiments, the programmable logic device sends the data frame and the target Ethernet protocol type to the central processing unit via a parallel port.

[0063] The central processing unit (CPU) processes the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain a final data frame, which is then used to control external devices. The CPU returns the final data frame to the Ethernet interface through the programmable logic device.

[0064] This application provides a multi-protocol adaptive conversion control method and controller based on industrial Ethernet. The controller has multiple IP cores corresponding to different Ethernet protocol types. The IP cores can process data frames of different Ethernet protocol types to obtain corresponding processed data frames. The central processing unit then processes the application layer of the Ethernet protocol corresponding to the Ethernet protocol type in the processed data frame to obtain the final data frame. This enables the controller to be used in different applications.

[0065] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0066] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A multi-protocol adaptive translation controller based on industrial Ethernet, characterized in that, The device comprises at least one Ethernet interface and a programmable logic device; the programmable logic device comprises at least one media access controller, the Ethernet interface and the media access controller correspond to each other, and the Ethernet interface is used to send a data frame to the media access controller; The programmable logic device is used to determine a target Ethernet protocol type corresponding to the data frame received by the media access controller; The programmable logic device further comprises a plurality of IP cores corresponding to different Ethernet protocol types; the programmable logic device is further used to call an IP core corresponding to the target Ethernet protocol type and process the data frame by using the IP core corresponding to the target Ethernet protocol type; The processed data frame and the target Ethernet protocol type are sent to a central processing unit; the central processing unit is used to process an application layer of an Ethernet protocol corresponding to the target Ethernet protocol type in the processed data frame to obtain a final data frame, so as to control an external device by using the final data frame; The central processing unit is further used to return the final data frame to the Ethernet interface through the programmable logic device; The step of processing the data frame by using the IP core corresponding to the target Ethernet protocol type comprises the following steps: determining whether the data frame is complete and conforms to an expected format by using the IP core corresponding to the target Ethernet protocol type; if the data frame is complete and conforms to the expected format, performing CRC check; if the check is passed, parsing the data frame to obtain a frame format and a protocol command of a protocol corresponding to the target Ethernet protocol type.

2. The controller of claim 1, wherein, The Ethernet interface is used to send the data frame to the media access controller through a physical interface transceiver and an interface of the programmable logic device.

3. The controller of claim 1, wherein, The programmable logic device is used to send the data frame and the target Ethernet protocol type to the central processing unit through a parallel port.

4. The controller of claim 1, wherein, The number of the Ethernet interfaces is two.

5. The controller of claim 1, wherein, The plurality of IP cores corresponding to different Ethernet protocol types at least comprise an EtherCAT protocol processing IP core, an EtherNet / IP protocol processing IP core, a PROFINET protocol processing IP core and a Modbus TCP / IP protocol processing IP core.

6. The controller of claim 1, wherein, The IP core is a parameter-modifiable IP core.

7. A method for multi-protocol adaptive conversion control based on industrial Ethernet, applied to a multi-protocol adaptive conversion controller based on industrial Ethernet, characterized in that, The device comprises: The Ethernet interface sends a data frame to the media access controller; The programmable logic device determines a target Ethernet protocol type corresponding to the data frame received by the media access controller; An IP core corresponding to the target Ethernet protocol type is called, and the data frame is processed by using the IP core corresponding to the target Ethernet protocol type; The processed data frame and the target Ethernet protocol type are sent to a central processing unit; The central processing unit processes an application layer of an Ethernet protocol corresponding to the target Ethernet protocol type in the processed data frame to obtain a final data frame, so as to control an external device by using the final data frame; and the central processing unit returns the final data frame to the Ethernet interface through the programmable logic device. The step of processing the data frame by using the IP core corresponding to the target Ethernet protocol type comprises judging whether the data frame is complete and conforms to an expected format by using the IP core corresponding to the target Ethernet protocol type; if so, performing a CRC check; and if the check is passed, parsing the data frame to obtain a frame format and a protocol command of a protocol corresponding to the target Ethernet protocol type.

8. The method of claim 7, wherein, The step of processing the data frame by using the IP core corresponding to the target Ethernet protocol type comprises: The step of processing the data frame by using the IP core corresponding to the target Ethernet protocol type comprises processing a data link layer, a network layer and a transport layer of an Ethernet protocol corresponding to the Ethernet protocol type in the data frame by using the IP core corresponding to the target Ethernet protocol type.

9. The method of claim 7, wherein, The Ethernet network interface sends the data frame to a medium access controller through a physical interface transceiver and an interface of the programmable logic device.

10. The method of claim 7, wherein, The programmable logic device sends the data frame and the target Ethernet protocol type to a central processing unit through a parallel port.

Citation Information

Patent Citations

  • Multiprotocol industrial Ethernet remote I / O template

    CN203775227U