HASPone appears to restart itself often #257
Replies: 5 comments 4 replies
-
|
First thing you'd probably want to know is if it's actually restarting or just loosing wifi. If you don't see the "HASP Initializing" screen, that might suggest it's dropping connection and reconnecting for some reason, which itself is almost always radio related. |
Beta Was this translation helpful? Give feedback.
-
|
Got it, and from looking at a higher speed/resolution video, the Initializing screen never comes on. Perhaps interestingly, when the "WiFi Connected!" screen first appears, it also says "MQTT Connected:" but then a couple frames later, it switches to "MQTT Connecting:". So I guess this seems like it's being triggered at the top of the |
Beta Was this translation helpful? Give feedback.
-
|
It might be useful (if annoying) to take the device out of the wall, pull it apart, and hook to the USB port buried inside (it'll power up via USB so you won't want AC connected). Then you can monitor debug logs even if WiFi isn't working, and see if you can't figure out timing or if any errors are showing up. The device itself does nearly nothing, there are no background tasks or anything like that, it's purely a gateway between incoming MQTT messages which have Nextion commands inside, it'll then send the Nextion command to the screen. In my experience, any latency or delay etc is essentially always down to a network/wifi issue and you can validate that by monitoring timestamps in the log. Sadly, the ESP8266 RF and wifi performance isn't always great. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the advice. I've done what you suggested and it looks to me like the wifi never disconnects, as suspected, as I never get the "Reconnecting to WiFi network..." message in the serial output. I do, however, get the "MQTT: not connected, connecting." message regularly. This snip of the log file has one cycle of that. My HA instance is running on a Windows server that has no known issues and is continuously available to me via the HA app or local website. I'd also curiously note the occasional garbage character in the output which makes me suspicious that I may have a bad ESP8266? If you have any other test or debugging suggestions, I'm happy to try them. |
Beta Was this translation helpful? Give feedback.
-
|
I have that all set up, which is of course how I created the log file above. So to test this, you want me to trigger actions from the HA side, then see how long it takes for messages generated by the actions to show up in the D1 serial output, correct? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I started noticing a quick flash every 3 to 5 minutes on my HASPone display. I set a camera on it and in looking frame by frame, it's super briefly showing the "WiFi Connected" screen, which says that both WiFi and MQTT are connected. Checking the HA logs, I get a sequence of "plate01 backlight became unavailable", "plate01 sensor changed to OFF", followed shortly by the same messages with on states. Everything seems to be working, and connection strength and logs of my UniFi network shows no issues there, with strong signal. Any suggestions on how to chase down what appears to be an issue with the HASPone frequently restarting?
Beta Was this translation helpful? Give feedback.
All reactions