November 08, 2024, 08:01:54 AM

ESP32-EVB Ethernet problem

Started by mugginsjm, November 23, 2019, 12:19:24 PM

Previous topic - Next topic

mugginsjm

I require exactly the same. I bought this unit specifically for wired ethernet and am finding very few examples. I simply want the equivalent of a simple ethernet chat server so I can make a socket connection to it to communicate from a PC.
thanks
John

mugginsjm

Hi
I had high expectations for this board. (EVB)
Before I return it can someone please educate me...
Is it normal that each upload requires multiple random presses on the two buttons and fails 90% of the time.
Why is it that this module sports a large RJ45 socket, yet after many hours of searching I have found just 2 examples of a  wired ethernet sketch, neither of which suit my application. It took me 6 hours to find a reference to code to force a static IP.

JohnS

I don't know about the random presses but your other comments are irrelevant IMO.

John

mugginsjm

Regarding the upload.. I have 5 other ESP32 boards all of which upload perfectly each time. I don't understand what "irrelevant" means. There seems to be virtually no support for wired ethernet and there are several other members on this forum also seeking guidance. Maybe you would be so kind as to point me in the direction of a simple example of a wired "chat server" with a fixed IP.

LubOlimex

Hello,

I've split the post where you posted into this separate thread since you hijacked an old thread that had a different issue with a different board. Please in future make new threads in such occasions.

We have tested a couple of Ethernet examples with our ESP32 boards. Also each board passes an Ethernet software test over here. The main difference of ESP32-EVB and other ESP32 boards is that it uses an external quartz for the Ethernet (as opposed to the internal one).

You can check this example for Arduino IDE for ESP32:

https://github.com/espressif/arduino-esp32/blob/1.0.3/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino

If you have trouble getting it working, refer to this document:

https://www.olimex.com/Products/IoT/ESP32/_resources/Arudino-ESP32.txt

And this example for ESP-IDF:

https://github.com/OLIMEX/ESP32-EVB/tree/master/SOFTWARE/ETH_PHY_demo

We don't have any sophisticated web-server examples over the Ethernet but any Arduino IDE examples would work if not out-of-the-box with slight adjustments.
Technical support and documentation manager at Olimex

mugginsjm

Thank you for the response.
The ONE example sketch does not suit my needs and the standard Arduino examples use ethernet.h library and SPI connection to chosen ethernet module. I have not been able to get any of these examples to work with your board.

LubOlimex

Can you provide me a link to the standard example that you tested exactly?
Technical support and documentation manager at Olimex

mugginsjm

Here is a link to the original Arduino code that I had previously been using.
https://www.arduino.cc/en/Tutorial/ChatServer

LubOlimex

This example requires specifically Arduino Ethernet Shield with Wiznet W5500 Ethernet chip.

It will not work with LAN8710 or LAN8720.
Technical support and documentation manager at Olimex

mugginsjm

Thanks
I appreciate that it will not work. My original question was to ask if there was a "translated" version for the Olimex or a similar example.

LubOlimex

The only example I've personally tested is the one I linked previously:

https://github.com/espressif/arduino-esp32/blob/1.0.3/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino

For us it is important to show that the Ethernet works and if there is a working and tested example - our job is complete.

It is a general purpose board - it can be used for a lot of purposes and tasks, we can't cover all scenarios and provide examples for anything that somebody needs. Furthermore, even if we provide all possible examples for all possible scenarios people would require the same examples for every possible environment - ESP-IDF, Arduino IDE, PlatformIO, etc, etc. And furthermore, we'd have to maintain it forever. I hope you see that this is not possible.

Technical support and documentation manager at Olimex

mugginsjm

#11
Yes thank you I understand, but maybe I'd hoped one of the other forum members might have offered a solution. I'm at a dead end, having trawled the internet for hours. Giving up now!
thanks again
Ps
What makes this even more frustrating is that another member of the forum has clearly managed to do exactly what I require....
ESP32-Gateway: TELNET over wired ethernet doesn't receive characters from Putty