-
Notifications
You must be signed in to change notification settings - Fork 268
ESP "crashes" after setting effect #17
Comments
Hmm, that's interesting. I am not able to reproduce this on my dev setup. Can you post the full output from the Serial monitor from when it starts up to when you're getting the error messages? |
Yes, I'll make a screen recording to show what happens :) |
Not able to make a recording yet, but here my first thoughts: because effects are all using the same loop (even effect "solid" is in the same loop), I thought maybe it crashes because of the many checks and print(). I stript all the effects but one: candy cane. It had no effect. It crashes once the effect starts. Sometimes within a few seconds, other times after >5 minutes. |
@bruhautomation I just send you an email within 3 links to screen recordings. |
Hello. Sorry for the forever delay on this. I've been testing a couple of things and MAY be onto something. So far I'm at 24 hours and no crashes. Can you remove these lines from your code (23 and 24) and tell me if that helps the stability at all?
|
Nice, I'll try this within a few hours :) |
I've used the code 1-on-1 (only wifi, mqtt and name changed). I'll let it run for at least ~7 hours to test the stability. Without the ledstrip, only the esp-01. I'll let you all know if it crashes, or keeps on running. |
Sounds good! I'm at >48 hours on both my setups now. Everything seems to be running great. Hope it works for everyone! |
121xx seconds (ping replies) further, about 3,5 hours further, it's still working without any errors/crashes... Looks promising so far 👍 I've pushed it with changing between different scenes and colors with and without transistions... no problem 👍 edit: |
I did notice one error... I'll look it up later in the code...
First I did color [255, 255, 0] than to color [255, 31, 0] and it goes to color [255, 0, 0]. |
273xx seconds, more than 7,5 hours stable. I'm liking it... couldn't test it further... This is soo much better! |
2.29 hours and climbing ( this is normal crash threshold ) AWESOME! Thanks for the work! |
Nice! Pumped it is working for you guys. Let me know if you have any other stability issues! I'm going to close the issue once you guys give me the green light. Cheers! |
One issue noticed with an esp-01. It's up and stable for about 9hrs now. Yet the effects aren't working right. For example: candy cane is showing the colors, but is flickering and not moving. Rainbow is moving, yet also flickering. I'll try to make a movie of it. I'll try to play with the setting and let you know if it works. minor correction:
must be
|
Ok, I think I've fixed it 👍 You have to use '#define FASTLED_INTERRUPT_RETRY_COUNT 0'. Without it, it looks awful. I've added it (without '#define FASTLED_ALLOW_INTERRUPTS 0') and the effects are smooth again, no glitches, candy cane is moving again etc. Movie, first part without the retry, second with the retry option: My led strip setup (very easy!): My tested components. Left the programmer in flash state (with wires), right the programmer in normal/read state ($1,40 each, real easy to program esp-01): Your code with the two adjustments, can you and/or anyone else try this too?
|
Stable for >40min 👍 |
Nice! Pumped you got that working. Yeah, I'll keep that line in mind if people are reporting issues with unsmooth animations. Both my 5V and 12V setups are stable >48 hours without it. I think I'll leave the code as is until I get a better grasp on why the two lines I removed were causing the crashing. I'm pretty certain the culprit was If you don't mind, can you open a new issue on the effect freezing? I'm sure there are a few more bugs like that I need to work out. Cheers! |
I've tried the code as-is and only changed the wifi and mqtt settings.
Without connecting the ledstrip to the ESP, only to test, the network connection is lost.
I start with 4 terminals:
1 to view serial output
2 continuous ping to esp
3 send mqtt command
4 view mqtt commands returning
When setting an effect with mqtt, after a few seconds the ping reply stops. The serial output says "Attempting MQTT connection...failed, rc=-2 try again in 5 seconds"...
When printing out the ip address in the process to reconnect mqtt, it says it still has it's ip address, whilst it isn't pingable.
I have this on my nodemcu developer board, and also on a esp-01.
The text was updated successfully, but these errors were encountered: