Fix Daikin312 missing leader pulse - #2270
Conversation
|
Need to fix the failing tests. It seems the |
043c3cd to
5098b68
Compare
Header previously had a 5-bit preamble; however, captured data of an ARC472A43 remote shows leader pulse, similar to Daikin2 format. This leads to Daikin2 and Daikin312 sharing identical structure, thus, they are now distinguished by checking the state[4] byte (0x01 = Daikin2, 0x02 = Daikin312). Test case for real example has been updated with data captured using a Moes UFO-R11 IR blaster/receiver. This receiver encodes data in Tuya format, which has been converted to marks/spaces using the Sensus converter tool (https://pasthev.github.io/sensus/). Assisted-by: Claude (Anthropic)
5098b68 to
787148b
Compare
|
As described in the updated commit message, I updated the test case with the signal that I captured using a ARC472A43 remote. The original test data did not have this and instead had a 5-bit preamble. All data that I captured had the leader pulse, so I’m not sure why the original data didn’t have it included. Maybe it was catching the trailing zeros of the leader? Notes:
Included as the Captured when AC was in cool mode. Temperature button (down) was pressed. Captured when AC was in cool mode. Off button was pressed. |
|
Does this change make the original captures to being unknown? That would potentially be a breaking change. |
|
Thanks for taking a look.
Not necessarily. As far as I tested, it was only the leader pulse that was missing from the original captures and all other parts were working. The IR signal based on the original captures are accepted by the AC (only issue is that the AC stops responding to signals after a few hours of silence). This is the reason why I don’t think my unit is using a different protocol. Still, it would be nice to get some help verifying that this (and perhaps also #2268) doesn’t break anything. Pinging @carl09 and @AntonWert who were involved in #2246 and #1829 for adding Daikin 312 protocol support. As a side note, I’ve been using IR signals generated with the changes in this PR and also #2268 for over a month now and had no issues. |
|
I tested out your changes on my AC units and they work perfectly. Thank you for your effort on fixing this up |
|
@carl09 Thank you very much for testing it out! I appreciate your help. |
TL;DR: Leader pulse was missing from the IR command, resulting in the AC ignoring commands after 5 minutes of off period.
While testing out the changes in #2268 I noticed that most of the times the commands were received, but if I left the AC off for 5 minutes or longer it would ignore the commands. If I use the remote to turn on the AC, it would accept all subsequent commands (even if I turn it off briefly). I’m not sure why it stops receiving commands after that period (clock going out of sync? IR receiver going into deep-sleep?) but it took me a while and a bit of signal comparison to figure it out.