EtherNet/IP Adapter

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
dweinho1
Posts: 8
Joined: Sun Mar 06, 2022 5:22 pm

EtherNet/IP Adapter

Post by dweinho1 » Mon Aug 01, 2022 4:48 pm

Hi all,
EtherNet/IP is becoming a bigger and bigger part of industrial communications. I thought it would be really neat to use an RPi 2040 to act as as a gateway to handle communications and interface with another board over UART. The idea being that one core would handle the EIP side of things and the other would communicate via UART with another microcontroller and update tags.

The physical layer seems straightforward but I am struggling with where to start on the firmware side of things. I was thinking an approach would be to adapt the pycomm3 module (https://github.com/ottowayi/pycomm3) to the rpi.

I thought I would open this up for any thoughts or words of wisdom. Has anyone done something like this?

Thanks!

UncleBee1885
Posts: 1
Joined: Mon Jul 11, 2022 4:17 pm

Re: EtherNet/IP Adapter

Post by UncleBee1885 » Mon Aug 01, 2022 7:14 pm


User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: EtherNet/IP Adapter

Post by Roberthh » Mon Aug 01, 2022 7:22 pm

There is also a PR outstanding by use @omogenot which support the W5500_EVB_PICO. See https://github.com/micropython/micropython/pull/8962. The W5100S_EVB_PICO is already supported by MicroPython.
Other RP2040/W5500 boards should be adapted easily. You can as well just wire a W5500 breakout board to a standard rp2040 Pico and use the W5500 firmware. That's what I did for testing.

dweinho1
Posts: 8
Joined: Sun Mar 06, 2022 5:22 pm

Re: EtherNet/IP Adapter

Post by dweinho1 » Tue Aug 02, 2022 11:47 am

Ah didn't realize there was a built in W5500 with an RPi. In any case, I definitely planned on the W5500 for the physical ethernet layer. Was more curious if anyone had thoughts on the software side of things :)

Post Reply