ESP8266 WebREPL becomes buggy after some time

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
HermannSW
Posts: 138
Joined: Wed Nov 01, 2017 7:46 am
Contact:

ESP8266 WebREPL becomes buggy after some time

Post by HermannSW » Mon Nov 05, 2018 1:45 pm

I do use 1.9.4 MicroPython a lot on ESP8266 (ESP01s) and ESP32 modules.

I only experience the issue on ESP8266 modules, but after some time (many days, perhaps weeks).
MicroPython gets into a bad state.
I use MicroPython on that modules only remotely via "webrepl.html" in browser or "webrepl_client.py", no serial connection.
After some time login is difficult (needs retries), or a connected active session gets terminated by module reboot.

I am able to fix the issue using these steps:
  1. connect module to USB port
  2. screen /dev/ttyUSB3 115200
  3. import webrepl_setup, then choose to disable WebREPL and reboot
  4. after reconnect with screen, import webrepl_setup, choose enable, change password to that used before and reboot
  5. disconnect module from USB port
  6. now WebREPL can be used again for many days, perhaps weeks
What can be the reason for the issue seen repeatedly?

cyberlab
Posts: 42
Joined: Sat Apr 21, 2018 5:02 am

Re: ESP8266 WebREPL becomes buggy after some time

Post by cyberlab » Wed Nov 07, 2018 4:35 pm

Hello, I think it may be something in your code that after some time runs out of memory, and therefore your application stops, I am using the same version and webrepl ESP-12E with several clients and have not had any problems.

HermannSW
Posts: 138
Joined: Wed Nov 01, 2017 7:46 am
Contact:

Re: ESP8266 WebREPL becomes buggy after some time

Post by HermannSW » Thu Nov 08, 2018 1:11 pm

I doubt that running out of memory can be the reason, because if I powercycle the module, connecting with webrepl.html still does not work if module MicroPython is in that state. Logging in with serial screen session shows 26KB free memory then ...

Post Reply