So I have been testing the code for a project of mine, that has a wifimanager developed by me, and uses othere components as mqtt and https. For some reason (that is not important in this topic) the https didn't work in my code, so I decided to test the https simple example, to see what might be going wrong in my code.
I then noticed that the loading of the simple https webpage was way faster that in my code. I then noticed that my laptop was able to reach faster to the esp32 (using ping to the IP addr) when using the https example, than when using my code with wifimanager (When using my code, the Host was unreachable for several seconds or even minutes, but would eventually be able to reach it).
So I started searching in my code for a bug or a misconfiguration, that I may have done, but I noticed that the example_connect function would use another type of netif configuration procedure than the recommended in the esp docs.
So I decided to test between the "wifi getting started station example" and the "https_server simple example"
The difference between both of them is that the wifi station example configures everything as stated in the docs and the other one uses the connect_example function.
In the attached picture you can see that the first portion the host is being reached, and quite fast, and after the upload time (time=3354ms), the time to reach the host drops noticeably
Why is this? Is there anything that can be changed to have the host respond faster to icmp requests?
Ping to ESP32 with different results, between station_example and other examples which use example_connect component
-
- Posts: 21
- Joined: Wed Feb 22, 2023 4:25 pm
-
- Posts: 1698
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Ping to ESP32 with different results, between station_example and other examples which use example_connect component
So, are you observing the issue with one of the examples or only with your own application?
-
- Posts: 21
- Joined: Wed Feb 22, 2023 4:25 pm
Re: Ping to ESP32 with different results, between station_example and other examples which use example_connect component
I wouldn't say it is an "issue" more like a performance hit, I guess
I started seeing it on my app, but tested it on the https simple example https://github.com/espressif/esp-idf/tr ... er/simple and the wifi connect example https://github.com/espressif/esp-idf/tr ... ed/station
The wifi connect example, has a longer response time than the https server example, although the https server requires "more grunt".
I am guessing it is because the netif configuration, as in the https server example, which uses the example connect component, the netif component is configured in a different way as the recomended way in the docs See:
https://github.com/espressif/esp-idf/bl ... ect.c#L135
The examples that use connect_example, have a lesser ping return time than the examples or code that use the standard way to connect to a wifi station
I started seeing it on my app, but tested it on the https simple example https://github.com/espressif/esp-idf/tr ... er/simple and the wifi connect example https://github.com/espressif/esp-idf/tr ... ed/station
The wifi connect example, has a longer response time than the https server example, although the https server requires "more grunt".
I am guessing it is because the netif configuration, as in the https server example, which uses the example connect component, the netif component is configured in a different way as the recomended way in the docs See:
https://github.com/espressif/esp-idf/bl ... ect.c#L135
The examples that use connect_example, have a lesser ping return time than the examples or code that use the standard way to connect to a wifi station
-
- Posts: 21
- Joined: Wed Feb 22, 2023 4:25 pm
Re: Ping to ESP32 with different results, between station_example and other examples which use example_connect component
I have seen 2 other post, with the same issue: viewtopic.php?t=22478
Does anybody know what might be going on?
Does anybody know what might be going on?
-
- Posts: 9715
- Joined: Thu Nov 26, 2015 4:08 am
Re: Ping to ESP32 with different results, between station_example and other examples which use example_connect component
Could be a power saving setting? That's known to impact ICMP reply times.
Who is online
Users browsing this forum: aapee-jcv and 432 guests