ESP frequently reboots

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

ESP frequently reboots

#1 Post by androx » 28 Oct 2016, 22:09

:cry: Hi, I am trying to understand why the esp reboot so frequently. Which are the trigger for a reboot?
After seversl days without any problem since few days I'm experiencing frequenti reboot. ? The Power source is stable and supply enough current.

Any idea?

In case there is some features that keep all' the gpio in the previous state?
Last edited by androx on 02 Nov 2016, 08:39, edited 4 times in total.

User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

Re: ESP reboot frequently

#2 Post by androx » 29 Oct 2016, 11:39

Adding the debug level 4
Cannot find any relevant anyway.

Code: Select all

Oct 29 10:47:16 ESP Unit: 231 : WD   : Uptime 7 ConnectFailures 0 FreeMem 26992
Oct 29 10:47:16 ESP Unit: 231 : UDP  : Send Sysinfo message
Oct 29 10:47:16 ESP Unit: 231 : BMP  : Temperature: 14.76
Oct 29 10:47:16 ESP Unit: 231 : BMP  : Barometric Pressure: 1025.31
Oct 29 10:47:16 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:47:18 ESP Unit: 231 : /json.htm?type=command&param=udevice&idx=87&svalue=14.76;0;0;1025.31;0
Oct 29 10:47:18 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:47:18 ESP Unit: 231 : HTTP : Success
Oct 29 10:47:18 ESP Unit: 231 : Content-Length: 53#015
Oct 29 10:47:18 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:47:18 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:47:18 ESP Unit: 231 : Pragma: no-cache#015
Oct 29 10:47:18 ESP Unit: 231 : Access-Control-Allow-Origin: *#015
Oct 29 10:47:18 ESP Unit: 231 : #015
Oct 29 10:47:18 ESP Unit: 231 : {
Oct 29 10:47:18 ESP Unit: 231 :    "status" : "OK",
Oct 29 10:47:18 ESP Unit: 231 :    "title" : "Update Device"
Oct 29 10:47:18 ESP Unit: 231 : }
Oct 29 10:47:19 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:47:19 ESP Unit: 231 : /json.htm?type=command&param=udevice&idx=96&svalue=7.00
Oct 29 10:47:19 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:47:19 ESP Unit: 231 : HTTP : Success
Oct 29 10:47:19 ESP Unit: 231 : Content-Length: 53#015
Oct 29 10:47:19 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:47:19 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:47:19 ESP Unit: 231 : Pragma: no-cache#015
Oct 29 10:47:19 ESP Unit: 231 : #015
Oct 29 10:47:19 ESP Unit: 231 : {
Oct 29 10:47:19 ESP Unit: 231 :    "title" : "Update Device"
Oct 29 10:47:19 ESP Unit: 231 : }
Oct 29 10:47:20 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:47:20 ESP Unit: 231 : /json.htm?type=command&param=switchlight&idx=110&switchcmd=Off
Oct 29 10:47:20 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:47:20 ESP Unit: 231 : HTTP : Success
Oct 29 10:47:20 ESP Unit: 231 : Content-Length: 51#015
Oct 29 10:47:20 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:47:20 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:47:20 ESP Unit: 231 : Access-Control-Allow-Origin: *#015
Oct 29 10:47:46 ESP Unit: 231 : WD   : Uptime 8 ConnectFailures 0 FreeMem 26992
Oct 29 10:47:46 ESP Unit: 231 : UDP  : Send Sysinfo message
Oct 29 10:48:16 ESP Unit: 231 : WD   : Uptime 8 ConnectFailures 0 FreeMem 26992
Oct 29 10:48:16 ESP Unit: 231 : UDP  : Send Sysinfo message
Oct 29 10:48:16 ESP Unit: 231 : BMP  : Temperature: 14.78
Oct 29 10:48:16 ESP Unit: 231 : BMP  : Barometric Pressure: 1025.25
Oct 29 10:48:16 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:48:16 ESP Unit: 231 : /json.htm?type=command&param=udevice&idx=87&svalue=14.78;0;0;1025.25;0
Oct 29 10:48:17 ESP Unit: 231 : HTTP : closing connection
Oct 29 10:48:18 ESP Unit: 231 : SYS  : 8.00
Oct 29 10:48:18 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:48:18 ESP Unit: 231 : /json.htm?type=command&param=udevice&idx=96&svalue=8.00
Oct 29 10:48:18 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:48:18 ESP Unit: 231 : HTTP : Success
Oct 29 10:48:18 ESP Unit: 231 : Content-Length: 53#015
Oct 29 10:48:18 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:48:18 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:48:18 ESP Unit: 231 : Pragma: no-cache#015
Oct 29 10:48:18 ESP Unit: 231 : Access-Control-Allow-Origin: *#015
Oct 29 10:48:18 ESP Unit: 231 : #015
Oct 29 10:48:18 ESP Unit: 231 : {
Oct 29 10:48:18 ESP Unit: 231 :    "status" : "OK",
Oct 29 10:48:18 ESP Unit: 231 :    "title" : "Update Device"
Oct 29 10:48:18 ESP Unit: 231 : }
Oct 29 10:48:18 ESP Unit: 231 : HTTP : closing connection
Oct 29 10:48:19 ESP Unit: 231 : SW   : State 0.00
Oct 29 10:48:34 ESP Unit: 231 : INIT : I2C
Oct 29 10:48:34 ESP Unit: 231 : INIT : SPI not enabled
Oct 29 10:48:34 ESP Unit: 231 : UDP  : Send Sysinfo message
Oct 29 10:48:35 ESP Unit: 231 : INIT : Boot OK
Oct 29 10:48:35 ESP Unit: 231 : INIT : Normal boot
Oct 29 10:48:35 ESP Unit: 231 : NTP  : NTP sync requested
Oct 29 10:48:35 ESP Unit: 231 : NTP  : NTP send to 193.204.114.232
Oct 29 10:48:35 ESP Unit: 231 : NTP  : NTP replied!
Oct 29 10:49:05 ESP Unit: 231 : WD   : Uptime 0 ConnectFailures 0 FreeMem 27520
Oct 29 10:49:05 ESP Unit: 231 : UDP  : Send Sysinfo message
Oct 29 10:49:05 ESP Unit: 231 : BMP  : Temperature: 14.79
Oct 29 10:49:05 ESP Unit: 231 : BMP  : Barometric Pressure: 1024.62
Oct 29 10:49:05 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:49:05 ESP Unit: 231 : /json.htm?type=command&param=udevice&idx=87&svalue=14.79;0;0;1024.62;0
Oct 29 10:49:05 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:49:05 ESP Unit: 231 : HTTP : Success
Oct 29 10:49:05 ESP Unit: 231 : Content-Length: 53#015
Oct 29 10:49:05 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:49:05 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:49:05 ESP Unit: 231 : Pragma: no-cache#015
Oct 29 10:49:05 ESP Unit: 231 : Access-Control-Allow-Origin: *#015
Oct 29 10:49:05 ESP Unit: 231 : #015
Oct 29 10:49:05 ESP Unit: 231 : {
Oct 29 10:49:05 ESP Unit: 231 :    "status" : "OK",
Oct 29 10:49:05 ESP Unit: 231 :    "title" : "Update Device"
Oct 29 10:49:05 ESP Unit: 231 : }
Oct 29 10:49:05 ESP Unit: 231 : HTTP : closing connection
Oct 29 10:49:06 ESP Unit: 231 : SYS  : 0.00
Oct 29 10:49:06 ESP Unit: 231 : HTTP : Delay 103 ms
Oct 29 10:49:06 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:49:06 ESP Unit: 231 : /json.htm?type=command&param=udevice&idx=96&svalue=0.00
Oct 29 10:49:07 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:49:07 ESP Unit: 231 : HTTP : Success
Oct 29 10:49:07 ESP Unit: 231 : Content-Length: 53#015
Oct 29 10:49:07 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:49:07 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:49:07 ESP Unit: 231 : Pragma: no-cache#015
Oct 29 10:49:07 ESP Unit: 231 : Access-Control-Allow-Origin: *#015
Oct 29 10:49:07 ESP Unit: 231 : }
Oct 29 10:49:08 ESP Unit: 231 : SW   : State 0.00
Oct 29 10:49:08 ESP Unit: 231 : HTTP : connecting to 192.168.1.230 using port 8080
Oct 29 10:49:08 ESP Unit: 231 : /json.htm?type=command&param=switchlight&idx=110&switchcmd=Off
Oct 29 10:49:09 ESP Unit: 231 : HTTP/1.1 200 OK#015
Oct 29 10:49:09 ESP Unit: 231 : HTTP : Success
Oct 29 10:49:09 ESP Unit: 231 : Content-Length: 51#015
Oct 29 10:49:09 ESP Unit: 231 : Content-Type: application/json;charset=UTF-8#015
Oct 29 10:49:09 ESP Unit: 231 : Cache-Control: no-cache#015
Oct 29 10:49:09 ESP Unit: 231 : Pragma: no-cache#015
Oct 29 10:49:09 ESP Unit: 231 : Access-Control-Allow-Origin: *#015
Oct 29 10:49:09 ESP Unit: 231 : #015
Oct 29 10:49:09 ESP Unit: 231 : {
Oct 29 10:49:09 ESP Unit: 231 :    "status" : "OK",
Oct 29 10:49:09 ESP Unit: 231 :    "title" : "SwitchLight"
Oct 29 10:49:09 ESP Unit: 231 : }
Oct 29 10:49:09 ESP Unit: 231 : HTTP : closing connection
Oct 29 10:49:35 ESP Unit: 231 : WD   : Uptime 1 ConnectFailures 0 FreeMem 27152
Oct 29 10:49:35 ESP Unit: 231 : UDP  : Send Sysinfo message

