Olimex Support Forum

DUINO => ARDUINO => Topic started by: A002005 on February 25, 2022, 05:04:49 PM

Title: ESP32-EVB: Ethernet Connection pysically lost
Post by: A002005 on February 25, 2022, 05:04:49 PM
Hello,

We have some issues with the ethernet connection of the ESP32-EVB. Sometimes the physical connection gets lost. The device is still working. We don't get a ETH: Connection lost message. But the physical connection is not established anymore. Pings etc. don't work anymore. A soft reboot cannot establish the connection again. We need to perform a hard reset. We tried many different cables and switches. No difference. The use of some really, really accurate power supplies seems to make it better, but not completely. We have tried over 20 ESP32-EVB. The effect is always the same.

Can someone help me?

Thank you!
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on March 01, 2022, 09:54:26 AM
Describe your software and hardware setup. What exactly are you doing, what do you have connected. What are the tools you are using.

The more information you provide on what you are doing, the higher the chance someone might be able to help you.
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: A002005 on March 01, 2022, 06:21:42 PM
We are using the MOD-RS232 extension to connect a rs232 device. This connection seams to be stable. On the other side we use the ethernet connection. On the device there is a webserver running.

#include <WiFi.h>
#include <ETH.h>
#include <HardwareSerial.h>
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on March 02, 2022, 12:47:10 PM
How do you power the ESP32-EVB board? How do you power the MOD-RS232 and the RS232 device?

Did you try without the MOD-RS232 and the device? Does the hang still occur?

Did you try with default Ethernet demo from Arduino IDE, the one described here: https://www.olimex.com/Products/IoT/ESP32/_resources/Arudino-ESP32.txt ?
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: A002005 on March 04, 2022, 01:22:28 PM
I use the related product SY0605E as power supply. We also tried some pretty good power supplies with good filters and high current. Maybe we have are a little bit less errors but the errors a still there. The MODR232 got no separate power supply. The RS232 devices are several industrial scales with own industrial standard power supplies.

I never tried it without the MOD-RS232 because we need it and the error occurs only sometimes after between a few seconds and 50 hours! But we tried to disconnect the device behind the MOD-RS232. No difference. We also tried the demo. No difference. 
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on March 07, 2022, 09:21:00 AM
What is the hardware revision on the board?

Are you using the relays?

Can it be this issue: https://github.com/OLIMEX/ESP32-EVB/issues/35 ?
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: A002005 on March 11, 2022, 03:32:27 PM
Rev H. I am not using the relays. This is not exactly the same thing, but it seems to be similar. I will try it and come back later. Thank you!
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: A002005 on October 19, 2023, 05:23:57 PM
Hello,

soldering an extra 1nF capacitor at the bottom of the board on the PHY_RST1 jumper is a solution! All boards had the problem with the ethernet connection. In different environments. After the fix each board runs propper! Maybe you should think about a hardware revision. 
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on October 20, 2023, 08:21:07 AM
We did in revision I1, check the notes about C18 here:

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

We are currently manufacturing revision K1...
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: Jürgen on January 14, 2024, 09:31:05 PM
Hi, i have the same problem as A002005. Always lost connection to the Olimex-EVB. I use it for an project named BSB-LAN. Since last week i us an second board. It has the same REV. K as my first one. But always th same problem. I've actually tried a lot. Even the developer of BSB-LAN couldn't help. Are there any other ideas I can try?
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on January 15, 2024, 08:21:52 AM
Does the hang happen after a relay switch? On what condition does the Ethernet hang?
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: Jürgen on February 29, 2024, 12:35:33 PM
Please excuse me for only getting back to you now. I've tried a lot of things. Yes, I switch a small water pump on the heater with a relay. The load is not a problem for the relay. To find out whether switching with the relay was causing the problem, I disconnected it and deactivated the program for your circuit. Unfortunately without success. The Olimex was suddenly no longer accessible again. I also changed the power supply several times. Various USB power supplies and even the bevel of the supply cable were changed so that there was no influence via the cable, e.g. burner start, etc.
When it comes to the network, I have already changed the network cables and switches. Unfortunately without success. I have now bought a new Olimex EVB board with Rev. K. Unfortunately without success. I can see some connection with burner ignition or termination. A next attempt would be to mount the Olimex further away from the kiln. Currently sits in close proximity to the oven control. But there is a sheet metal that separates the burner room from the control room. (Brötje BSB25) But I don't know whether there could still be an electromagnetic problem (EMC). I am very grateful for all ideas and help. Many greetings Jürgen
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on February 29, 2024, 01:36:45 PM
Yeah try further away.

