crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.95k stars 831 forks source link

Support for 'quiet' mode in COOLIX protocol #2114

Open gomezguillermo opened 3 months ago

gomezguillermo commented 3 months ago

Version/revision of the library used

v2.8.6 or 'master' as at 1st of July, 2024.

Describe the bug

Support to implement quiet mode in COOLIX protocol. I got a Samsung AC model ar12txhqbwkneu. I can control nicely my AC, IRremoteESP8266 reports my remote control uses COOLIX protocol, all works except 'Silence' key, according to the manual when user press that key it lower the compresor frequency and fan become lower than minimum fan speed, it seems like a special mode.

To Reproduce

Press 'Silence' key, IRremoteESP8266 interpret it like 'Dry' mode and set the temperature to 30C

Output of raw data from [IRrecvDumpV2.ino]

Pressing 'Silence' key:

Timestamp : 000205.543 Library : v2.8.6

Protocol : COOLIX Code : 0xB5F5B6 (24 Bits) Mesg Desc.: Power: On, Mode: 1 (Dry), Fan: 7 (Fixed), Temp: 30C, Zone Follow: Off, Sensor Temp: 21C uint16_t rawData[199] = {4492, 4290, 640, 1510, 642, 432, 642, 1506, 642, 1508, 642, 432, 642, 1508, 640, 434, 644, 1504, 642, 432, 642, 1506, 644, 432, 644, 430, 640, 1508, 616, 458, 642, 1508, 640, 432, 644, 1506, 616, 1534, 618, 1532, 616, 1534, 642, 432, 616, 1532, 642, 434, 640, 1508, 614, 460, 616, 458, 640, 434, 638, 436, 638, 1510, 614, 460, 640, 1510, 614, 460, 612, 1536, 614, 460, 614, 1536, 612, 1536, 614, 462, 612, 1536, 612, 1538, 612, 462, 612, 464, 610, 1538, 612, 464, 610, 462, 610, 1540, 610, 464, 610, 464, 610, 1540, 610, 5136, 4458, 4324, 606, 1544, 604, 470, 606, 1544, 604, 1566, 584, 490, 582, 1566, 582, 492, 582, 1568, 582, 492, 580, 1568, 582, 494, 580, 494, 578, 1572, 578, 496, 578, 1572, 576, 498, 576, 1574, 574, 1576, 576, 1574, 576, 1574, 576, 500, 574, 1574, 574, 500, 574, 1576, 576, 500, 574, 498, 574, 500, 574, 500, 574, 1574, 576, 498, 574, 1576, 574, 500, 574, 1576, 574, 500, 574, 1576, 574, 1576, 574, 504, 570, 1576, 572, 1600, 550, 524, 550, 524, 550, 1598, 550, 524, 550, 524, 550, 1598, 550, 524, 550, 524, 550, 1600, 550}; // COOLIX B5F5B6 uint64_t data = 0xB5F5B6;

Pressing again to disable 'Silence':

Timestamp : 001409.652 Library : v2.8.6

Protocol : COOLIX Code : 0xB5F5B7 (24 Bits) Mesg Desc.: Power: On, Mode: 1 (Dry), Fan: 7 (Fixed), Temp: 30C, Zone Follow: Off, Sensor Temp: 21C uint16_t rawData[199] = {4490, 4316, 614, 1536, 614, 434, 642, 1532, 616, 1534, 614, 436, 642, 1532, 614, 436, 642, 1532, 614, 436, 642, 1534, 614, 434, 642, 432, 642, 1534, 614, 436, 642, 1532, 614, 436, 642, 1532, 614, 1536, 612, 1536, 614, 1536, 614, 436, 642, 1534, 614, 436, 642, 1534, 614, 436, 642, 432, 642, 432, 642, 432, 642, 1534, 614, 434, 642, 1532, 614, 434, 642, 1532, 614, 436, 642, 1532, 614, 1536, 614, 436, 642, 1534, 614, 1536, 614, 1536, 614, 434, 642, 1534, 614, 434, 642, 432, 642, 1536, 612, 436, 642, 432, 642, 432, 642, 5104, 4492, 4290, 640, 1512, 640, 434, 642, 1508, 638, 1512, 638, 436, 640, 1510, 640, 434, 640, 1510, 638, 436, 638, 1512, 636, 438, 614, 460, 636, 1516, 636, 440, 610, 1540, 610, 464, 610, 1540, 608, 1542, 608, 1542, 606, 1566, 586, 466, 606, 1566, 586, 468, 606, 1566, 584, 490, 584, 492, 582, 492, 582, 492, 582, 1568, 582, 494, 580, 1570, 580, 496, 578, 1574, 574, 498, 576, 1596, 554, 1600, 550, 500, 574, 1600, 550, 1600, 550, 1602, 550, 524, 550, 1600, 550, 524, 550, 524, 550, 1600, 550, 524, 550, 524, 550, 524, 550}; // COOLIX B5F5B7 uint64_t data = 0xB5F5B7;

What brand/model IR demodulator are you using?

COOLIX

Circuit diagram and hardware used (if applicable)

ESP8266

I have followed the steps in the [Troubleshooting Guide]

Yes

Has this library/code previously worked as expected for you?

No.