HASwitchPlate / HASPone

DIY LCD touchscreen for Home Automation
MIT License
414 stars 46 forks source link

Device hangs with 1.05 #227

Open SylvainGa opened 1 year ago

SylvainGa commented 1 year ago

When my devices were using HASP 0.40 for over a year, they were rock solid. Never had a device hang. Now that I've upgraded to 1.05, all of them (I have four) have at least hung once and that is just in a few months. The screen is unresponsive (well, it register the press but that's it) and its web interface isn't working either. It takes a breaker reset to bring them back. What should I try to try to troubleshoot what's going on? Thanks.

aderusha commented 1 year ago

Without logs we're kind of shooting blindly for a solution. That is an annoying answer, because that means running the device for months on USB to see what the log output looks like when an event happens, but without some sense of what is actually happening on the device, we don't really have anything to go on.

The only other external factors you might be able to play with when the device is in a hung state:

Any chance you can let one run on USB for a spell to help track this down?

SylvainGa commented 1 year ago

Thanks for the reply. Since that message, one of the frozen screen changed from frozen at the 'Scenes' page to frozen at "Connected to MQTT / Connected to Wifi" for a few days and yesterday, it's responsive again. That's the device I wanted to disconnect and plug it through USB.

One question, on Windows, I can't get the logs at boot since when I connect the USB cable, the serial terminal I'm using (Termite) do not know about the virtual serial port until it's connected and by the time I activate it, the boot data is long gone. Do you know of a serial terminal program that doesn't have that limitation or a way to hard reboot a hung Wemos D1 while maintaining its serial port connection?

aderusha commented 1 year ago

I do! I've been using SimplySerial which is a window terminal app that will handle disconnect/reconnect and can usually pick up boot messages.

jwhamlin244 commented 9 months ago

Hello. recently purchased a preassembled unit and about once ever few days I think I'm having this same issue. The device itself responds to my touch. I can move sliders, and I can see the button text color change when I touch it. However, nothing ultimately happens. Screens do not change, control of my devices is nonexistent.

Only way I can get it to resolve is by turning my breaker off and on to reboot the entire device. Is it an issue with MQTT? I have attempted to stop my broker entirely to see if the device reverts to the 'connecting' screen, but it does not..

aderusha commented 9 months ago

One common situation we've encountered are problems with the WiFi. @jwhamlin244 would it be possible to try and reboot the WiFi AP that your HASPone is attached to and see how it responds?

jwhamlin244 commented 9 months ago

@aderusha I have turned off my router -> no change on haspOne -> restarted router -> still no change on haspOne. I have not noticed any internet issues, although i can't rule out that it has never blipped out without me noticing at some point.