-
Notifications
You must be signed in to change notification settings - Fork 227
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
Recent changes break bi-direction communication on MSZ-GL06NA #207
Comments
@prashker , this relates to the commit you made, can you review pls |
@SwiCago if I'm reading the above correctly, my commit works - it is subsequent commits breaking communication. @stewartadam seems to indicate that problem is immediately after my commit, which would be ce460c3 by @dzungpv |
I am running for months without any issue. Both with esp8266 and esp32. With my changes, if you are not set the custom UART pin on ESP32, it use default settings. @stewartadam can you try my project, it is not ESPHOME but you can try to test if the bug happen with this lib or ESPHOME implementation |
@dzungpv It looks like your issue is that you are only setting the values for rxPin and txPin inside the
test. If on the initial call to connect, rx and tx are set to -1 then rxPin and txPin are not set but you use them on line 119.
Maybe you could initialize them to -1 and add a test to check value before line 119 in case it is -1 and then fallback to the old
This is my guess to the issue anyway. |
It is original code, I just store the custom RX TX pin for call in retry you can check change here: dzungpv@ce460c3 and 4 of my units running fine since, 3 esp8266 and 1 esp32 |
@stewartadam Can you check latest change? |
Just tried it, confirmed working! Thank you @dzungpv and @markalston |
Thanks @dzungpv , @stewartadam , @markalston |
Teamwork! |
I'm using this library via esphome-mitsubishiheatpump.
Commit cea90c5 works as expected, but any commit later causes bi-directional serial communication to silently fail. Updates sent do nothing and no updates are received from the heat pump, so the current setpoint shows as NaN.
The text was updated successfully, but these errors were encountered: