ArduinoOSC icon indicating copy to clipboard operation
ArduinoOSC copied to clipboard

run ArduinoOSCEther with OLIMEX ESP32 POE

Open ChristopheLebreton opened this issue 3 years ago • 4 comments

Hi, I try to use OLIMEX ESP32 POE with ArduinoOSCEther. With this device ETH_LAN8720 example works through ETH.h provide by library Espressif ESP32 but it doesn't work with Ehternet.h used with ArduinoOSCEther.

There's a way to run ArduinoOSC through Ethernet with kind of this board ?

best ;)

ChristopheLebreton avatar May 06 '22 09:05 ChristopheLebreton

Hi, this library supports only Ethernet library. I'm happy if you give me a pull request.

hideakitai avatar May 06 '22 10:05 hideakitai

Library below also works and like used UDP perhaps there's a way to use with your's ? :

AsyncUDP_WT32_ETH01 is a Async UDP library for the WT32_ETH01 (ESP32 + LAN8720) Based on and modified from ESPAsyncUDP Library (https://github.com/me-no-dev/ESPAsyncUDP) Built by Khoi Hoang https://github.com/khoih-prog/AsyncUDP_WT32_ETH01

ChristopheLebreton avatar May 06 '22 12:05 ChristopheLebreton

Of course I can, but I don't have enough time and don't have a plan to support like it.

hideakitai avatar May 06 '22 14:05 hideakitai

no problem I understand, I try find a other way and if I've also some time I'll study it more deeply ;) ESP32 power and ethernet it'll be very interesting for real time process quality. best :)

ChristopheLebreton avatar May 06 '22 14:05 ChristopheLebreton

Hi @ChristopheLebreton did you find a solution to this? I've got the same issue.

I didn't realise the OLIMEX ESP32-POE used ETH.h not Ethernet.h.

rsmck avatar Mar 22 '23 18:03 rsmck

In case anyone else stumbles upon this thread... ETH.h is derived from the usual WiFi libraries.

I don't have the C skills to do this properly and submit a pull request, but an extremely hacky solution (that works) is as follows (maybe this will provide enough info for someone more competent to make official support.

In ArduinoOSCWiFi.h change line 11 from #include <WiFi.h> to #include <ETH.h>

In ArduinoOSCCommon.h comment out the if {} statement around line 60 that checks if (WiFi.getMode() != WIFI_OFF), mine now looks simply like this;

        void subscribe(const uint16_t port, const String& addr, Ts&&... ts) {
            OscServerManager<S>::getInstance().getServer(port).subscribe(addr, std::forward<Ts>(ts)...);
        }

This allows ArduinoOSCWiFi (yes, the WiFi version, not the Ether one) to work as expected over Ethernet on the OLIMEX ESP32 POE.

It does, of course, mean you can't use the WiFi interface... but for my application that didn't matter so I haven't investigated it any further.

Hopefully this helps someone else.

rsmck avatar Mar 22 '23 23:03 rsmck

I will support ETH soon.

hideakitai avatar Aug 07 '23 00:08 hideakitai

Hi,

very good news let me know if you want I test it ;)

Best

Chris

Le 7 août 2023 à 02:10, Hideaki Tai @.***> a écrit :

I will support ETH soon.

— Reply to this email directly, view it on GitHub https://github.com/hideakitai/ArduinoOSC/issues/28#issuecomment-1667014352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDMZYJTKD4XX4E5HFP42ATXUAW7NANCNFSM5VHTPNFA. You are receiving this because you were mentioned.

ChristopheLebreton avatar Aug 11 '23 14:08 ChristopheLebreton

ETH.h support added. Please see examples/arduino/OscETH/OscETH.ino for how to use it.

hideakitai avatar Aug 13 '23 15:08 hideakitai