-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARP stops working after a few minutes when running in softAP mode #405
Comments
Please give the patch in #389 a try, it resolved at least one show stopper that made softap mode unusable in practice, in the case that multiple devices connected it would break and stop - might as well eliminate that. |
Thanks for that patch, I cherry-picked your PR and updated the LwIP submodule. However I'm afraid it breaks the sdk_wifi_set_opmode() function. Whenever I call it, I get an exception on my NodeMCU/ESP12E. Here the log: pp_task_hdl : 3fff1dd0, prio:14, stack:512 ESP-Open-SDK ver: 0.0.1 compiled @ Jul 5 2017 09:27:45 Duet WiFi Server starting... Stack: SP=0x3fff8290 Free Heap: 33252 Investigating this didn't show anything useful to me, because addr2line only resolved the following addresses: 0x40203514 I tried the http_get example as well, but even that causes a boot loop - probably due to the same error. |
That is unexpected, it runs relatively robustly here. Just to eliminate that it has been corrected would be be prepared to try a fresh tree from https://github.com/ourairquality/esp-open-rtos which I test. |
Hmm, I just cloned your entire repository and tried to build the http_get example once more, but the same problem persists: pp_task_hdl : 3fff1628, prio:14, stack:512 ESP-Open-SDK ver: 0.0.1 compiled @ Jul 5 2017 10:47:44 SDK version:0.9.9 Stack: SP=0x3fff3fb0 Free Heap: 40512 Please let me know if you have any more ideas. |
Sorry, that tree had it's lwip revision out of sync, and I am surprised it even checked out without issues. Could you please try again, and also erase the flash fully just to discount that. A fresh clone and build of http_get worked here, so it would be hard for me to narrow it down. |
Thanks, but that doesn't seem to make a difference - in fact the resulting firmware binary is just as big as the other one. Hence I enabled debugging in lwipopts.h which allowed me to capture this: pp_task_hdl : 3fff1628, prio:14, stack:512 ESP-Open-SDK ver: 0.0.1 compiled @ Jul 5 2017 12:47:11 SDK version:0.9.9 ESP-Open-SDK ver: 0.0.1 compiled @ Jul 5 2017 12:47:11 SDK version:0.9.9 Stack: SP=0x3fff3fb0 Free Heap: 40496 So I suspect the network interface isn't properly assigned/initialised, but I'm not sure how this could be resolved. |
Thank you for trying. Perhaps we would better take this off list as it could be a lot of noise to narrow down. Could you email me 'info at ourairquality.org' and I'll email back my build to try, and perhaps we can iterate to narrow it down. |
I've been trying to get esp-open-rtos running on my ESP8266 and it seems to work nicely when running in station mode, but when I change to softAP mode and try to ping the IP address, it stops responding after a few minutes. When I open Wireshark, I can see that it no longer responds to ARP requests.
The symptoms are equal to this report on the Arduino port: esp8266/Arduino#2330
The text was updated successfully, but these errors were encountered: