sfeakes / AqualinkD

Daemon to control Jandy Aqualink RS pool equipment from any home automation hub (Alexa, Homekit & Siri, Home Assistant, smartthings, domoticz etc) or web browser.
Other
166 stars 46 forks source link

With raspberry pi 4 aqualinkd is responding too fast and panel may reset #259

Closed ballle98 closed 3 months ago

ballle98 commented 7 months ago

When I upgraded from an older pi 1 B to a pi 4 things became unstable. Not just with aqualinkd but also with aquaweb. What I would see on aquaweb is while attempting to navigate the panel would go back to the version screen but there were no bad packets coming from the panel. When I turned on debug the problem would go away.

No spec for aqualink protocol but looking at similar RS-485 protocol https://www.tascam.eu/en/docs/MX-8A_RS-485_protocol.pdf there is a min frame to frame time of 4 ms. I instrumented aqualinkd and could see frame to frame times consistently of 0.02 ms turning on debug brought the time up to ~0.1 ms

image

See Also https://github.com/ballle98/AqualinkD/issues/87 https://github.com/ballle98/aquaweb/issues/7 stdout-20231114_1231.txt