Using Raspberry Pi3 with Duet 2 Ethernet
-
Hi,
the easiest way is to use a bridge. Something like this (small, enough bandwith):
Costs about 20 euros and can be powered over the 5 Volt pins of the duet.
I'm using it with my maestro and it's perfect.
-
Whilst I totally agree simplicity is better, there are situations where it makes sense.
When you are already using the Pi for other things eg motioneye for remote monitoring / recording or octoprint etc.
I would prefer to minimize additional components. -
All are great solutions to various scenarios... @incogizmo hit the nail on the head for my scenario, I am using something similar to motion eye to stream jpegs to DWC. I also have 5 RPI3s, about 10 USB Wifi adaptors and other little tid bits. I have a monoprice duplicator 6 with a Duet WiFi and love it. I just decided to give the Ethernet version a shot on a whim. Who knows, I may come up with other ideas where the RPI3 will come in handy.
-
Here's another possible and much easier solution... use "socat" to bridge the ports...
Give the duet and the pi ethernet port static addresses say 10.0.0.2/24 and 10.0.0.1/24 respectively then run socat as follows...
socat \ TCP4-LISTEN:80,bind=<pi_wifi_addr>,reuseaddr,fork \ TCP4:10.0.0.2:80,bind=10.0.0.1
Now any connection that comes in over wifi to port 80 will get forwarded to the duet's port 80.