ToniA / arduino-heatpumpir

An Arduino library to control split-unit heatpumps over Infrared
GNU General Public License v2.0
389 stars 141 forks source link

New IR controller #53

Closed seravifer closed 6 years ago

seravifer commented 6 years ago

I have modified the code to be compatible with the control of the Daikin brand model ARC480A11. This is the result The problem is with the header, right now I got this:

Number of symbols: 156
Symbols:
WHh10001000010110111110010000000000000000001000110000010100000000000000101000000000000000000000000000000000000000000000000010100011000000100000000000000011
Bytes:
11,DA,27,00,00,31,28,00,50,00,00,00,00,00,00,C5,40,00,C0
Timings (in us): 
PAUSE SPACE:  25720
HEADER MARK:  3600
HEADER SPACE: 1360
BIT MARK:     320
ZERO SPACE:   356
ONE SPACE:    1363
Decoding known protocols...
Looks like a Daikin protocol
POWER OFF
MODE COOL
Temperature: 20
FAN: 3
FLAGS: 
Checksum match

But the original shows this:

Number of symbols: 161
Symbols:
00000WHh10001000010110111110010000000000000000001000000001101100000000000000010100000000000000000000000000000000000000000000000010100011010000000000000000001101
Bytes:
11,DA,27,00,00,01,36,00,A0,00,00,00,00,00,00,C5,02,00,B0
Timings (in us): 
PAUSE SPACE:  25660
HEADER MARK:  3580
HEADER SPACE: 1700
BIT MARK:     425
ZERO SPACE:   286
ONE SPACE:    1275
Decoding known protocols...
Looks like a Daikin protocol
POWER ON
MODE AUTO
Temperature: 27
FAN: AUTO
FLAGS: COMFORT 
Checksum match

I need help to get the binary header: 00000WHh

ToniA commented 6 years ago

I think you need to start by sending a sequence of DAIKIN_AIRCON2_BIT_MARK / DAIKIN_AIRCON2_ZERO_SPACE five times, then DAIKIN_AIRCON2_BIT_MARK / DAIKIN_AIRCON2_MSG_SPACE.

seravifer commented 6 years ago

Great, it works, thanks.