Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feaure request Ethernet
#1
Hello everyone,

Is there any chance to add a Ethernet Connection?
To use the ESP32 over Ethernet.

Best Regards
Reply
#2
Ethernet support is updated couple of days ago.
It is now fully functional and tested with LAN8720 interface.
Embeded Ftp and Telnet servers works over Ethernet the same way as over WiFi (a fix for the current bug in Ftp server will be commited tomorrow).

Full documentation will be placed on Wiki in the next couple of days.
Reply
#3
(08-30-2018, 07:26 PM)lobo Wrote: Ethernet support is updated couple of days ago.
It is now fully functional and tested with LAN8720 interface.
Embeded Ftp and Telnet servers works over Ethernet the same way as over WiFi (a fix for the current bug in Ftp server will be commited tomorrow).

Full documentation will be placed on Wiki in the next couple of days.

Thank you very much Smile
Reply
#4
I have see you have
updated ethernet module
Thank you

How must I connect the LAN8720 Board to the ESP32 Board?
Reply
#5
It will be documented soon ( I know I'm late with all the new documentation).

The connections needed (user selectable pins in orange):
--------------------------------------------------------
       ESP32          :       LAN8720 board
--------------------------------------------------------
"power" - PHY_POWER   : NC - Osc. Enable - 4k7 Pulldown (board modification needed)
GPIO22  - EMAC_TXD1   : TX1
GPIO19  - EMAC_TXD0   : TX0
GPIO21  - EMAC_TX_EN  : TX_EN
GPIO26  - EMAC_RXD1   : RX1
GPIO25  - EMAC_RXD0   : RX0
GPIO27  - EMAC_RX_DV  : CRS
GPIO00  - EMAC_TX_CLK : nINT/REFCLK (50MHz) - needs Pullup, but most esp32 boards already have one
"mdc"   - SMI_MDC     : MDC
"mdio"  - SMI_MDIO    : MDIO
GND                   : GND
3V3                   : VCC
--------------------------------------------------------

LAN instance object has to be created:
lan=network.LAN(id=0, mdc=None, mdio=None, power=None, phy_addr=1, phy_type=0, clk_type=0)
mdc & mdio arguments are mandatory, power is mandatory with this type of boards.

lan=network.LAN(mdc=23, mdio=18, power=5)
lan.active(True)

Small modification is needed on the board, see attachment.


Attached Files Thumbnail(s)
       
Reply
#6
Wink 
Im using for a while Ethernet chip which is LAN8720. Its easy to use and works good stable.


lan = network.LAN(id = None, mdc = Pin(23), mdio = Pin(18), power = Pin(12), phy_addr = 1, phy_type = network.PHY_LAN8720)

lan.active(True)

Attached a photo about connection if you want to use only LAN8720 chip


Attached Files Thumbnail(s)
   
Reply
#7
I've recently bought ESP32-POE [1] board from OLIMEX that incorporates LAN8710 ethernet chip. Do you think I can use it without hardware modifications with this firmware?

Best regards,

[1]
https://www.olimex.com/Products/IoT/ESP3...e-hardware
Reply
#8
(10-25-2018, 11:21 AM)readylan Wrote: I've recently bought ESP32-POE [1] board from OLIMEX that incorporates LAN8710 ethernet chip. Do you think I can use it without hardware modifications with this firmware?

Best regards,

[1]
https://www.olimex.com/Products/IoT/ESP3...e-hardware

It should work.
You may need to use different parameters, I think the correct settings are (clk_type=3, mdc=23, mdio=18, power=21).
If not working with the default phy_addr=1 you may try phy_addr=1.

Please report if it works.
Reply
#9
(10-25-2018, 02:01 PM)lobo Wrote:
(10-25-2018, 11:21 AM)readylan Wrote: I've recently bought ESP32-POE [1] board from OLIMEX that incorporates LAN8710 ethernet chip. Do you think I can use it without hardware modifications with this firmware?

Best regards,

[1]
https://www.olimex.com/Products/IoT/ESP3...e-hardware

It should work.
You may need to use different parameters, I think the correct settings are (clk_type=3, mdc=23, mdio=18, power=21).
If not working with the default phy_addr=1 you may try phy_addr=1.

Please report if it works.
Yes for sure, thank you !
I'm waiting for it to arrive from Bulgaria Smile 
It will be better to go step by step but, do you think It's posible to use both interfaces simultaneously to work on this scenary (local area network):

ESP_1 (wifi) \
10.0.0.101      \
ESP_2 (wifi) ---> ESP_0 (wifi AP + Ethernet) --> Other staff (Ethernet)
10.0.0.102      /    10.0.0.100                                   10.0.0.1
ESP_3 (wifi)  /
10.0.0.103

Best regards,

Eduardo
Reply
#10
While we're at it I just thought I'd mention that there is a Crowd Supply campaign (already funded) for the wESP32 [1] which is another ESP32 with Ethernet+POE that uses the LAN8720.

[1] https://www.crowdsupply.com/silicognition/wesp32
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)