DHCP on ethernet & stability
Posted: Tue Mar 17, 2020 5:46 pm
I need a DHCP server on the Ethernet interface.
I have used the netif interface to add DHCP in a small worked example but I keep hitting stability issues when upgrading IDF on my application.
I am currently running with legacy GNU using toolchain 3.3.1 and IDF v4.0-dev-562-g2b301f53e. This seems quite stable. An unusual combo but the IDF was the first I found with CAN and have stuck with it.
I upgraded toolchain to xtensa-esp32-elf-gcc8_2_0-esp-2019r2-win32.zip and IDF v4.1-dev-1543-g431066f16
I then managed to create a simple DHCP server demonstration.
Unfortunately the full application was very unreliable.
I upgraded IDF to v4.2-dev-674-g640c7c510
The application is now reliable as a DHCP client but hangs during intialisation as a server.
The simple DHCP server example fails to assign an IP address when logging INFO but provides an IP address when logging DEBUG.
Probably a timing issue but weird.
So I am really looking for advice on the 'best' most stable IDF with DHCP support.
Or, maybe, a library which I could add to my original stable setup.
I have used the netif interface to add DHCP in a small worked example but I keep hitting stability issues when upgrading IDF on my application.
I am currently running with legacy GNU using toolchain 3.3.1 and IDF v4.0-dev-562-g2b301f53e. This seems quite stable. An unusual combo but the IDF was the first I found with CAN and have stuck with it.
I upgraded toolchain to xtensa-esp32-elf-gcc8_2_0-esp-2019r2-win32.zip and IDF v4.1-dev-1543-g431066f16
I then managed to create a simple DHCP server demonstration.
Unfortunately the full application was very unreliable.
I upgraded IDF to v4.2-dev-674-g640c7c510
The application is now reliable as a DHCP client but hangs during intialisation as a server.
The simple DHCP server example fails to assign an IP address when logging INFO but provides an IP address when logging DEBUG.
Probably a timing issue but weird.
So I am really looking for advice on the 'best' most stable IDF with DHCP support.
Or, maybe, a library which I could add to my original stable setup.