ESP32 as Ethernet/IP (Industrial Protocol) Adapter

crnewton
Posts: 6
Joined: Mon Nov 07, 2022 9:58 am

ESP32 as Ethernet/IP (Industrial Protocol) Adapter

Postby crnewton » Thu Feb 16, 2023 1:22 pm

I have a project with an ESP32 and W5500 ethernet module.
I'm looking to add Ethernet/IP (EIP) support, where the ESP32 is the EIP Adapter (which is the EIP term for slave).

I don't have a lot of knowledge of the EIP stack so I hope someone can give me some insight.
I've looked and not found an open source implementation of Ethernet/IP for the ESP32 (or any other microcontroller).
I think the options are:
- It is possible to implement the whole stack but a lot of work, it shares the CIP layer of Ethernet TCP/IP though.
- It it possible to buy the Ethernet/IP software stack, and implement it on ESP32: https://www.rtautomation.com/product/et ... ode-stack/
- Buy a dedicated Network SoCs + their firmware and interface it with ESP32: https://www.hilscher.com/products/netwo ... roller-soc
- Buy an adapter: https://www.gridconnect.com/products/ne ... thernet-ip

Anyone knows a library for Ethernet/IP or has some experience with implementing the stack themselves?

ESP_Sprite
Posts: 9577
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 as Ethernet/IP (Industrial Protocol) Adapter

Postby ESP_Sprite » Fri Feb 17, 2023 6:24 am

There's an open-source library for that here. I have no experience with it, but given that it purports to be portable and expects a POSIX interface, I'm decently sure it shouldn't be that hard to port to ESP-IDF. It can use the lower-level TCP/IP layers already available on the ESP32/ESP-IDF, so you can communicate over WiFi, the built-in Ethernet MAC, or any other interface that is supported by or can be made to work with ESP-IDF.

crnewton
Posts: 6
Joined: Mon Nov 07, 2022 9:58 am

Re: ESP32 as Ethernet/IP (Industrial Protocol) Adapter

Postby crnewton » Tue Feb 21, 2023 12:52 pm

ESP_Sprite wrote:
Fri Feb 17, 2023 6:24 am
There's an open-source library for that here. I have no experience with it, but given that it purports to be portable and expects a POSIX interface, I'm decently sure it shouldn't be that hard to port to ESP-IDF. It can use the lower-level TCP/IP layers already available on the ESP32/ESP-IDF, so you can communicate over WiFi, the built-in Ethernet MAC, or any other interface that is supported by or can be made to work with ESP-IDF.
Thank you. Definitely an option, but not something I can/will do.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 288 guests