<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Testing  ESP32 Ethernet Unit with PoE (SKU:U138 )]]></title><description><![CDATA[<p dir="auto">I tried to verify that these unit worked using M5Stack demo software at:<a href="https://docs.m5stack.com/en/unit/poesp32" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/unit/poesp32</a>.<br />
I tried examples with Core, M5Stack Plus and Atom for both TCP Client, HTTP Client and MQTT Client. None of these worked.<br />
All of the examples resulted in the M5tack core device hanging with a serial debug message<br />
"wait device connect<br />
device connected"<br />
Taking one example using the ESP32 Ethernet Unit with Core + Base to get access to the ports. I found a potential error in the published code. The published code uses the configuration for line 23:<br />
"eth.Init(&amp;Serial2, 9600, 32, 26);"<br />
If the 32 &amp; 36 parameters refer to the Core ports then this is in error. For Port B this should be "eth.Init(&amp;Serial2, 9600, 36, 26);". Alternatively if Port C is used then the replacement code is: Line 23  "eth.Init(&amp;Serial2, 9600, 16, 17);" Do the parameters in "eth.Init(&amp;Serial2, 9600, 36, 26);" refer to the host Core or the embedded ESP32 in the ESP32 Ethernet Unit?</p>
<p dir="auto">With the new code this results in progressing execution beyond the "device connect" and it now hangs waiting for an ethernet connecitons - debug message:<br />
"wait device connect<br />
device connected<br />
wait ethernet connect"<br />
I could not get it to progress beyond this stage.</p>
<p dir="auto">My hardware configuration was that I connected the ESP32 Ethernet Unit to an ethernet cable which was connected at the other end to a Tp-link PoE Injector TL-POE 15OS with a 12V DC supply. The input connection to the Tp-link PoE Injector came from a Ethernet Switch connected to my home network. There was a Grove cable connecting the ESP32 Ethernet Unit to the M5Stack Core on Port C.<br />
Is there  any revised and update to date code for these examples?<br />
Do anyone else get the example code to work?<br />
I also could not get the UIFlow example to work.<img src="/assets/uploads/files/1671083228443-screen-shot-test-configuration-dec22v2-resized.jpg" alt="0_1671083224592_Screen Shot -test configuration - Dec22V2.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/4897/testing-esp32-ethernet-unit-with-poe-sku-u138</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:34:58 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4897.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Dec 2022 05:38:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Testing  ESP32 Ethernet Unit with PoE (SKU:U138 ) on Thu, 15 Dec 2022 07:30:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/dsrc12" aria-label="Profile: dsrc12">@<bdi>dsrc12</bdi></a></p>
<p dir="auto">you are correct, the GPIOs for Serial2 in the M5Stack (M5Core) examples are incorrect. It should be 16/17 as you already figured out yourself. I've created a <a href="https://github.com/m5stack/M5Unit-PoESP32/pull/1" target="_blank" rel="noopener noreferrer nofollow ugc">pull-request</a> which corrects the three M5Stack (M5Core) examples.</p>
<p dir="auto">To get past <code>wait ethernet connect</code> multiple conditions need to be met:<br />
a) the network needs to have a DHCP server<br />
b) the IP address range needs to be 192.168.x.x<br />
c) the DHCP server needs to be compatible with ESPoE Unit</p>
<p dir="auto">re b) in case your network doesn't use 192.168.x.x you can modify it in this function</p>
<pre><code>bool Unit_PoESP32::checkETHConnect() {
    sendCMD("AT+CIPETH?");
    _readstr = waitMsg(1000);

    if (_readstr.indexOf("192") != -1) {
        return true;
    } else {
        return false;
    }
}
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19563</link><guid isPermaLink="true">https://community.m5stack.com/post/19563</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 15 Dec 2022 07:30:31 GMT</pubDate></item></channel></rss>