Might just be unsuitable type of relay for your project and load. Might want to try external solid state relay and ESP32-GATEWAY instead of ESP32-EVB.
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: JohnS on February 29, 2024, 02:59:09 PM
Relay with flyback diode or not?

John
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: Jürgen on February 29, 2024, 04:16:24 PM
Hello John, thank you for your question. Do you mean a diode on the Olimex relay or on a separate relay that is controlled by the Olimex relay? Unfortunately I don't have a diode to quench sparks, for example. I could actually have thought of that too. I just remembered that I connected the pump in parallel to the control of the boiler in order to operate it additionally even if the boiler does not control it itself. The bevel is of course the same. But the line to the relay on the Olimex is of course then energized. But I still have the problem even if I disconnect the relay. Many greetings Jürgen
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: Jürgen on February 29, 2024, 04:41:20 PM
I can think of something else to add. Regarding the EMC issue, I put some aluminum foil around the Olimex (BSB-LAN) and also around the bus line that goes from the BSB-LAN to control the heating as a shield. I think I can observe that things got slightly better with the cancellations. But I will soon be using a shielded CAT 8 cable for the bus line and the Olimex EVB from the heater a little further away. Let's see...
To illustrate this, I'm attaching a picture where you can see the installation situation. Unfortunately, I don't have a more recent picture at the moment where you can see my temporary solution with the aluminum foil. Many greetings Jürgen

Link to Picture:

https://qc1511.quickconnect.to/d/s/xSmrdJ69AvneOMVC8DZQscvSUOpjrScP/4HHQC5oNUELWdY-_g-fTh0Vew5qhLMM9-arfgW1zXKws
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on March 01, 2024, 08:39:42 AM
I don't see where is the Ethernet connected, also where are the two wires that go between ESP32-EVB and the boiler controller connected (regarding ESP32-EVB)?
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on March 01, 2024, 10:59:22 AM
What is your Ethernet code did you add delay during initialization?
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: guide53 on March 11, 2024, 09:37:50 PM
Hello Jürgen,
I have same problems with the similar setup (ESP32-EVB Rev K1 with current BSB-LAN).
The ethernet connection is lost every 8-9 seconds (my thread is located in the microcontrollers/ESP32 section).

Just a questions to check possible differences (or even similarity):
Will your board also loose ethernet connectivity without external (Bus/USB) connections?
Thats what i see with a second EVB board, just running with the same code (BSB-LAN).
Just power (via power supply) and ethernet, nothing else connected, even no usb port.
Power up, ethernet link comes up and drops down after 10 seconds, again and again.

And secondly: Are there any differences by powering the board with USB or power jack?
My board is only running stable when USB powered, the loss of ethernet is present with external power supply only.

The backend BSB-LAN code is running fine. All paramaters are logged from the external bus and will be stored on SD card as well.
It is just switching ethernet on/off periodically, so I am using it only on boot for NTP time adjustment.
If it is powered off and re-powered over USB, all LAN connections are stable.
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: Jürgen on March 14, 2024, 07:02:29 PM
So now I can report something good.
After my last attempt at BSB-LAN on Olimex-EVB, connected directly to the laptop via LAN cable, also resulted in a crash, I removed the Olimex-EVB from the heater and installed it about 1m further outside.
And lo and behold, not a single abortion for 2 days.
So it's probably the burner start that triggers a magnetic wave and influences the Olimex EVB. I don't understand why this has an effect on LAN and not on WLAN.
In any case, it's a shame for everyone involved for the many empty kilometers.
Title: Re: ESP32-EVB: Ethernet Connection pysically lost
Post by: LubOlimex on March 15, 2024, 08:14:34 AM
LAN uses an extra chip LAN8710A and wires running around the board between the connector, the main ESP32 chip, the LAN8710A chip (and each wire acts as antenna for picking up noise) so it sounds reasonable to be more susceptible to the noise from triggering the load. In comparison WIFI is all inside the ESP32 module.