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

Error (maybe!) in Raw-IR-Decoder #79

Closed atlask1 closed 5 years ago

atlask1 commented 5 years ago

Hi, I'm trying to decode my heatpump BEKO but I'can't compile your decoder sketch ( https://github.com/ToniA/Raw-IR-decoder-for-Arduino/blob/master/rawirdecode.ino ) because return me an error : 'undentfined reference to decodeMitsubishiElectric(unsigned char*, int)' . I report only first line of error, every reference to bool declared at the top of the sketch give the ame error. Please if I'm wrong, tell me the correct way to compile this sketch.

I solved changing this part: if ( ! (decodeMitsubishiElectric(bytes, byteCount) || decodeFujitsu(bytes, byteCount) || decodeMitsubishiHeavy(bytes, byteCount) || decodeSharp(bytes, byteCount) || decodeDaikin(bytes, byteCount) || decodeCarrier(bytes, byteCount) || decodeCarrier(bytes, byteCount) || decodePanasonicCKP(bytes, byteCount) || decodePanasonicCS(bytes, byteCount) || decodeHyundai(bytes, currentpulse) || decodeGree(bytes, currentpulse) || decodeGree_YAC(bytes, currentpulse) || decodeFuego(bytes, byteCount) || decodeToshiba(bytes, byteCount) || decodeNibe(bytes, symbols, currentpulse) || decodeAirwell(symbols, currentpulse) || decodeHitachi(bytes, byteCount) || decodeSamsung(bytes, byteCount) || decodeBallu(bytes, byteCount) || decodeAUX(bytes, byteCount) || decodeZHLT01remote(bytes, byteCount) ))

with this: if ( ! decodeMitsubishiElectric || decodeFujitsu || decodeMitsubishiHeavy || decodeSharp || decodeDaikin || decodeCarrier || decodeCarrier || decodePanasonicCKP || decodePanasonicCS || decodeHyundai || decodeGree || decodeGree_YAC || decodeFuego || decodeToshiba || decodeNibe || decodeAirwell || decodeHitachi || decodeSamsung || decodeBallu || decodeAUX || decodeZHLT01remote )

now I don't know if is correct for the sketch, I'm not a 'professional' programmer, but now compile and I can get result when I try to decode IR. Seems that BEKO cmd can be decoded with selction '4' , now I try to send command and verify.

atlask1 commented 5 years ago

Please let me understand how to decode correctly. You wrte that 'H' and 'h' must be togheter and present one time in the code, right? I receive the correct Hh at the start of the signal, but always 'h' at the end. There's something wrong? I've tested all 5 mode and 4 and 5 seems similar and correct. I've noticed that has similar configuration, Header Mark is around 6200, Header Space around 7500 , BitMark around 460 , Zero Space around 480 and One Space around 1550. What have I to consider to save correct cmd and (maybe) contribute for other decoding ? thanks in advance!

atlask1 commented 5 years ago

My fault !! Sketch compile great, I have sketch in different folder than cpp file! now it's ok! I'm trying now to write a decoding for my BEKO...