User avatar
costo
Normal user
Posts: 507
Joined: 21 Nov 2015, 15:03
Location: SW-Netherlands, NB

Re: ESP reboot frequently

#3 Post by costo » 31 Oct 2016, 22:49

Which ESP module are you using ?

User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

Re: ESP reboot frequently

#4 Post by androx » 01 Nov 2016, 07:54

Esp e12 v1.0 4096

User avatar
costo
Normal user
Posts: 507
Joined: 21 Nov 2015, 15:03
Location: SW-Netherlands, NB

Re: ESP reboot frequently

#5 Post by costo » 01 Nov 2016, 22:01

androx wrote:Esp e12 v1.0 4096
So a bare ESP12 module it seems.
These modules can be very unstable, specially if you use them on a breadboard or with long wires.
Vcc needs an extra capacitor really close to the module, I like to solder a capacitor of a few uF between the module housing and Vcc.
Also when you have a wire on the reset pin this can be the cause for reboots. I recommand to solder a capacitor between 10 and 100 nF richt between the module housing and the reset pin.

Like on this module:
Image

User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

Re: ESP reboot frequently

#6 Post by androx » 01 Nov 2016, 22:07

costo wrote:
androx wrote:Esp e12 v1.0 4096
So a bare ESP12 module it seems.
These modules can be very unstable, specially if you use them on a breadboard or with long wires.
Vcc needs an extra capacitor really close to the module, I like to solder a capacitor of a few uF between the module housing and Vcc.
Also when you have a wire on the reset pin this can be the cause for reboots. I recommand to solder a capacitor between 10 and 100 nF richt between the module housing and the reset pin.

