Gree AC Query

Everything related to protocols and IR codes
Post Reply
bcatalin
Posts: 2
Joined: Mon May 30, 2016 8:40 am

Re: Review of IR receivers for Air Conditioners

Post by bcatalin »

So from your message about the Gree AC looks like there is no possibility to make it work.

I am receiving the following string for the ON button and the decoded is on 32 bits but I've see that you are mentioning 35 bits.

Code: Select all

Encoding  : NEC
Code      : D0B0060A (32 bits)
Timing[73]: 
     +9050, -4450     + 750, -1600     + 750, -1600     + 750, - 550
     + 700, -1600     + 750, - 550     + 700, - 550     + 700, - 550
     + 700, - 550     + 700, -1600     + 750, - 550     + 700, -1600
     + 750, -1600     + 750, - 550     + 700, - 550     + 700, - 550
     + 700, - 550     + 700, - 550     + 700, - 550     + 700, - 550
     + 700, - 550     + 700, - 550     + 700, -1600     + 750, -1600
     + 750, - 550     + 700, - 550     + 700, - 550     + 700, - 550
     + 700, - 550     + 700, -1600     + 750, - 550     + 700, -1600
     + 750, - 550     + 700, - 550     + 700, -1600     + 750, - 550
     + 700
unsigned int  rawData[73] = {9050,4450, 750,1600, 750,1600, 750,550, 700,1600, 750,550, 700,550, 700,550, 700,550, 700,1600, 750,550, 700,1600, 750,1600, 750,550, 700,550, 700,550, 700,550, 700,550, 700,550, 700,550, 700,550, 700,550, 700,1600, 750,1600, 750,550, 700,550, 700,550, 700,550, 700,550, 700,1600, 750,550, 700,1600, 750,550, 700,550, 700,1600, 750,550, 700};  // NEC D0B0060A
unsigned int  data = 0xD0B0060A;
I'll check to capture again using the ISR this time, may be I get something different. Sending the above rawData, AC is not reacting at all. I've validated my setup (ESP8266 - IR using this code https://myesp8266.blogspot.ro/2015/12/e ... ntrol.html) by sending ON/OFF on a Panasonic TV
and is working fine.

Still not clear for me it the Gree ( is similar to Hitachi ???) data need to be transmitted multiple times ( like Sony) or for a period of time ( like the Panasonic).
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Gree AC Query

Post by AnalysIR »

Yes, I mported your signal into AnalysIR and it decodes as GREE35_67AC (35 bits), with a HEX value of 685803052

You should be able to send the signal using the automatically generated code below, via batch Export feature of AnalysIR.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : GREE35_67AC :  : 685803052 : 35 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit https://www.AnalysIR.com/ or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {9050,4450,750,1600,750,1600,750,550,700,1600,750,550,700,550,700,550,700,550,700,1600,750,550,700,1600,750,1600,750,550,700,550,700,550,700,550,700,550,700,550,700,550,700,550,700,550,700,1600,750,1600,750,550,700,550,700,550,700,550,700,550,700,1600,750,550,700,1600,750,550,700,550,700,1600,750,550,700}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: GREE35_67AC, Key:  

Here it is again, but with the timings corrected by AnalysIR.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : GREE35_67AC :  : 685803052 : 35 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit https://www.AnalysIR.com/ or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {9000,4500,600,1690,600,1690,600,600,600,1690,600,600,600,600,600,600,600,600,600,1690,600,600,600,1690,600,1690,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,1690,600,1690,600,600,600,600,600,600,600,600,600,600,600,1690,600,600,600,1690,600,600,600,600,600,1690,600,600,600}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: GREE35_67AC, Key:  
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Gree AC Query

Post by AnalysIR »

I am receiving the following string for the ON button and the decoded is on 32 bits but I've see that you are mentioning 35 bits.
That is an issue with IRremote.

We have posted a much better sketch on our blog for recording long AC signals.
Post Reply