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?

Sprite
Espressif staff
Espressif staff
Posts: 10594
Joined: Thu Nov 26, 2015 4:08 am

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

Postby 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

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.

LucM___
Posts: 1
Joined: Mon Mar 30, 2026 3:17 pm

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

Postby LucM___ » Mon Mar 30, 2026 3:25 pm

viewtopic.php?t=32162

I have not tried this as yet. Has possibilities..
I am planning on using it to 'post' some data to a rockwell PLC snooped from an older chinese S7200 that is talking to a drive and an HMI and hos no comms interfaces left.. Ifthings go well, I can get the machine speed and such from the drive interface and not have to snoop on what the HMI is doing.. Better option, as the HMI only upates tags that are activly on a displayed screen, and due to protocol limitation, I can't ask the plc anything on that interface.

The ESP boards that are compatible, and have built in ethernet PHY hardware run around $20 each on amazon.

If things go well, I will post an update in a week or so.

Luc

copercini
Posts: 28
Joined: Wed Dec 21, 2016 4:44 pm

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

Postby copercini » Wed Apr 01, 2026 2:52 pm

It’s not a simple task because ODVA updates the EtherNet/IP standard every year or so. When you run the conformance test, it must comply with the latest version of the standard

If you’re only going to develop a few devices, it’s not worth hiring a team of engineers to read through a specification containing hundreds of thousands of lines, build a large and complex software stack, run multiple tests to achieve conformance, and keep updating it to meet the latest standard

It’s better to choose one of the off-the-shelf solutions you listed on the first post

Who is online

Users browsing this forum: PerplexityBot, Qwantbot, Semrush [Bot] and 4 guests