Like on this module:
Image
Thank for the suggestion.
I tried already with some uF capacitor between the 3.3V for eventual current drain due to the wifi transmission, but without no result. I will try with the capacitor to the rst pin.
Today I substitute it with an older v0.9 (always 4096) and it is much more stable: one reboot in all the day.
I'm logging contemporary the uptime and the RSSi level. I have the sensation that reboot are depending in such way to the wifi connection.

StephenF
Normal user
Posts: 13
Joined: 31 May 2016, 23:34

Re: ESP frequently reboots

#7 Post by StephenF » 08 Nov 2016, 07:09

Some more options to check:
1. Is your power supply sufficient - keeping in mind that the current consumption can spike at different WiFi states
2. I experienced a problem before where the inupt voltage to the GPIO was too high (5V). Some posts suggest this should not be a problem, but I definitely experienced this issue on a random basis.
3. Current consumption from the GPIO, or spikes from the relay.
4. You did not maybe damage the chip while soldering, connecting incorrect connections... I one (while experimenting) touched a 5V wire onto one of the ESP pins - had to throw the ESP away afterwards.

I have a few ESP 12 modules with eESP Easy and with the recent MQTT enhancements some releases back can say they are now very stable - thanks to the community development. The only outages i experience are the ones I manually reboot while experimenting with them.

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: ESP frequently reboots

#8 Post by Drum » 08 Nov 2016, 10:05

The following would be very useful in understanding what is going on,
Picture of complete device showing all parts and wiring.
Version of ESPEasy
Schematic
What is the power supply? Voltage regulator? This is a frequent issue. Have you tested your voltage at the VCC pin with a meter?
Are you using a bread board?
Have you double checked the wiring, for example if you move wires does it reboot?

