-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Awtrix 0.96 & 0.94 on two Ulanzi TC001 reboot up to two times a day #553
Comments
Check the RAM usage. |
Oh, that was fast :-) Sorry for my misunderstanding, but what do you mean with "Switch to raw MQTT API commands" This is a code snippet: Is this raw MQTT ? If not, how looks it like ?
|
I checked the free ram usage of both clocks, each has about 135000 Bytes of free RAM. |
Just use Homeassistants history, you can see the ram over time in a graph 📉 |
Thanks for the hints, i made some entities, here are the results. The other clock looks similar, only the battery history is a line at 100%. |
RAM usage looks good, and there was no other cause of reboots in the past. |
Thanks for your help, I was also worried that it was the power supply, I was already thinking about whether I would only use the RGB LEDs with housing from the Ulanzi and replace the hardware with a simple ESP, will see. |
40kb is too low. Check wich automation cause the memory drop |
Sorry for writing again, maybe it helps, if there is a bug. |
You should read the whole issue. Don't control the HA entities often, instead use raw mqtt commands |
Did you find the error? |
Hello Stephan, thanks for asking. |
Update: After adding the capacitor to both clocks, things getting more and more strange... |
Update after one day running with the capacitor the clock didn't reset, the uptime value increase. |
There is no software automation to switch off the display. |
I already mentioned my "RAM problem" in another issue, but it might apply here as well: I had a similar issue, could successfully reproduce and fix it. Long story short: I didn't know about the blink or fade functionality included in Awtrix, so I used a loop in a Home Assistant automation to turn the lights on and off every second, using a custom component which defaulted to QoS of 1. The solution was to remove the custom component and use the built-in mqtt.publish instead, defining a QoS of 0 for all commands. I also replaced the loops with single mqtt.publish commands, where I set the indicators to blink or fade. All problems are gone since then. Thanks for this AWesome custom firmware! :) |
I observed the following yesterday. During the display of a custom app, its value was changed as a result of an update via MQTT. The value of the display still changed, but it was no longer switched to the next app. The software was frozen and was forced to restart by the watchdog. |
FYI |
@UCaGk I am the guy which posted the battery removal guide on reddit back than. Also replaced the power supply of my two ulanzis with an 3V3 converter. I am running https://github.com/lubeda/EspHoMaTriXv2 (complete other software). And you know what... I have the exact same issue, the esp reboots a few times a day (sometimes with the first led/dot in the corner). Interesting that an Cap solved the issue for you. But sure I want it as stable as possible without spending to much time. So here are my questions: Does this fix work for you also after using it longer? Can you please tell us which value you have soldered into the device and exactly where? Thx |
@popy2k14 It is exactly the same behavior, you discribe, with my two clocks. One clock reboots (not really a full reboot) raher rare, one reboot more often. With the caps it is not a full reboot, it is something like this: The display gets black for, not sure, about 2-3 seconds, sometimes there is a green dot in the upper left part of the display before it get black sometimes not. Because the second clock is in a really dark display mode, i'm not sure if the behavior is the same. Afteri made this changes it was and is ok for me, even if it would be better the clock would work without such "black-out features". Have you ever thought about replacing the whole Ulanzi hardware by a simple esp connected to the display of the Ulanzi, and use the EspHoMaTriXv2 firmware with it ? This was something i thought about in the past. |
@UCaGk yeah, i had those issues since i made my post on reddit back than: https://www.reddit.com/r/homeassistant/comments/131okf7/comment/jwudxjk/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button Have you done your mod from my picture / guide? I have now added an 1000µF / 10V cap on each clock directly on the ESP32 GND & VCC Pins (3V3 rail) and will see how it goes. Also activated the uptime sensor logging. Yeah i have thought of ditching the original pcb board and just using an ESP32 (which i also have laying around). If you think again to switch to EspHoMaTriXv2, be aware that it has some bugs and is not that much maintained because lack of other devs. Dont get me wrong, lubeda and andrewjswan doing an amazing job!!!, but if you have other use cases than the devs (like me :-) ) you may face some bugs. Ex.: there is an looping bug which was not found up until now, where i just have made an workaround in my yaml for (some sort of wdt). But overall i am pretty happy with it. This here: lubeda/EspHoMaTriXv2#245 Will keep you updated if my reboots of the ESP32 is gone. |
@popy2k14 It would be nice too hear from you if the reboots are gone. |
@UCaGk ok thx for confirming your used cap value, so i should see the same result. If i had time i would make my own PCB (i am an HW engineer for ~20 years) but sadly dont have much time for that. But until that happens HUGHE thanks to bring this issue back to my attention and also post a workaround!!! If that also works for me, i will update my reddit post. |
I have direct contact to the Ulanzi hardware engineer because of the next version 🤫. I will ask him how to Bypass the battery. |
That would be awesome!!!! Thx |
This would be the BEST SOLUTION ever ! Thanks Stephan ! |
Here are my results with the additional 1000µF/16V cap on the 3V3 rail. And yes, something is switching the matrix off/on. Also when the esp32 is stable now, the matrix sometimes glitches (black or bright dot in the top left corner for about 2-3 secs) like @UCaGk stated above also on my clocks. @Blueforcer |
PR #564 might help to shade a light in restarts. |
@eku thanks for the hint. the ESP restart is because "something" on the board is switching power on certain events. As stated the esp is now stable, but not the LED matrix, which get's reset in an interval (sadly sometimes one led is at 100% white, when this happens). So there mus be something on the PCB which triggers those events which we don't know or have investigated. |
As mentioned in my first comment here, I had observed a software (dead)lock that triggered the watchdog. |
@eku sorry, missed that. Sure for software related issues, knowing why it restarted may help. |
@Blueforcer any news from the hw engineer of ulanzi tc001? PS.: Since adding of the cap, they are much more stable!!!!! |
but it also happens with other completely different firmwares. At the exact same time. |
hi guys. Because the original reddit thread was archived, i have created an new one here: https://www.reddit.com/r/homeassistant/comments/1grzksj/ulanzi_tc001_always_on_mod_battery_removal/ |
Hope there will be some information on the “power problem” in the near future, from whoever, |
No message from Ulanzi so far. I think they used discord only for contacting me... |
thx, for trying. As stated, for me two clocks are much more stable now with the added cap. |
@popy2k14 It's only been a few hours and I don't always check the clocks but it seems stable at the moment. It would be nice to have a method to catch the error without watching... |
@UCaGk thx for the hint Will see how it goes... Yeah, since esp32 is stable since adding the output caps (checked with uptime sensor), it's hard to tell if there was an led matrix outage. Both clocks are under TV's in my appartement, so every day some family member is seeing the watch. And maybe catching an led matrix outage. But since I have added the output caps, no member complained about an issue with the clock, nor have I seen an issue. P.s: can I use your picture for the reddit thread I created? |
@popy2k14 Yes, you can use the picture, no problem. Hope the cap has some benefit. |
@UCaGk thx, i have now used your picture (forgot to make some). |
Bug report
I use two different Awtrix versions on two Ulanzi TC0001 clocks.
The clocks are under control of Home Assistant MQTT, each clock only shows time and on different events ICON, Sound and Text, but mostly time in format HH:MM:SS or HH:MM in color white, brithness 1-20, depending on some events.
Every clock reboots at a purely random time, without an event, just like that. Sometimes a colored dot appears, sometimes part of the matrix turns bright white, then the firmware restarts and clock run again.
Looks like the display "freeze" (sometimes a few leds flicker) and a watchdog reboots...
Both clocks has accumulator removed, some changes to pcb and a 3.3V stepdown regulator.
I'm not sure if the clocks reboot more than 2 times, because I'm not sitting in front of them the whole day :-)
Devices involved:
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
The text was updated successfully, but these errors were encountered: