Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ethernet support to esp-idf #1683

Closed
nagyrobi opened this issue Mar 21, 2022 · 4 comments
Closed

Add Ethernet support to esp-idf #1683

nagyrobi opened this issue Mar 21, 2022 · 4 comments

Comments

@nagyrobi
Copy link
Member

Describe the problem you have/What new integration you would like
More and more Ethernet supporting boards are available these days.

  • WT32-ETH01
  • Olimex ESP32-POE/ISO, ESP32-EVB, ESP32-GATEWAY
  • PRODINo ESP32 Ethernet
  • TTGO T-Internet-POE ESP32
  • wESP32
  • OpenHacks LAN8720
  • ESP32-Ethernet-Kit

Currently ESPHome only supports Ethernet under arduino platform (config example below for WT32-ETH01):

esphome:
  name: "Test"

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: esp-idf

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO0_IN
  phy_addr: 1
  power_pin: GPIO16
  manual_ip:
    static_ip: 192.168.2.10
    gateway: 192.168.2.1
    subnet: 255.255.255.0
  use_address: 192.168.2.10

Results in error:

ethernet: [source /config/esphome/test.yaml:38]
  
  This feature is only available with frameworks ['arduino'].

Please describe your use case for this integration and alternatives you've tried:
Please add Ethernet support to esp-idf. Less memory consumption.

Additional context
N/A

@ma-lalonde
Copy link

  1. How would one go about implementing this? Would it mostly be about copying the .h file and re-implementing the .cpp file?
  2. How much work are we talking about, presumably?
  3. What version of the IDF should be targeted? There are major changes in 5.0.0

@nagyrobi
Copy link
Member Author

nagyrobi commented Sep 1, 2022

Don't think it's just that easy, as far as I understand Ethernet is heavily relying on what's already in arduino base. For IDF wheel has to be reinvented.

@tube0013
Copy link

Any type of timeline for when this could be implemented?

I'm looking to try the hardware flow for UART from #1126 (comment) but require Ethernet support (Olimex and WT32-ETH01)

@nagyrobi
Copy link
Member Author

nagyrobi commented Dec 7, 2022

Done in: esphome/esphome#3564
Available from 2022.12 for LAN8720, RTL8201, DP83848, IP101 modules.

@nagyrobi nagyrobi closed this as completed Dec 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants