Skip to content
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

Unstable or no access to web interface on certain type of ESP8266 #598

Closed
DeeKey opened this issue Dec 29, 2019 · 21 comments
Closed

Unstable or no access to web interface on certain type of ESP8266 #598

DeeKey opened this issue Dec 29, 2019 · 21 comments

Comments

@DeeKey
Copy link
Contributor

DeeKey commented Dec 29, 2019

Got as far as I understand several NodeMCU v2 boards.
https://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boards/#official-vs-unofficial

After load of /builds-NRZ-2019-128-B3-SDS011-fix-long-delay binary I can access WEB interface and enter AP credentials.
But after that I cannot access WEB interface and even ping device
Though few times I managed to access web interface.

Here is what happens after restart:

2dO⸮4⸮$0z⸮4C8I⸮⸮Airrohr: NRZ-2019-128-B3/EN mounting FS...
opened config file... parsed json...
output debug text to displays... Connecting to ap
....... WiFi connected, IP is: 192.168.1.127
Starting Webserver... 192.168.1.127
ChipId: 6519863 Send to :
sensor.community Madavi.de
---- SNTP sync finished: Sun Dec 29 11:52:03 2019

Added initial log (start after load of binary version)
initlog.txt

Photos of the board:
chip_1
chip_2

@dirkmueller
Copy link
Collaborator

Thanks for sharing all the details here! very useful. what I can see is that the initlog looks good. What I can also see in this board variant is that it doesn't have the metal shield around the esp8266+flash chip like "normal" esp8266 boards have (you can see it shine silver/golden here: https://dziadalnfpolx.cloudfront.net/blog/wp-content/uploads/2015/09/official-nodemcu-development-board.jpg ) instead flash and esp are blank.

The typical concern here is that the wifi sending is causing electromagnetic interference with the flash reading and might trigger instability. so such boards are generally a very bad idea.

What we can try is build a firmware that has lower WiFi sending power.

@dirkmueller
Copy link
Collaborator

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 30, 2019

Just tested - it works!
Here is an initlog
initlog.txt

Also was possible to make an autoupdate. After update it stopped working, as expected (because of version downgrade).
autoupdate.log

Even though initial problem is solved we steel need to document this issue to warn users not to buy such ESP8266 anymore.
Also not clear if SW can sort this problem itself? Or we need to add a separate option to lower WIFI transmission power?

@dirkmueller
Copy link
Collaborator

Thanks for testing. can you please also try out these two firmwares and let me know which one of them is working as well?

https://static.dmllr.de/airrohr/beta/builds-NRZ-2019-128-B4-persistent-true/
https://static.dmllr.de/airrohr/beta/builds-NRZ-2019-128-B4-persistent-true-no-output-power/

@dirkmueller
Copy link
Collaborator

dirkmueller commented Dec 30, 2019

Yes, what I found is that reportedly lowering the Tx power solves "this" stability issue (still not entirely sure which of the settings that were removed made it work for you). I do wonder though if we have a way to detect that situation and do it automatically.. there is also a known bug (esp8266/Arduino#6620 ) which means that any change to the output power is not persistent..

@dirkmueller
Copy link
Collaborator

we might also hit esp8266/Arduino#6886 here..

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 30, 2019

Both version are working. Though I did not test stability.

With build NRZ-2019-128-B4-persistent-true everything works as expected
WiFi | signal strength | -47 dBm
WiFi | signal quality | 100 %
Device was close to router.
Log:
builds-NRZ-2019-128-B4-persistent-true.log

With build NRZ-2019-128-B4-persistent-true-no-output-power works as expected
WiFi | signal strength | -54 dBm (but later it became 45 dBm)
WiFi | signal quality | 92 %

Log:
NRZ-2019-128-B4-persistent-true-no-output-power.log

@dirkmueller
Copy link
Collaborator

thats really confusing.

@dirkmueller
Copy link
Collaborator

@dirkmueller
Copy link
Collaborator

its possible that the issue only reappears after ~ 30 minutes? not sure how long it took for you to reproduce the issue before?

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 30, 2019

With stable build the problem appears straight away. When I was making an autoupdate then right after the stable version was updated the WEB interface stopped working.

Also, may I ask you to distinguish builds you are making for tests so that it can be clearly seen from the log. Otherwise there is a chance to mix versions...

@dirkmueller
Copy link
Collaborator

@DeeKey I prepared a build that identifies itself as B5:

https://static.dmllr.de/airrohr/beta/builds-NRZ-2019-128-B5-gitd1b45d02/

If this work we're good.

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 31, 2019

https://static.dmllr.de/airrohr/beta/builds-NRZ-2019-128-B4-no-wifi-off/

Yes, this build works.
The only strange thing is that the menu
http://192.168.x.xxx/status do not load
It tries to load it but fails after a long time.

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 31, 2019

https://static.dmllr.de/airrohr/beta/builds-NRZ-2019-128-B5-gitd1b45d02/
This build also works but still the same problem on /status page. The status page does not load. I got browser error "The connection was reset".

Also cleared user memory from config and clean installed the mentioned build. Was able to access my AP. But still /status page does not work. Retested with other version from this build - same thing. The only difference I am in another room away from router where connection is poor. Might that be an issue with /status page?

@dirkmueller
Copy link
Collaborator

That likely means it crashed while rendering the page. Is that in AP mode or in sta mode?

Can you capture the serial output while accessing that page?

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 31, 2019

Yes it is crashed. Will make another log on another ESP8266 of this type.
status_page.log

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 31, 2019

That is in sta mode. Status page is not available in AP mode.

Also the same problem with another same type ESP8266
status_page_2.log

@dirkmueller
Copy link
Collaborator

thanks, fixed!

@DeeKey
Copy link
Contributor Author

DeeKey commented Dec 31, 2019

Any build to test?
A long run test should definitely be performed...

@dirkmueller
Copy link
Collaborator

@DeeKey
Copy link
Contributor Author

DeeKey commented Jan 1, 2020

works as expected!

@DeeKey DeeKey closed this as completed Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants