WaveShare ESP32-P4-ETH-POE Problem #176
Unanswered
jaredsummer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am testing WaveShare ESP32-P4-ETH-POE board for AppleMIDI. I use Arduino IDE and wESP32_NoteOnOffEverySec sketch as a starting template. I had to modify ETH_Helper.h:
#include <ETH.h>
#include <ESPmDNS.h>
#include <WiFi.h>
#include <Arduino.h>
#include <WiFiUdp.h>
static bool eth_connected = false;
void WiFiEvent(WiFiEvent_t event)
{
switch (event) {
case ARDUINO_EVENT_ETH_START:
DBG("ETH Started");
//set eth hostname here
ETH.setHostname("esp32-ethernet");
break;
case ARDUINO_EVENT_ETH_CONNECTED:
DBG("ETH Connected");
break;
case ARDUINO_EVENT_ETH_GOT_IP:
DBG("ETH MAC:", ETH.macAddress(), "IPv4:", ETH.localIP(), ETH.linkSpeed(), "Mbps");
if (ETH.fullDuplex())
DBG("FULL_DUPLEX");
eth_connected = true;
break;
case ARDUINO_EVENT_ETH_DISCONNECTED:
DBG("ETH Disconnected");
eth_connected = false;
break;
case ARDUINO_EVENT_ETH_STOP:
DBG("ETH Stopped");
eth_connected = false;
break;
default:
break;
}
}
The code compiles and basically works, but when I connect it to a DAW (Pro Tools, Logic) and the DAW starts transmitting to the network session, the client (my ESP32-P4 device) gets disconnected from Apple Audio MIDI Setup.
I think this might be related to the Ethernet buffers. I tried to find a way to increase them, but the only option seems to be using PlatformIO with VS Code, and I wasn’t able to configure it with all the libraries I need (on the Mac M3).
This could be a known problem, so I’m looking for any tips on how to solve it, if it is indeed related to Ethernet buffering.
Thanks.
Jared
I tested OLIMEX ESP32-POE-ISO today: a little bit more stable, but the device got disconnected after 1-2 minutes (while receiving MIDI) and reported dropped events.
Beta Was this translation helpful? Give feedback.
All reactions