Set Ethernet Link Speed

Ing-Dom
Posts: 13
Joined: Sun Feb 04, 2024 3:33 pm

Set Ethernet Link Speed

Postby Ing-Dom » Fri Jul 19, 2024 10:39 am

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?

ESP_ondrej
Posts: 196
Joined: Fri May 07, 2021 10:35 am

Re: Set Ethernet Link Speed

Postby ESP_ondrej » Mon Jul 22, 2024 10:05 am

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);
 

lbernstone
Posts: 777
Joined: Mon Jul 22, 2019 3:20 pm

Re: Set Ethernet Link Speed

Postby lbernstone » Mon Jul 22, 2024 6:27 pm

You should post this as a feature request on https://github.com/espressif/arduino-esp32/issues

Who is online

Users browsing this forum: No registered users and 33 guests