Panasonic AC with Global Cache format
Posted: Tue Apr 03, 2018 9:09 pm
A user sent in the following support request:
I am having trouble with a new Panasonic AC unit. I have been trying for some time to get IR codes working with my Nodemcu. Previously I was using a different brand of aircon in my old apartment, it worked perfect. The new place I have the fans working but all the Panasonic Aircons dont work. I use GC codes in a test program as bellow
#include <Arduino.h>
#endif
#include <IRremoteESP8266.h>
#include <IRsend.h>
// Codes are in Global Cache format less the emitter ID and request ID.
// These codes can be found in GC's Control Tower database.
uint16_t fanOff[439] = {38000,1,1,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,48,16,16,48,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,48,16,16,48,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,48,16,16,48,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,48,16,16,48,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,26,38,48,16,16,48,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,48,16,16,48,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,48,16,16,48,16,48,16,958};
uint16_t fanLow[439] = {38000,1,1,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,25,40,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,48,16,16,48,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48};
uint16_t fanMed[439] = {38000,1,1,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,26,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,319,138,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,319,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,48,16,16,958};
uint16_t fanHi[439] = {38000,1,1,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,273,48,16,48,16,16,48,48,16,48,16,16,48,16,48,16,48,16,48,16,48,16,48,48,958};
uint16_t ACOn[439] = {38000,1,1,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,9,25,17,17,17,27,6,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,26,8,17,17,17,17,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,2940,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,17,17,50,17,17,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17};
uint16_t ACOff[439] = {38000,1,1,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,2939,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,17,17,50,17,50,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17};
uint16_t AC26[439] = {33000,1,1,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,9,25,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,2940,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,17,17,17,17,50,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17};
uint16_t AC27[439] = {38000,1,1,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,26,41,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,26,7,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,26,8,17,17,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,2940,135,67,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,50,17,17,17,17,17,50,17,50,17,50,17,17,17,17,17,17,17,50,17,50,17,17,17,50,17,50,17,17,17,17,17,17,17,17,17,17,17,17,17,17};
IRsend irsend(D2); // An IR LED is controlled by GPIO pin 4 (D2)
void setup() {
irsend.begin();
Serial.begin(115200);
}
void loop() {
Serial.println("Toggling power");
irsend.sendGC(AC26, 439);
irsend.sendRaw(raw,100,38);
delay(1000);
}
I will also attach a session log from AnalysIR, I would really appreciate your help, Thank you.