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

ESP32 ETH no ETH.end / disable #5949

Closed
Typhoor opened this issue Nov 30, 2021 · 10 comments
Closed

ESP32 ETH no ETH.end / disable #5949

Typhoor opened this issue Nov 30, 2021 · 10 comments
Labels
Resolution: Awaiting response Waiting for response of author

Comments

@Typhoor
Copy link

Typhoor commented Nov 30, 2021

I want do end or stop the ETH/ethernet component to conserve energy:

In ETH.H/CPP there is a begin method but no corressponding endmethod.
In the underlying Espressif esp-idf there is a esp_eth_start and a corresponding esp_eth_stop.

I'm using WT32_ETH01 and/or Olimex ESP32 POE mostly both are using the LAN 8720 PHY
Some have power pin some have not.

I observe that power raises from 60-80mA to 150mA when starting ETH (ethernet), but there is no way back.

Workaround so far is the set some static (flash/eeprom) markers and then reboot (not activating Ethernet).
But this disturbes the other working tasks...

@VojtechBartoska VojtechBartoska added Type: Feature request Feature request for Arduino ESP32 Status: Needs investigation We need to do some research before taking next steps on this issue Resolution: Awaiting response Waiting for response of author labels Apr 7, 2022
@VojtechBartoska
Copy link
Contributor

Hello @Typhoor, are you able to propose changes in PR?

@VojtechBartoska
Copy link
Contributor

Looks related: #6188

@playmiel
Copy link

Hello, I have the same problem, I would like to disable the Ethernet but I can't find any way to do it, do you have an idea?

@aminzakizebarjad
Copy link

I think there is a way to do that
esp_eth_stop(ETH.eth_handle);

@playmiel
Copy link

it works but then impossible to restart the Ethernet because of the emac allocation

@VojtechBartoska
Copy link
Contributor

Hello, for version 3.0.0 Networking was refactored. Can you please give it a try?

I am for now closing this ticker as it is quite old, if needed, you can reopen it.

@VojtechBartoska VojtechBartoska closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
@VojtechBartoska VojtechBartoska removed Type: Feature request Feature request for Arduino ESP32 Status: Needs investigation We need to do some research before taking next steps on this issue labels May 15, 2024
@hitecSmartHome
Copy link

When we call ETH.end() and immidiately call

ETH.begin(
        ETH_PHY_LAN8720,
        ETH8720_PHY_ADDR,
        SMI_MDC_PIN,
        SMI_MDIO_PIN,
        POWER_PIN,
        ETH_CLOCK_GPIO0_IN
    );

It fails to start with this message.

[190308][E][ETH.cpp:231] begin(): esp_eth_mac_new_esp32 failed

The reason we want to stop and start is to apply hostname and configured static ip changes.

@me-no-dev
Copy link
Member

@hitecSmartHome here is the fix: #11048

@hitecSmartHome
Copy link

Thank you! Will check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Awaiting response Waiting for response of author
Projects
Development

No branches or pull requests

7 participants