Debugging DHCP

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

Debugging DHCP

Postby blubb » Fri Sep 08, 2017 7:50 pm

Hi,

I've got a new router from my ISP. After installing it I noticed I can no longer access my ESP modules by hostname. It worked great with my old router. Also ALL OTHER DEVICES (several Windows and Linux machines and Android devices) are still accessible (pingable) by their hostnames on the new router. So it is clear there is something wrong with the ESP firmware.
DHCP is working, at least the IPs are properly assigned. I can ping and access the modules using their IPs.

After playing around for a while I noticed that if I reset the ESP, hostname access works for a few minutes but vanishes then. After that only IP access is possible. Strange.

I am using the most recent Github master branch of the NONOS SDK.

I set the hostname doing this early on in my code:

wifi_station_set_hostname(FlashConfig.Hostname);
wifi_station_dhcpc_start();

What debugging options do I have? There is nothing special in the log. No difference to my old router.

pratik

Re: Debugging DHCP

Postby pratik » Mon Nov 06, 2017 4:05 pm

You should disable the DHCP service and restart it after making changes. The changes will not apply if DHCP is still running.
Also, you should have it working with the latest nonOS SDK now I guess.

Who is online

Users browsing this forum: No registered users and 120 guests