Page 1 of 1

unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 14 May 2017, 23:15
by pppp33
Hi there,
I'm experiencing unwanted reboot with pulse counter enabled.
I've set up mqtt controller cloudmqtt.com, pulse counter with 10 sec delay.
I get 20-60 minutes of operation, then a reboot.
If i don't enable pulse counter, i don't have these reboots.
Anyone else is having this problem ?
regards
Paolo

Re: unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 15 May 2017, 05:56
by grovkillen
What gpio are the pulse counter on?

Re: unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 15 May 2017, 14:55
by Shardan
Hello Paolo,

Did you use the binaries from GitHub or did you compile yourself?

And another question for a reason:
Reboot the ESP, then open the website and read the free Memory
let's say every 10 or 15 minutes until it reboots.
(Pls. refresh the page when reading, it is static).

Is the memory decreasing?

Regards
Shardan

Re: unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 15 May 2017, 20:17
by pppp33
Hi there,
thanx for yr support....
Here are first answers:
1. I downloaded the updated version 2.0.0-dev8 from github in my atom/platformio, compiled with no error and used normal_4096 binaries
2. pulse counter is on GPIO-14
3. memory is between 20k and 21k: see right part of attached graph, just started monitoring
4. uptime (left part of the graph) is from some minutes to 800 minutes
5. Another esp01 (same version with normal_1024) is over 2 days of uptime without a flaw
If helps, I'll post a longer time monitoring of mem/uptime....let me know.
Regards
Paolo
Cattura.PNG
Cattura.PNG (48.51 KiB) Viewed 10960 times

Re: unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 15 May 2017, 20:44
by Shardan
Hello paolo,

that does not look like a memory leak, it's quite well.

i was just asking because the ready compiled binary under certain circumstances had some issues with a memory leak.
If you compiled it yourselffrom the newest sources this should be solved (Fixed with sources from May 2nd, '17)
If you want to try a bit, i've compiled the fixed version and put a 4096-binary for download here:
https://www.letscontrolit.com/forum/vie ... 7&start=20
Maybe try with a R147 or R148 version to make sure it's no hardware issue.

GPIO 14 should be fine.

Reboots can have a lot of reasons from leftovers in the flash to powersupply with everything in between.
It might help if we can get some more details about what you're doing, maybe a photo of the device.

Is that right, you're using two ESP-01 ?

Regards
Shardan

Re: unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 15 May 2017, 21:25
by pppp33
Hi Shardan,
thx for fast repsonse
1. I downloaded the bin and i'll check ASAP
2. I used this same unit with 147 and 148 and it was fine: I already know it for sure....
3. The rebooting unit is a nodemcu, but it's the same that worked fine with 147-148
4. The esp01 is only used to compare behaviour: I can see what's happen if I enable pulse counter on it....
Regards
Paolo

Re: unwanted reboots with 2.0.0-dev8 and pulse counter enabled

Posted: 15 May 2017, 21:45
by pppp33
Actually, this unit is running some jobs: see pics:
Cattura.PNG
Cattura.PNG (47.43 KiB) Viewed 10944 times
Cattura2.PNG
Cattura2.PNG (22.88 KiB) Viewed 10944 times