About the only problems I have had with rebooting is a bad flash, but that generally shows up right after flashing, but mostly power or wiring issues.
Breadboards are the worst for me. I have to assume there are some good breadboards out there and it is possible the one I purchased from a store in London is okay, I just haven't had time to play with it. All the inexpensive ones I bought from amazon are garbage. The wind blows and it reboots.

The log you sent, is this a syslog? It is not showing the information I normally see in the serial or weblog, unless maybe you are using an older version. I am very curious because I have been trying to setup syslog to troubleshoot something and this is not as helpful as the serial log.

User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

Re: ESP frequently reboots

#9 Post by androx » 08 Nov 2016, 18:38

StephenF wrote:Some more options to check:
1. Is your power supply sufficient - keeping in mind that the current consumption can spike at different WiFi states
2. I experienced a problem before where the inupt voltage to the GPIO was too high (5V). Some posts suggest this should not be a problem, but I definitely experienced this issue on a random basis.
3. Current consumption from the GPIO, or spikes from the relay.
4. You did not maybe damage the chip while soldering, connecting incorrect connections... I one (while experimenting) touched a 5V wire onto one of the ESP pins - had to throw the ESP away afterwards.

I have a few ESP 12 modules with eESP Easy and with the recent MQTT enhancements some releases back can say they are now very stable - thanks to the community development. The only outages i experience are the ones I manually reboot while experimenting with them.
The esp version 0.9 is actually up and running since 6500 minutes with the same hardware so maybe is something corrupted in the module. The Power supply is a switching with 1A current.

User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

Re: ESP frequently reboots

#10 Post by androx » 08 Nov 2016, 18:40

Drum wrote:The following would be very useful in understanding what is going on,
Picture of complete device showing all parts and wiring.
Version of ESPEasy
Schematic
What is the power supply? Voltage regulator? This is a frequent issue. Have you tested your voltage at the VCC pin with a meter?
Are you using a bread board?
Have you double checked the wiring, for example if you move wires does it reboot?

About the only problems I have had with rebooting is a bad flash, but that generally shows up right after flashing, but mostly power or wiring issues.
Breadboards are the worst for me. I have to assume there are some good breadboards out there and it is possible the one I purchased from a store in London is okay, I just haven't had time to play with it. All the inexpensive ones I bought from amazon are garbage. The wind blows and it reboots.

The log you sent, is this a syslog? It is not showing the information I normally see in the serial or weblog, unless maybe you are using an older version. I am very curious because I have been trying to setup syslog to troubleshoot something and this is not as helpful as the serial log.
The bredboard is an interesting object to check. I avere with you.
The syslog is taken from raspberry with jessy distribuzion. It is a level 4. Do you think it is possibile ti improve it?

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: ESP frequently reboots

#11 Post by Drum » 09 Nov 2016, 11:41

I don't know if it is possible to improve the syslog, but what I see in the serial log from R142 and R143 is more useful, I think.

I mostly use "proto boards" these days and solder almost everything down. mostly something like this: https://www.amazon.it/Pezzi-Prototipo-C ... rotype+pcb
More stable than a breadboard, but not as good as a custom PCB. Still trying to get the design for a PCB nailed down. If shipping was not from China it would be easier, cost is nothing but shipping time is very long.

I use headers so the ESP modules (mostly on white adapter boards) plug in and can be changed. Most of the other components are really cheap. I also use a lot of jst connectors, but I am looking for something better. Almost all my boards have standard power connectors (the red connectors, with red and black wires) cheap and easy.

Do you know of any good suppliers in Italy or europe? I am in Siena, shipping from US or China can be problematic, of course shipping from within Italy can be problematic too! ;)

User avatar
androx
Normal user
Posts: 11
Joined: 26 Oct 2016, 20:24
Location: Rome

Re: ESP frequently reboots

#12 Post by androx » 09 Nov 2016, 12:01

Drum wrote:Do you know of any good suppliers in Italy or europe? I am in Siena, shipping from US or China can be problematic, of course shipping from within Italy can be problematic too! ;)
Not at the moment. I mean I'm still looking for something more cheaper than amazon. By the way, amazon is the best in case of damage in packagin and so on.
For prototype board I agree with you because they are more stable than a breadboard. But on the other side it can be only an intermediate stage before customizing a pcb.

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: ESP frequently reboots

#13 Post by Drum » 09 Nov 2016, 12:45

My last order was from Digikey.it, it worked and was cheaper and they had what I wanted. I think I selected an incorrect option and ended up with a delay in customs, but even with import tax it was cheaper than anything I have found in Europe.

Who is online

Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 37 guests