You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/source/Hardware/Hardware.rst
+89-13
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@
3
3
Hardware page
4
4
*************
5
5
6
-
Overview
7
-
========
8
6
9
7
ESPEasy has some centralized hardware configuration settings, shown in this page, and divided in sections.
10
8
@@ -203,13 +201,34 @@ To activate a new configuration, a reboot is needed.
203
201
Ethernet PHY type
204
202
^^^^^^^^^^^^^^^^^
205
203
206
-
Select the used PHY controller type:
204
+
ESP boards can be equiped with Ethernet.
205
+
This is more stable and reliable compared to WiFi and allows for better responsiveness.
207
206
208
-
* LAN8710 (LAN8720 is also supported, but none of the newer features are supported)
209
-
* TLK110
210
-
* RTL8201 (since ESP32 IDF 4.4)
211
-
* DP83848 (since ESP32 IDF 4.4)
212
-
* DM9051 (since ESP32 IDF 4.4)
207
+
Actual transfer speed (at least when using RMII) is also higher than can be achieved via WiFi, but this is less of a concern for typical use cases where ESPEasy is used.
208
+
209
+
Ethernet chips/boards for ESP32-variant boards exist with 2 types of interfaces to the ESP.
210
+
211
+
* RMII interface - Faster actual transfer speeds possible, uses more GPIO pins, only supported on ESP32-classic (and upcoming ESP32-P4).
212
+
* SPI interface - (Added: 2024/02) Supported on all ESP32-variants (not all tested) on builds based on ESP-IDF 5.1
213
+
SPI Ethernet adapters do obviously require the SPI interface to be configured.
214
+
215
+
N.B. Only ESP32-variant builds with LittleFS support SPI Ethernet. (starting February 2024)
216
+
217
+
Supported Ethernet chips:
218
+
219
+
* RMII Interface:
220
+
* LAN8710 (LAN8720 is also supported, but none of the newer features are supported)
221
+
* TLK110
222
+
* RTL8201 (since ESP32 IDF 4.4)
223
+
* JL1101 (since ESP32 IDF 4.4)
224
+
* DP83848 (since ESP32 IDF 4.4)
225
+
* KSZ8041 (since ESP32 IDF 4.4)
226
+
* KSZ8081 (since ESP32 IDF 4.4)
227
+
228
+
* SPI Interface: (since ESP32 IDF 5.1)
229
+
* DM9051
230
+
* W5500
231
+
* KSZ8851
213
232
214
233
.. note:: The LAN8710 and LAN8720 are also available with an "A" suffix.
215
234
These are the same chips, only produced after the brand SMSC was taken over by Microchip Technology.
@@ -219,19 +238,22 @@ Ethernet PHY Address
219
238
220
239
The PHY address depends on the hardware and the PHY configuration.
221
240
On some chips, like the LAN8720, the board designer may set this address by pulling some pins either high or low at power on.
222
-
In theory, one could use multiple PHY adapters on the same RMII bus, but this is not supported by ESPEasy.
241
+
In theory, one could use multiple PHY adapters on the same RMII/SPI bus, but this is (currently) not supported by ESPEasy.
223
242
224
243
* Espressif's Ethernet board with TLK110 PHY use PHY address 31.
225
244
* Common Waveshare LAN8720 PHY breakout board (and clones) use PHY address 1.
226
245
* Olimex ESP32 EVB REV B IoT LAN8710 PHY Board with CAN use PHY address 0.
227
246
* Other LAN8720 breakouts often use PHY address 0.
247
+
* ETH01-EVO (ESP32-C3 based board) uses PHY address 1.
228
248
229
249
If the PHY address is incorrect then the EMAC will initialise but all attempts to read/write configuration registers on the PHY will fail.
230
250
231
251
N.B. There is support for an auto detect of this PHY address, by setting it to -1, but at least on the LAN8720 this does not seem to work.
232
252
233
-
GPIO pins
234
-
^^^^^^^^^
253
+
RMII Ethernet
254
+
^^^^^^^^^^^^^
255
+
256
+
As mentioned above, the RMII interface is only present on ESP32-classic (and is mentioned on the announced ESP32-P4).
235
257
236
258
RMII PHY SMI Wiring
237
259
"""""""""""""""""""
@@ -281,7 +303,41 @@ Apart from these GPIO pins, there is a number of other pins reserved on the ESP3
281
303
Since these GPIO pin assignments cannot be changed, it is also not needed to configure them.
282
304
However, they also cannot be used when *RMII PHY* is used.
@@ -291,13 +347,33 @@ Some ethernet boards support Power over Ethernet (PoE), so only a single (ethern
291
347
For Olimex boards in the ESP32-POE range, the supplier has documented this warning:
292
348
293
349
.. warning::
294
-
**Important notice**: Olimex ESP32-PoE has **no galvano isolation** from Ethernet's power supply, when you program the board via the micro USB connector the Ethernet cable should be disconnected (if you have power over the Ethernet cable)!
350
+
**Important notice**: Olimex ESP32-PoE has **no galvanic isolation** from Ethernet's power supply, when you program the board via the micro USB connector the Ethernet cable should be disconnected (if you have power over the Ethernet cable)!
295
351
296
352
Consider using Olimex USB-ISO to protect your computer and board from accidental short circuit. Also consider instead using Olimex ESP32-PoE-ISO board, which *is* insulated.
297
353
298
354
Most likely, this warning is applicable to other brands as well.
299
355
300
356
357
+
Ethernet Isolation
358
+
^^^^^^^^^^^^^^^^^^
359
+
360
+
Most Ethernet RJ45 phy (the connector on the PCB) have isolation transformers in them.
361
+
This does isolate the TX/RX pins to make sure there is no direct connection between the long cables and the Ethernet controller chip.
362
+
The isolation does protect the Ethernet chip from picked up high voltage spikes and ESD surges when inserting the Ethernet cable.
363
+
However not all ESP boards with Ethernet have these installed.
364
+
365
+
Apart from the isolation of the TX/RX pins the metallic enclosure of the phy should also be isolated from the rest of the circuit of the ESP board.
366
+
Typically this is done by connecting the metal enclosure of the phy via a capacitor to GND of the rest of the circuit.
367
+
A lot of boards with Ethernet have these directly connected to GND, which may impose a problem when connecting the ESP board to your PC.
368
+
369
+
.. warning::
370
+
**Important notice**: For ESP boards with Ethernet which need debugging, never use Ethernet cables with metal shielding on the Ethernet connector.
371
+
372
+
Using shielded Ethernet cable will connect the metal shield of the RJ45 phy to the ground of the switch and this may be connected to other appliances which may be badly grounded.
373
+
This will add a significant voltage offset between the ESP board and your PC while debugging.
374
+
Such a high voltage is very likely to destroy electronics.
0 commit comments