Page 1 of 1

Set Ethernet Link Speed

Posted: Fri Jul 19, 2024 10:39 am
by Ing-Dom
Hi,

I would like to control my lan8720 phy regarding link speed (10 / 100 mbit) to save some power.
There ist this method in the mac struct to do that

https://docs.espressif.com/projects/esp ... set_speedE

but - how do I access this object from my program?

Re: Set Ethernet Link Speed

Posted: Mon Jul 22, 2024 10:05 am
by ESP_ondrej
Try to get Ethernet handler https://github.com/espressif/arduino-es ... ETH.h#L165

Once you have it perform:

Code: Select all

    eth_speed_t speed = ETH_SPEED_10M;
    esp_eth_ioctl(eth_handle, ETH_CMD_S_SPEED, &speed);
 

Re: Set Ethernet Link Speed

Posted: Mon Jul 22, 2024 6:27 pm
by lbernstone
You should post this as a feature request on https://github.com/espressif/arduino-esp32/issues