[SOLVED] ESP 8266 - frequent disconnects

Hello, I have searched the forums but can’t seem to find a solution to this problem… I have a mega 2560 hooked up to a huzzah esp module. It was working pretty well until I updated my blynk library to get the new Blynk.syncAll() functionality… i now get frequent disconnects, so I turned on debug but i don’t see anything that gives me a clue as to what is happening… This is what I get on the serial console. it disconnects at the highlighted part. Any ideas would be appreciated!

What firmware are you running on the ESP itself? I think you can show by AT+GMR command. It may be needed to update to the latest firmware. I’ve heard more stories of disconnecting ESP’s lately.

Thanks for the response, I will check maybe this evening after work. I have several modules and flashed them with multiple different firmwares, kind of lost track on what I currently have. Is there a more preferred repository for the ESP firmware? I have been using the Espressif website: http://bbs.espressif.com/viewtopic.php?f=46&t=850

Espress should be the best source since they make the things, but I think @vshymanskyy has some suggestions on which firmware versions to use with the latest Blynk lib

output of AT+GMR command on 1 huzzah

AT version:0.22.b1.0
SDK version:0.9.6(b1)

and the other:
AT version:0.22.0.0(Mar 20 2015 10:04:26)
SDK version:1.0.0
compile time:Mar 20 2015 11:00:32

As far as I have learned blynk runs best with AT version: 0.22.0.0, SDK version: 1.0.0
So I’d suggest you to go with the second one.

thanks for your input, but problem persists at this firmware level

@bpthomas I’m running smooth over here with a Mega + Esp. I’m using the Mar 20 AT version you referred to earlier, and I downloaded the firmware from here:

There are a couple ESP (hard and soft serial, I believe) folders that go in the main library folder that are included in the zip file- make sure to install those. Additionally, don’t just copy and paste/rewrite the new library into your Blynk folder. Physically delete everything in there and drag and drop in the new Blynk files- that alone caused me some needless headaches.

You should also post your code.

1 Like

new neigbours?

whats your signal strengh like?

add in:

Serial.println(F(""));
  long rssi = WiFi.RSSI();
  Serial.print(F("WiFi signal strength (RSSI): "));
  Serial.print(rssi);
  Serial.println(F(" dBm"));
  Serial.println("");

to your setup to check, or graph it to check fluctuations…

or this, i have also had library headaches before… they suck.

Excellent ideas, thanks to all for your insight and help! I will give this a go this evening. I do develop on multiple systems, and try to keep them in synch, but very probably have a mismatch somewhere. I will repopulate the libraries and check on the signal strength.

Thanks again!

ISSUE HAS BEEN RESOLVED

^ this has fixed my issues! I have tested on both Huzzah modules and both are working reliably now!

Thank you to all for the help, i really appreciate your help!

1 Like