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
3.01k stars 834 forks source link

no matching function for irRaw error #309

Closed Laventissi closed 7 years ago

Laventissi commented 7 years ago

Version/revison of the library used

latest version downloaded just today

Expected behavior

I edited the IRserver example to suit my needs, I am not great at coding but it's not working and I am getting an error.

"Hi, I am not very good at coding so please excuse my silly mistakes if there are any and help me fix them :D

I am using the example code of IRserver to make a simple web page to control my set top box and TV. When I recorded the codes the set top box ones came as 32 bit NEC and the TV ones as unknown 100 bit and 52 bit. I have tried making this code here, excuse the "samsung TV" part that I have commented in the code.

I do not know what is going wrong, I get the error "no matching function for call to 'IRsend::sendRaw(unsigned int[100], int, int)'". It's in the last part where I have the "else if" lines in void handleIr. I have tried using unsigned int, uint and also uint16_t but I always get the same type of error. Please help me fix it! Attached below is my code. Any tips and tricks appreciated.

And also the set top box codes that I put there also do not work, I have tried checking with my code receiver what code comes out and the code that comes out is totally different from the one I put in the sketch. "

Example code used

/*
 * IRremoteESP8266: IRServer - demonstrates sending IR codes controlled from a webserver
 * Version 0.2 June, 2017
 * Copyright 2015 Mark Szabo
 *
 * An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
 *
 * TL;DR: The IR LED needs to be driven by a transistor for a good result.
 *
 * Suggested circuit:
 *     https://github.com/markszabo/IRremoteESP8266/wiki#ir-sending
 *
 * Common mistakes & tips:
 *   * Don't just connect the IR LED directly to the pin, it won't
 *     have enough current to drive the IR LED effectively.
 *   * Make sure you have the IR LED polarity correct.
 *     See: https://learn.sparkfun.com/tutorials/polarity/diode-and-led-polarity
 *   * Typical digital camera/phones can be used to see if the IR LED is flashed.
 *     Replace the IR LED with a normal LED if you don't have a digital camera
 *     when debugging.
 *   * Avoid using the following pins unless you really know what you are doing:
 *     * Pin 0/D3: Can interfere with the boot/program mode & support circuits.
 *     * Pin 1/TX/TXD0: Any serial transmissions from the ESP8266 will interfere.
 *     * Pin 3/RX/RXD0: Any serial transmissions to the ESP8266 will interfere.
 *   * ESP-01 modules are tricky. We suggest you use a module with more GPIOs
 *     for your first time. e.g. ESP-12 etc.
 */
#ifndef UNIT_TEST
#include <Arduino.h>
#endif
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#include <WiFiClient.h>

const char* ssid = "._. 2.0";
const char* password = "rtkl12345";
MDNSResponder mdns;

ESP8266WebServer server(80);

IRsend irsend(4);  // An IR LED is controlled by GPIO pin 4 (D2)

void handleRoot() {
  server.send(200, "text/html",
              "<html>" 
                "<head><title>IR Control</title></head>" 
                "<h1>Nikai TV</h1>" 
                "<body>" 
                  "<p><a href=\"ir?nikaion\">ON/OFF</a></p>" 
                  "<p><a href=\"ir?nikaimute\">Mute</a></p>" 
                  "<p><a href=\"ir?nikaivup\">Vol +</a></p>" 
                  "<p><a href=\"ir?nikaivdn\">Vol -</a></p>" 
                "</body>"
                "<h1>Receiver</h1>" 
                "<body>" 
                  "<p><a href=\"ir?code=807F00FF\">ON/OFF</a></p>" 
                  "<p><a href=\"ir?code=807FC03F\">Mute</a></p>" 
                  "<p><a href=\"ir?code=807FE817\">Vol +</a></p>" 
                  "<p><a href=\"ir?code=807F28D7\">Vol -</a></p>" 
                  "<p><a href=\"ir?code=807FA857\">Ch +</a></p>" 
                  "<p><a href=\"ir?code=807F6897\">Ch -</a></p>" 
                "</body>" 
               /* "<h1>Samsung TV</h1>" \
                "<body>" \
                  "<p><a href=\"ir?code=E0E040BFE0E040BF\">ON/OFF</a></p>" \
                  "<p><a href=\"ir?code=E0E0F00FE0E0F00F\">Mute</a></p>" \
                  "<p><a href=\"ir?code=E0E0E01FE0E0E01F\">Vol +</a></p>" \
                  "<p><a href=\"ir?code=E0E0D02FE0E0D02F\">Vol -</a></p>" \
                  "<p><a href=\"ir?code=E0E0807FE0E0807F\">Source</a></p>" \
                  "<p><a href=\"ir?code=E0E006F9E0E006F9\">Up</a></p>" \
                  "<p><a href=\"ir?code=E0E08679E0E08679\">Down</a></p>" \
                  "<p><a href=\"ir?code=E0E0A659E0E0A659\">Left</a></p>" \
                  "<p><a href=\"ir?code=E0E046B9E0E046B9\">Right</a></p>" \
                  "<p><a href=\"ir?code=E0E016E9E0E016E9\">Select</a></p>" \
                  "<p><a href=\"ir?code=E0E058A7E0E058A7\">Menu</a></p>" \
                  "<p><a href=\"ir?code=E0E01AE5E0E01AE5\">Return</a></p>" \
                  "<p><a href=\"ir?code=E0E0B44BE0E0B44B\">Exit</a></p>" \
                "</body>" \*/
              "</html>");
}

void handleIr() {
  for (uint8_t i = 0; i < server.args(); i++) {
    if (server.argName(i) == "code") {
      uint32_t code = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendNEC(code, 32);
    }
    else if (server.argName(i) == "nikaion") {
      unsigned int nikonoff[100] = {-4060,-3918,-508,-2004,-508,-2002,-510,-2002,-508,-2004,-506,-1050,-508,-1048,-510,-2004,-508,-1048,-508,-2002,-510,-1050,-508,-2004,-510,-1048,-508,-1050,-508,-1048,-508,-1050,-508,-1050,-508,-2004,-508,-2002,-510,-1048,-508,-2004,-508,-1050,-506,-2004,-508,-1048,-510,-2002,-456,-8446,-3956,-3998,-508,-2004,-508,-2002,-508,-2004,-508,-1978,-532,-1050,-508,-1050,-508,-2002,-508,-1050,-508,-2004,-508,-1050,-508,-2002,-510,-1050,-508,-1050,-508,-1048,-508,-1050,-508,-1050,-508,-2002,-510,-2002,-508,-1050,-508,-2002,-510,-1050,-508,-2002,-508};
      irsend.sendRaw(nikonoff,100,38);
    }
    else if (server.argName(i) == "nikaimute") {
      unsigned int nikmute[100] = {-3980,-3996,-510,-2002,-508,-2004,-508,-2002,-510,-2002,-508,-1048,-508,-1050,-508,-2004,-508,-2002,-508,-2002,-508,-2002,-510,-2002,-508,-2004,-508,-1048,-510,-1048,-508,-1050,-508,-1048,-508,-2004,-508,-2004,-508,-1050,-508,-1050,-508,-1050,-508,-1048,-510,-1048,-508,-1050,-456,-8446,-3958,-3996,-508,-2002,-510,-2002,-508,-2004,-508,-2002,-508,-1048,-508,-1050,-508,-2002,-508,-2004,-508,-2002,-508,-2002,-508,-2004,-508,-2002,-508,-1048,-510,-1048,-508,-1048,-510,-1048,-510,-2002,-510,-2002,-510,-1048,-508,-1048,-510,-1048,-508,-1050,-510};
      irsend.sendRaw(nikmute,100,38);
    }
    else if (server.argName(i) == "nikaivup") {
      unsigned int nikvup[52] = {-3972,-4002,-504,-1982,-526,-2010,-502,-2010,-502,-2010,-500,-1056,-502,-1056,-502,-2010,-500,-1056,-502,-2010,-502,-2010,-500,-2010,-502,-2010,-502,-1056,-502,-1056,-502,-1056,-500,-1056,-502,-2010,-502,-2010,-500,-1056,-502,-2008,-502,-1054,-504,-1054,-504,-1054,-500,-1056,-450};
      irsend.sendRaw(nikvup,52,38);
    }
    else if (server.argName(i) == "nikaivdn") {
      unsigned int nikvdn[52] = {-3976,-3984,-522,-2004,-506,-2004,-508,-2004,-506,-2006,-506,-1052,-504,-1052,-504,-2006,-498,-1060,-506,-2004,-506,-2004,-508,-2004,-508,-1050,-508,-1050,-506,-1050,-508,-1050,-506,-1052,-506,-2004,-508,-2002,-508,-1050,-508,-2004,-508,-1048,-508,-1048,-510,-1050,-508,-2002,-456};
      irsend.sendRaw(nikvdn,52,38);
    }
  }
  handleRoot();
}

void handleNotFound() {
  String message = "File Not Found\n\n";
  message += "URI: ";
  message += server.uri();
  message += "\nMethod: ";
  message += (server.method() == HTTP_GET)?"GET":"POST";
  message += "\nArguments: ";
  message += server.args();
  message += "\n";
  for (uint8_t i = 0; i < server.args(); i++)
    message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
  server.send(404, "text/plain", message);
}

void setup(void) {
  irsend.begin();

  Serial.begin(115200);
  WiFi.begin(ssid, password);
  Serial.println("");

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());

  if (mdns.begin("esp8266", WiFi.localIP())) {
    Serial.println("MDNS responder started");
  }

  server.on("/", handleRoot);
  server.on("/ir", handleIr);

  server.on("/inline", [](){
    server.send(200, "text/plain", "this works as well");
  });

  server.onNotFound(handleNotFound);

  server.begin();
  Serial.println("HTTP server started");
}

void loop(void) {
  server.handleClient();
}

Also when I try checking what comes out when I try the set top box code from the web page this is all i get from all of them instead of the actual one I put in the code:

327327 (32 bits)
Raw (68): -8924 -4526 -536 -592 -536 -588 -536 -588 -534 -588 -536 -564 -558 -588 -534 -588 -536 -588 -534 -590 -536 -588 -536 -588 -536 -588 -534 -588 -534 -588 -536 -588 -536 -586 -536 -566 -556 -590 -534 -588 -536 -588 -536 -588 -536 -586 -536 -1708 -536 -1708 -536 -588 -536 -588 -536 -1708 -536 -588 -536 -588 -534 -1708 -536 -1708 -536 -1686 -558 
327327 (32 bits)
Raw (68): -8976 -4474 -558 -594 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -534 -590 -536 -588 -536 -588 -536 -588 -536 -588 -534 -588 -534 -590 -534 -586 -536 -588 -536 -566 -558 -588 -536 -590 -534 -588 -534 -588 -560 -1662 -558 -1706 -536 -588 -536 -588 -536 -1708 -536 -588 -534 -588 -536 -1708 -536 -1684 -560 -1708 -536 
327327 (32 bits)
Raw (68): -8974 -4510 -536 -592 -536 -588 -536 -588 -536 -588 -536 -590 -534 -588 -534 -588 -508 -618 -536 -588 -536 -586 -538 -586 -536 -586 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -588 -536 -1708 -536 -1708 -536 -588 -536 -588 -536 -1706 -536 -588 -536 -588 -536 -1708 -534 -1710 -536 -1710 -536 
327327 (32 bits)
Raw (68): -8930 -4522 -558 -592 -536 -588 -536 -588 -534 -588 -536 -588 -534 -588 -536 -588 -536 -588 -536 -590 -534 -566 -558 -588 -534 -588 -536 -588 -536 -586 -536 -588 -536 -590 -534 -588 -536 -588 -536 -588 -536 -586 -536 -588 -534 -588 -534 -1708 -536 -1708 -536 -590 -534 -588 -536 -1686 -558 -586 -536 -588 -536 -1706 -536 -1708 -536 -1708 -536 
327327 (32 bits)
Raw (68): -8948 -4536 -536 -592 -536 -588 -536 -590 -534 -588 -536 -590 -534 -588 -536 -564 -560 -588 -534 -588 -536 -588 -536 -588 -536 -588 -534 -590 -534 -588 -536 -588 -536 -588 -534 -588 -536 -566 -558 -588 -536 -588 -536 -588 -536 -588 -536 -1684 -558 -1708 -536 -588 -536 -588 -536 -1708 -536 -590 -534 -588 -536 -1708 -566 -1678 -536 -1712 -536 
327327 (32 bits)
Raw (68): -8978 -4496 -536 -592 -536 -588 -536 -588 -536 -588 -536 -564 -558 -588 -534 -588 -534 -588 -536 -588 -534 -588 -536 -566 -558 -588 -534 -588 -536 -588 -534 -588 -534 -588 -536 -588 -536 -588 -536 -590 -536 -588 -536 -588 -536 -588 -536 -1706 -536 -1710 -536 -566 -558 -588 -536 -1708 -536 -588 -536 -590 -534 -1706 -536 -1710 -534 -1708 -536 

Circuit diagram and hardware used (if applicable)

used the exact same circuit provided in the github

thanks for any help in advance and im sorry if there are silly mistakes and stupidity, I am not good in english or coding but any help and tips are appreciated

crankyoldgit commented 7 years ago

For starters, your code is odd/broken with how you are storing numbers. e.g.

    unsigned int nikonoff[100] = {-4060,-3918,-508,-2004,-508,-2002,-510,-2002,-508,-2004,-506,-1050,-508,-1048,-510,-2004,-508,-1048,-508,-2002,-510,-1050,-508,-2004,-510,-1048,-508,-1050,-508,-1048,-508,-1050,-508,-1050,-508,-2004,-508,-2002,-510,-1048,-508,-2004,-508,-1050,-506,-2004,-508,-1048,-510,-2002,-456,-8446,-3956,-3998,-508,-2004,-508,-2002,-508,-2004,-508,-1978,-532,-1050,-508,-1050,-508,-2002,-508,-1050,-508,-2004,-508,-1050,-508,-2002,-510,-1050,-508,-1050,-508,-1048,-508,-1050,-508,-1050,-508,-2002,-510,-2002,-508,-1050,-508,-2002,-510,-1050,-508,-2002,-508};

unsigned means the number(s) are >= 0. i.e. positive. You are using negative numbers, which can only be stored in a 'signed' int. i.e. no, u or unsigned. (Technical aside: It's actually more complicated than that, as a negative number will be stored as a two's complement.) Anyway, the upshot is, your number won't be the number you think it is. Use positive numbers only.

so change your code for example, to:

      uint16_t nikonoff[100] = {4060,3918,508,2004,508,2002,510,2002,508,2004,506,1050,508,1048,510,2004,508,1048,508,2002,510,1050,508,2004,510,1048,508,1050,508,1048,508,1050,508,1050,508,2004,508,2002,510,1048,508,2004,508,1050,506,2004,508,1048,510,2002,456,8446,3956,3998,508,2004,508,2002,508,2004,508,1978,532,1050,508,1050,508,2002,508,1050,508,2004,508,1050,508,2002,510,1050,508,1050,508,1048,508,1050,508,1050,508,2002,510,2002,508,1050,508,2002,510,1050,508,2002,508};

See also the example for sending raw codes in https://github.com/markszabo/IRremoteESP8266/blob/master/examples/IRsendDemo/IRsendDemo.ino#39

FYI, Typical Samsung TV codes are 32 bits. Your code seems to be storing them as 64 bit. It is unlikely that they are 64bit codes. e.g. Your code: code=E0E0A659E0E0A659 should probably be: code=E0E0A659 Note: your version(s) is effectively the code repeated, in a way.

Hope that helps you some.

crankyoldgit commented 7 years ago

Btw, what brand/make/model is your set top box? We might be able to build a set of send/decode routines for it as it looks like a fairly simple protocol.

Laventissi commented 7 years ago

Thank you so much for the very quick reply! I really appreciate your help, I have also tried int because I know that they are not supposed to be unsigned but that didn't work. I will try removing the negatives and replacing them with same number but positive, also thanks for letting me know about the samsung code, I think I should've bought the Vishay IR receiver instead of the one I got as I've heard this one is not accurate. The brand of my set top box is Startrack and model number I think SR 9090PLUS(thats whats written on the front). I also have an A/C remote that I tried reading the IR codes from but one click sends 2-3 different IR codes at the same time and repeating it doesn't give any results that are consistent so I am not able to find out an average, any idea for that? The AC brand is Eurostar, remote model GZ-1002A-E3. Thanks very much once again and I will try your suggested changes right now! :)

Laventissi commented 7 years ago

The IR reciever I have is the VS1838B by the way.

Laventissi commented 7 years ago

I haven't tried the nikai tv yet since I am not around it, I have tried fixing the samsungs code and trying it though.. It doesn't work, when I used the IR reciever to check the code thats coming out all I get is "00" and some other stuff and the codes dont match.

crankyoldgit commented 7 years ago

Note: Your code has/uses: irsend.sendNEC(code, 32); You probably want to use irsend.sendSAMSUNG(code, 32);

Btw, how are you obtaining (capturing) the codes? Can you give us an example of a capture from the dumpv2 program for the samsung remote code?

Laventissi commented 7 years ago

I have tried the nikai TV today, no luck.. it doesn't work. :(

I will change the samsung one now, thanks.

I am obtaining the codes using dumpv2, here are the codes for the remotes:

Reciever:
ON/OFF(NEC) - 807F00FF
    Raw (68): -8992 -4518 -532 -1726 -530 -590 -530 -592 -530 -590 -532 -590 -530 -590 -530 -590 -530 -596 -530 -590 -558 -1698 -532 -1726 -530 -1726 -530 -1724 -532 -1726 -530 -1726 -530 -1732 -532 -590 -530 -590 -532 -590 -532 -590 -530 -590 -530 -590 -530 -590 -558 -568 -530 -1726 -530 -1726 -530 -1726 -532 -1724 -532 -1724 -532 -1724 -530 -1702 -554 -1730 -530 

Mute(NEC) - 807FC03F
    Raw (68): -9022 -4490 -560 -1696 -560 -560 -560 -560 -560 -560 -560 -560 -562 -560 -560 -560 -560 -566 -560 -560 -562 -1696 -560 -1696 -560 -1696 -562 -1696 -560 -1696 -560 -1696 -560 -1702 -560 -1696 -562 -1694 -562 -560 -560 -560 -562 -560 -560 -560 -560 -560 -562 -564 -560 -560 -562 -558 -562 -1694 -562 -1694 -562 -1694 -562 -1694 -562 -1694 -562 -1700 -562 

Ch + (NEC) - 807FA857
    Raw (68): -8992 -4518 -530 -1726 -530 -590 -530 -590 -532 -590 -530 -590 -530 -590 -530 -590 -530 -596 -532 -590 -530 -1724 -532 -1726 -530 -1726 -530 -1726 -530 -1726 -530 -1724 -532 -1732 -530 -1726 -530 -590 -530 -1728 -530 -590 -530 -1726 -532 -590 -530 -590 -530 -596 -530 -590 -530 -1726 -530 -590 -530 -1724 -532 -566 -552 -1726 -530 -1726 -532 -1728 -530 

Ch - (NEC) - 807F6897
    Raw (68): -8990 -4518 -530 -1726 -530 -590 -532 -590 -530 -590 -530 -590 -530 -590 -530 -590 -530 -598 -530 -590 -530 -1724 -532 -1724 -530 -1726 -530 -1726 -532 -1724 -530 -1726 -530 -1732 -530 -590 -530 -1726 -530 -1724 -530 -590 -532 -1726 -530 -590 -532 -590 -530 -596 -530 -1726 -530 -590 -530 -592 -530 -1726 -530 -590 -530 -1726 -530 -1726 -530 -1730 -530 

Vol + (NEC) - 807FE817
    Raw (68): -8990 -4498 -554 -1724 -532 -590 -530 -590 -530 -590 -530 -590 -532 -590 -530 -590 -532 -596 -532 -588 -532 -1726 -530 -1724 -532 -1724 -532 -1724 -532 -1724 -532 -1724 -530 -1732 -532 -1724 -532 -1724 -530 -1724 -532 -588 -532 -1724 -530 -566 -556 -590 -530 -594 -532 -588 -532 -568 -552 -588 -532 -1724 -532 -588 -532 -1724 -532 -1724 -530 -1730 -530 

Vol - (NEC) - 807F28D7
    Raw (68): -8992 -4516 -532 -1724 -534 -588 -532 -588 -532 -588 -532 -586 -534 -588 -532 -588 -534 -594 -534 -562 -556 -1724 -532 -1722 -534 -1724 -532 -1722 -532 -1722 -534 -1722 -534 -1730 -532 -586 -534 -588 -532 -1724 -534 -586 -534 -1722 -534 -588 -532 -588 -532 -594 -534 -1724 -532 -1722 -532 -588 -534 -1722 -532 -588 -532 -1724 -532 -1724 -534 -1726 -534 

1 (NEC) - 807F807F
    Raw (68): -8994 -4494 -554 -1724 -530 -588 -532 -588 -532 -588 -532 -588 -532 -588 -532 -590 -530 -596 -532 -588 -532 -1722 -532 -1724 -532 -1724 -534 -1722 -532 -1722 -532 -1724 -532 -1732 -532 -1724 -530 -588 -532 -590 -530 -588 -532 -588 -532 -588 -532 -588 -532 -594 -532 -588 -532 -1724 -532 -1724 -532 -1724 -532 -1724 -532 -1724 -536 -1698 -556 -1728 -534 

2 (NEC) - 807F40BF
    Raw (68): -8994 -4516 -536 -1722 -532 -588 -534 -588 -534 -586 -534 -586 -534 -586 -534 -588 -532 -594 -532 -588 -534 -1722 -534 -1722 -532 -1724 -534 -1722 -532 -1724 -534 -1700 -556 -1730 -534 -586 -536 -1720 -534 -586 -534 -586 -534 -586 -534 -586 -534 -586 -534 -592 -532 -1724 -532 -588 -532 -1722 -534 -1722 -534 -1722 -534 -1722 -534 -1722 -532 -1728 -534 

3 (NEC) - 807F609F
    Raw (68): -8992 -4514 -534 -1722 -536 -586 -534 -588 -534 -588 -532 -586 -534 -586 -534 -586 -534 -594 -534 -586 -532 -1724 -534 -1722 -534 -1722 -532 -1722 -534 -1722 -534 -1722 -536 -1728 -534 -586 -534 -1722 -532 -1726 -532 -586 -534 -586 -536 -586 -536 -584 -536 -592 -532 -1722 -536 -586 -534 -586 -534 -1722 -532 -1722 -534 -1720 -534 -1722 -534 -1726 -534 

4 (NEC) - 807F20DF
    Raw (68): -8994 -4516 -534 -1722 -534 -586 -534 -586 -534 -586 -534 -586 -534 -586 -534 -586 -534 -592 -534 -586 -534 -1722 -536 -1722 -534 -1722 -534 -1722 -534 -1722 -534 -1720 -536 -1726 -534 -588 -534 -586 -534 -1722 -532 -588 -534 -586 -534 -586 -534 -588 -532 -592 -534 -1722 -534 -1722 -536 -586 -534 -1722 -534 -1720 -536 -1722 -534 -1722 -532 -1726 -534 

5 (NEC) - 807FA05F
    Raw (68): -8994 -4492 -558 -1698 -556 -588 -532 -588 -534 -586 -532 -588 -534 -586 -534 -586 -534 -592 -536 -586 -532 -1722 -536 -1720 -534 -1722 -534 -1720 -534 -1722 -534 -1722 -534 -1728 -534 -1722 -534 -586 -534 -1722 -534 -586 -534 -564 -556 -586 -534 -586 -534 -590 -534 -586 -534 -1722 -532 -588 -534 -1722 -534 -1720 -534 -1700 -556 -1722 -534 -1726 -534 

6 (NEC) - 807FE01F
    Raw (68): -8996 -4514 -534 -1722 -534 -586 -534 -586 -534 -586 -534 -586 -534 -564 -558 -586 -534 -594 -534 -586 -532 -1724 -534 -1722 -534 -1722 -534 -1722 -534 -1722 -534 -1722 -534 -1728 -534 -1722 -534 -1700 -556 -1722 -534 -586 -534 -586 -534 -586 -534 -586 -534 -592 -534 -586 -534 -588 -532 -586 -534 -1722 -534 -1722 -532 -1722 -534 -1720 -534 -1726 -534 

7 (NEC) - 807F10EF
    Raw (68): -8992 -4494 -558 -1722 -534 -588 -534 -586 -534 -586 -534 -584 -536 -586 -534 -588 -534 -592 -534 -586 -536 -1722 -532 -1722 -536 -1722 -534 -1722 -534 -1722 -534 -1722 -534 -1728 -534 -586 -534 -586 -534 -586 -534 -1722 -534 -586 -534 -586 -534 -586 -534 -590 -534 -1722 -534 -1722 -534 -1722 -534 -586 -534 -1722 -534 -1722 -534 -1722 -534 -1726 -534 

8 (NEC) - 807F50AF
    Raw (68): -8992 -4516 -536 -1720 -536 -586 -532 -586 -534 -586 -534 -586 -534 -586 -536 -584 -536 -592 -534 -586 -534 -1722 -534 -1722 -534 -1722 -534 -1722 -536 -1720 -534 -1722 -534 -1728 -534 -588 -534 -1722 -534 -586 -536 -1720 -534 -586 -534 -586 -534 -586 -534 -592 -534 -1722 -534 -586 -534 -1720 -536 -586 -532 -1724 -532 -1722 -534 -1722 -534 -1726 -534 

9 (NEC) - 807FD02F
    Raw (68): -8994 -4514 -534 -1722 -534 -586 -534 -564 -556 -586 -534 -586 -534 -586 -534 -586 -534 -592 -536 -584 -534 -1722 -534 -1722 -534 -1722 -534 -1722 -536 -1720 -536 -1720 -536 -1728 -534 -1722 -534 -1722 -532 -588 -534 -1720 -534 -586 -534 -588 -532 -586 -534 -594 -534 -586 -534 -586 -536 -1720 -534 -586 -534 -1722 -534 -1720 -534 -1722 -534 -1726 -534 

0 (NEC) - 807F708F
    Raw (68): -9018 -4468 -556 -1722 -534 -586 -532 -588 -532 -586 -534 -586 -534 -586 -534 -586 -534 -594 -534 -588 -534 -1722 -534 -1722 -534 -1722 -534 -1722 -534 -1720 -534 -1722 -534 -1728 -534 -588 -532 -1722 -534 -1722 -534 -1722 -534 -588 -532 -586 -534 -586 -534 -592 -534 -1722 -534 -586 -534 -586 -534 -586 -536 -1720 -536 -1720 -534 -1722 -534 -1726 -534 

NIKAI TV
ON/OFF - 
Raw (100): -4060 -3918 -508 -2004 -508 -2002 -510 -2002 -508 -2004 -506 -1050 -508 -1048 -510 -2004 -508 -1048 -508 -2002 -510 -1050 -508 -2004 -510 -1048 -508 -1050 -508 -1048 -508 -1050 -508 -1050 -508 -2004 -508 -2002 -510 -1048 -508 -2004 -508 -1050 -506 -2004 -508 -1048 -510 -2002 -456 -8446 -3956 -3998 -508 -2004 -508 -2002 -508 -2004 -508 -1978 -532 -1050 -508 -1050 -508 -2002 -508 -1050 -508 -2004 -508 -1050 -508 -2002 -510 -1050 -508 -1050 -508 -1048 -508 -1050 -508 -1050 -508 -2002 -510 -2002 -508 -1050 -508 -2002 -510 -1050 -508 -2002 -508 

MUTE -
Raw (100): -3980 -3996 -510 -2002 -508 -2004 -508 -2002 -510 -2002 -508 -1048 -508 -1050 -508 -2004 -508 -2002 -508 -2002 -508 -2002 -510 -2002 -508 -2004 -508 -1048 -510 -1048 -508 -1050 -508 -1048 -508 -2004 -508 -2004 -508 -1050 -508 -1050 -508 -1050 -508 -1048 -510 -1048 -508 -1050 -456 -8446 -3958 -3996 -508 -2002 -510 -2002 -508 -2004 -508 -2002 -508 -1048 -508 -1050 -508 -2002 -508 -2004 -508 -2002 -508 -2002 -508 -2004 -508 -2002 -508 -1048 -510 -1048 -508 -1048 -510 -1048 -510 -2002 -510 -2002 -510 -1048 -508 -1048 -510 -1048 -508 -1050 -510 

Vol + -
Raw (52): -3972 -4002 -504 -1982 -526 -2010 -502 -2010 -502 -2010 -500 -1056 -502 -1056 -502 -2010 -500 -1056 -502 -2010 -502 -2010 -500 -2010 -502 -2010 -502 -1056 -502 -1056 -502 -1056 -500 -1056 -502 -2010 -502 -2010 -500 -1056 -502 -2008 -502 -1054 -504 -1054 -504 -1054 -500 -1056 -450 

Vol - -
Raw (52): -3976 -3984 -522 -2004 -506 -2004 -508 -2004 -506 -2006 -506 -1052 -504 -1052 -504 -2006 -498 -1060 -506 -2004 -506 -2004 -508 -2004 -508 -1050 -508 -1050 -506 -1050 -508 -1050 -506 -1052 -506 -2004 -508 -2002 -508 -1050 -508 -2004 -508 -1048 -508 -1048 -510 -1050 -508 -2002 -456 

SAMSUNG TV
ON/OFF-

E0E040BFE0E040BF (32 bits)
Raw (68): -4500 -4562 -510 -1736 -510 -1736 -510 -1710 -534 -610 -510 -612 -510 -612 -510 -612 -510 -612 -510 -1710 -534 -1734 -512 -1736 -510 -612 -510 -612 -512 -610 -512 -612 -510 -610 -510 -612 -512 -1734 -510 -612 -510 -612 -510 -612 -512 -610 -512 -610 -512 -612 -510 -1734 -510 -612 -510 -1734 -512 -1734 -510 -1736 -510 -1734 -510 -1736 -510 -1712 -532 

MUTE-

E0E0F00FE0E0F00F (32 bits)
Raw (68): -4500 -4538 -534 -1734 -510 -1732 -512 -1734 -510 -612 -510 -610 -512 -610 -512 -610 -510 -610 -510 -1734 -510 -1734 -510 -1734 -510 -612 -510 -612 -510 -588 -534 -612 -510 -612 -510 -1734 -512 -1734 -510 -1734 -510 -1734 -512 -610 -512 -612 -510 -612 -510 -610 -512 -610 -510 -612 -510 -610 -512 -610 -512 -1734 -510 -1734 -512 -1734 -510 -1734 -512 
Laventissi commented 7 years ago

In the nikai TV remote I get unknown encoding of I think 100 bits and 52 bits so I didn't save those numbers and saved just raw because I thought I wont be able to use those

crankyoldgit commented 7 years ago

Just checking, the nikai code, is that the star track device?

On Tue., 3 Oct. 2017, 3:01 pm Laventissi, notifications@github.com wrote:

In the nikai TV remote I get unknown encoding of I think 100 bits and 52 bits so I didn't save those numbers and saved just raw because I thought I wont be able to use those

β€” You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/markszabo/IRremoteESP8266/issues/309#issuecomment-333739560, or mute the thread https://github.com/notifications/unsubscribe-auth/AMInDB_ZhpMe7-6DhsrPzMuAyPeYNWAEks5sob-mgaJpZM4Pp8kP .

crankyoldgit commented 7 years ago

I'm asking as I'm developing the code to send/decode it (the 100 long code)

On Tue., 3 Oct. 2017, 3:32 pm David Conran, david@xyzzy.com.au wrote:

Just checking, the nikai code, is that the star track device?

On Tue., 3 Oct. 2017, 3:01 pm Laventissi, notifications@github.com wrote:

In the nikai TV remote I get unknown encoding of I think 100 bits and 52 bits so I didn't save those numbers and saved just raw because I thought I wont be able to use those

β€” You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/markszabo/IRremoteESP8266/issues/309#issuecomment-333739560, or mute the thread https://github.com/notifications/unsubscribe-auth/AMInDB_ZhpMe7-6DhsrPzMuAyPeYNWAEks5sob-mgaJpZM4Pp8kP .

crankyoldgit commented 7 years ago

@Laventissi If you care to download and try the new StarTrack branch, it should decode & send the codes you've labled as NIKAI TV.

Let me know how you go etc, so I can include it officially in the library.

Laventissi commented 7 years ago

The Nikai TV is not the set top box, it is a TV and the branding is Nikai.. it's a pretty old LCD TV I have.

The Star Track device is labelled as "receiver". I will try the the startrack branch you made but I am not sure what to do/how to use it.. Sorry, I am new to github.. thanks :)

Laventissi commented 7 years ago

I have also tried using sendsamsung as you suggested, not working, I checked the code that comes out with my IR reciever and all buttons show this;

D7BAA9C4Unknown encoding: D7BAA9C4 (34 bits)
Raw (68): -4494 -4516 -562 -566 -562 -562 -562 -562 -562 -560 -562 -562 -562 -560 -562 -562 -562 -562 -562 -562 -562 -562 -562 -562 -562 -560 -562 -560 -564 -560 -564 -562 -562 -562 -562 -562 -562 -562 -562 -560 -562 -560 -562 -562 -562 -562 -562 -562 -562 -562 -562 -562 -562 -560 -564 -562 -562 -560 -562 -560 -564 -562 -562 -562 -564 -568 -564 
D7BAA9C4Unknown encoding: D7BAA9C4 (34 bits)
Raw (68): -4496 -4508 -564 -566 -562 -560 -564 -562 -562 -562 -564 -560 -564 -560 -562 -560 -564 -560 -562 -562 -562 -562 -564 -560 -562 -562 -562 -560 -564 -560 -562 -562 -562 -562 -562 -562 -564 -560 -562 -562 -562 -562 -564 -560 -562 -560 -564 -562 -560 -562 -562 -562 -562 -562 -564 -560 -564 -562 -562 -560 -562 -560 -564 -560 -562 -566 -562 
D7BAA9C4Unknown encoding: D7BAA9C4 (34 bits)
Raw (68): -4496 -4516 -564 -566 -562 -562 -564 -560 -564 -560 -578 -544 -564 -560 -562 -562 -562 -560 -562 -562 -562 -538 -584 -562 -562 -562 -564 -562 -560 -562 -562 -560 -562 -560 -562 -538 -584 -562 -562 -560 -562 -562 -562 -562 -562 -562 -562 -560 -562 -560 -562 -560 -562 -562 -562 -562 -564 -560 -562 -562 -562 -560 -562 -560 -562 -568 -562 
D7BAA9C4Unknown encoding: D7BAA9C4 (34 bits)
Raw (68): -4496 -4508 -564 -566 -562 -562 -562 -560 -562 -562 -562 -560 -562 -562 -562 -560 -564 -562 -562 -560 -564 -560 -564 -560 -562 -560 -562 -562 -562 -560 -564 -562 -562 -562 -562 -538 -586 -560 -562 -562 -562 -560 -562 -560 -562 -562 -562 -562 -564 -560 -564 -562 -562 -562 -562 -562 -562 -560 -562 -560 -562 -562 -562 -560 -562 -566 -564 
Laventissi commented 7 years ago

This is the way I have my circuit set up.. https://imgur.com/a/dEFAh I am using a 2n222 transistor and the LED I am using is a high power one, this one to be precise: https://www.aliexpress.com/item/10-Pieces-3W-LED-Light-Bulb-Lamp-IR-Infrared-940nm-1-2-1-4V-400mA-500mA/32819847514.html?spm=a2g0s.9042311.0.0.dywrdQ

crankyoldgit commented 7 years ago

I've renamed the branch and code to Nikai. i.e. https://github.com/markszabo/IRremoteESP8266/tree/Nikai

crankyoldgit commented 7 years ago

I'm a bit confused as to what program you are using that is giving you the aforementioned "Raw" output. That's not the output I expect from the dumpv2 program in our library. If it is, then there is a problem with it.

Can you please give me the complete (unedited) output of the dumpv2 program/sketch for the Samsung 'MUTE' button? i.e. It should NOT be in the format:

E0E0F00FE0E0F00F (32 bits) Raw (68): -4500 -4538 -534 -1734 -510 -1732 -512 -1734 -510 -612 -510 -610 -512 -610 -512 -610 -510 -610 -510 -1734 -510 -1734 -510 -1734 -510 -612 -510 -612 -510 -588 -534 -612 -510 -612 -510 -1734 -512 -1734 -510 -1734 -510 -1734 -512 -610 -512 -612 -510 -612 -510 -610 -512 -610 -510 -612 -510 -610 -512 -610 -512 -1734 -510 -1734 -512 -1734 -510 -1734 -512

It should look something like this if you are using the right program:

Encoding : UNKNOWN Code : 4A1B17EB (15 bits) Timing[30]: +1350, - 450 + 500, - 450 +1350, - 450 +1350, - 450 +1350, - 450 + 450, - 450 + 500, - 450 + 500, - 450 +1350, - 450 +1350, - 450 +1350, - 450 +1350, - 450 +1350, - 450 + 500, - 400 +1400, - 400 uint16_t rawData[30] = {1350,450, 500,450, 1350,450, 1350,450, 1350,450, 450,450, 500,450, 500,450, 1350,450, 1350,450, 1350,450, 1350,450, 1350,450, 500,400, 1400,400 }; // UNKNOWN 4A1B17EB

Laventissi commented 7 years ago

Hi, I have just realized I am not using dumpv2 but dump. I apologize for my immense stupidity, this is the code for the MUTE button on the Samsung Remote:

Encoding  : SAMSUNG
Code      : E0E0F00F (32 bits)
Timing[67]: 
   +  4526, -  4510,    +   560, -  1708,    +   538, -  1706,    +   538, -  1708, 
   +   538, -   582,    +   538, -   584,    +   538, -   584,    +   536, -   588, 
   +   534, -   586,    +   538, -  1706,    +   512, -  1710,    +   534, -  1734, 
   +   536, -   584,    +   538, -   584,    +   538, -   584,    +   512, -   588, 
   +   534, -   610,    +   536, -  1684,    +   536, -  1732,    +   538, -  1706, 
   +   538, -  1708,    +   538, -   584,    +   538, -   586,    +   510, -   610, 
   +   538, -   584,    +   538, -   584,    +   538, -   584,    +   512, -   610, 
   +   538, -   584,    +   536, -  1708,    +   538, -  1708,    +   536, -  1708, 
   +   538, -  1708,    +   512
uint16_t rawData[67] = {4526, 4510,  560, 1708,  538, 1706,  538, 1708,  538, 582,  538, 584,  538, 584,  536, 588,  534, 586,  538, 1706,  512, 1710,  534, 1734,  536, 584,  538, 584,  538, 584,  512, 588,  534, 610,  536, 1684,  536, 1732,  538, 1706,  538, 1708,  538, 584,  538, 586,  510, 610,  538, 584,  538, 584,  538, 584,  512, 610,  538, 584,  536, 1708,  538, 1708,  536, 1708,  538, 1708,  512};  // SAMSUNG E0E0F00F
uint32_t address = 0x7;
uint32_t command = 0xF;
uint64_t data = 0xE0E0F00F;

I will try getting all the codes with dumpv2 now and try using them again and let you know soon whether it works or not. Thanks!

Laventissi commented 7 years ago

When I record it with dumpv2, which code should I use? The one given as "Code :" or "uint32_t address" or the uint32_t command or uint64_t data? I know the unt16_t is for raw but what if it is encoding as samsung?

Laventissi commented 7 years ago

I have tried using uint64_t data with the code from there and changed uint32 to 64, also tried using uint32_t address and command using uint32 for samsung. I always get the same random code D97 something, is there something wrong with my code of sending the IR code?

crankyoldgit commented 7 years ago

For your purposes, you want to use the Code/data part.

Using your above decode, to re-send that same command, you would simply invoke it by: irsend.sendSAMSUNG(0xE0E0F00F);

You can technically call sendSAMSUNG() with anything from a uint8_t to a uint64_t for the first argument. However, 0xE0E0F00F is 32 bits long, so you need at least a uint32_t to store it. e.g.

uint32_t data = 0xE0E0F00F;

irsend.sendSAMSUNG(data);
Laventissi commented 7 years ago

Thank you very much! I have tried doing uin32 address and added the code with it like: "0x7E0E0F00F" This is working for me, is it correct/will it work or should I change it?

Also I am still not sure how to use the commit you made, do I just have to download the files and update them from the homepage of this github? Sorry :3

Laventissi commented 7 years ago

OK I have figured it out and downloaded the files again and replaced them.

I have tried using the Nikai remote to record codes and pressed the power on button only a few times and I get different results, I am not sure what to do after this, should I use the raw data from one of them to check it out or irsend.sendNikai that you made?

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[51]: 
   +  3982, -  3998,    +   508, -  2004,    +   508, -  2006,    +   506, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  1050,    +   506, -  2006, 
   +   506, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  1052,    +   506, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   510, -  2004,    +   456
uint16_t rawData[51] = {3982, 3998,  508, 2004,  508, 2006,  506, 2004,  508, 2004,  508, 1050,  508, 1050,  506, 2006,  506, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 1052,  506, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  510, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3982, -  3998,    +   508, -  2004,    +   508, -  2006,    +   506, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  1980, 
   +   530, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2006,    +   506, -  1052,    +   506, -  2006,    +   506, -  1052, 
   +   506, -  2004,    +   456, -  8448,    +  3958, -  3996,    +   510, -  2004, 
   +   508, -  2004,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  1050,    +   506, -  2004,    +   510, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   506, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1026, 
   +   506, -  2030,    +   508, -  1050,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3982, 3998,  508, 2004,  508, 2006,  506, 2004,  508, 2004,  508, 1050,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 1980,  530, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2006,  506, 1052,  506, 2006,  506, 1052,  506, 2004,  456, 8448,  3958, 3996,  510, 2004,  508, 2004,  508, 2004,  508, 2004,  508, 1050,  508, 1050,  506, 2004,  510, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  506, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1026,  506, 2030,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3982, -  3998,    +   508, -  2004,    +   506, -  2004,    +   508, -  2004, 
   +   508, -  2002,    +   508, -  1050,    +   508, -  1050,    +   506, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   510, -  1050,    +   506, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   506, -  2006,    +   506, -  2004,    +   484, -  1074, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456, -  8448,    +  3958, -  3998,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  2004,    +   510, -  2006,    +   504, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   506, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  1052,    +   506, -  1050,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   510, -  1050, 
   +   506, -  2006,    +   506, -  1050,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3982, 3998,  508, 2004,  506, 2004,  508, 2004,  508, 2002,  508, 1050,  508, 1050,  506, 2004,  508, 1050,  508, 2004,  510, 1050,  506, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  506, 2006,  506, 2004,  484, 1074,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456, 8448,  3958, 3998,  508, 2004,  508, 2004,  508, 2004,  510, 2006,  504, 1050,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  506, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1052,  506, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  510, 1050,  506, 2006,  506, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[51]: 
   +  3982, -  3998,    +   508, -  2004,    +   508, -  2004,    +   508, -  2004, 
   +   508, -  2004,    +   506, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1048,    +   508, -  2006,    +   506, -  1050,    +   506, -  2006, 
   +   508, -  1050,    +   510, -  1050,    +   508, -  1052,    +   506, -  1050, 
   +   508, -  1050,    +   508, -  2006,    +   508, -  2004,    +   508, -  1052, 
   +   506, -  2006,    +   508, -  1052,    +   506, -  2004,    +   508, -  1050, 
   +   508, -  1980,    +   456
uint16_t rawData[51] = {3982, 3998,  508, 2004,  508, 2004,  508, 2004,  508, 2004,  506, 1050,  508, 1050,  508, 2004,  508, 1048,  508, 2006,  506, 1050,  506, 2006,  508, 1050,  510, 1050,  508, 1052,  506, 1050,  508, 1050,  508, 2006,  508, 2004,  508, 1052,  506, 2006,  508, 1052,  506, 2004,  508, 1050,  508, 1980,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3982, -  3998,    +   508, -  2004,    +   508, -  2004,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   506, -  1052,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1028,    +   528, -  1052,    +   508, -  1052,    +   506, -  1052, 
   +   506, -  1050,    +   508, -  2006,    +   506, -  2002,    +   508, -  1050, 
   +   508, -  2004,    +   510, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456, -  8448,    +  3958, -  3996,    +   508, -  2004, 
   +   508, -  2002,    +   508, -  2004,    +   506, -  2006,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2006, 
   +   502, -  1056,    +   508, -  2006,    +   508, -  1050,    +   506, -  1050, 
   +   508, -  1050,    +   508, -  1052,    +   508, -  1050,    +   506, -  2006, 
   +   506, -  2006,    +   508, -  1050,    +   508, -  2006,    +   506, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3982, 3998,  508, 2004,  508, 2004,  508, 2004,  508, 2004,  508, 1050,  506, 1052,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1028,  528, 1052,  508, 1052,  506, 1052,  506, 1050,  508, 2006,  506, 2002,  508, 1050,  508, 2004,  510, 1050,  508, 2004,  508, 1050,  508, 2004,  456, 8448,  3958, 3996,  508, 2004,  508, 2002,  508, 2004,  506, 2006,  508, 1050,  508, 1050,  508, 2004,  508, 1050,  508, 2006,  502, 1056,  508, 2006,  508, 1050,  506, 1050,  508, 1050,  508, 1052,  508, 1050,  506, 2006,  506, 2006,  508, 1050,  508, 2006,  506, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[51]: 
   +  3982, -  3998,    +   508, -  1982,    +   528, -  2006,    +   506, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   510, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  1028,    +   514, -  1068,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456
uint16_t rawData[51] = {3982, 3998,  508, 1982,  528, 2006,  506, 2004,  508, 2004,  508, 1050,  510, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 1028,  514, 1068,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3982, -  3998,    +   508, -  2002,    +   510, -  2002,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   506, -  2006,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   510, -  1048,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456, -  8448,    +  3958, -  3998,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   510, -  1048,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   510, -  2004,    +   506, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3982, 3998,  508, 2002,  510, 2002,  508, 2004,  508, 2004,  508, 1050,  508, 1050,  508, 2004,  508, 1050,  506, 2006,  508, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  510, 1048,  508, 2004,  508, 1050,  508, 2004,  456, 8448,  3958, 3998,  508, 2004,  508, 2004,  508, 2004,  508, 2004,  508, 1050,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  510, 1048,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  510, 2004,  506, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3980, -  3998,    +   508, -  2004,    +   508, -  2004,    +   508, -  2004, 
   +   506, -  2006,    +   506, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2006,    +   506, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456, -  8424,    +  3982, -  3998,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1052,    +   508, -  2004,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3980, 3998,  508, 2004,  508, 2004,  508, 2004,  506, 2006,  506, 1050,  508, 1050,  508, 2004,  508, 1050,  508, 2006,  506, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456, 8424,  3982, 3998,  508, 2004,  508, 2004,  508, 2004,  508, 2004,  508, 1050,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1052,  508, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[155]: 
   +  3982, -  3998,    +   508, -  2004,    +   510, -  2004,    +   508, -  2004, 
   +   510, -  2004,    +   508, -  1050,    +   508, -  1050,    +   506, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2006, 
   +   506, -  1050,    +   508, -  1050,    +   508, -  1050,    +   506, -  1052, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   510, -  1048, 
   +   508, -  2004,    +   508, -  1052,    +   506, -  2004,    +   508, -  1050, 
   +   510, -  2004,    +   456, -  8448,    +  3958, -  3998,    +   508, -  2004, 
   +   508, -  2002,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  1052,    +   506, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   510, -  1050,    +   506, -  2004,    +   508, -  1050,    +   508, -  1026, 
   +   524, -  1060,    +   508, -  1050,    +   508, -  1052,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   506, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   456, -  8448, 
   +  3958, -  3998,    +   508, -  2004,    +   508, -  2004,    +   510, -  2004, 
   +   508, -  2006,    +   506, -  1052,    +   506, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   506, -  2004,    +   508, -  1050,    +   508, -  2006, 
   +   506, -  1050,    +   508, -  1052,    +   506, -  1050,    +   508, -  1024, 
   +   516, -  1068,    +   508, -  2006,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1048,    +   510, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456
uint16_t rawData[155] = {3982, 3998,  508, 2004,  510, 2004,  508, 2004,  510, 2004,  508, 1050,  508, 1050,  506, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2006,  506, 1050,  508, 1050,  508, 1050,  506, 1052,  508, 1050,  508, 2004,  508, 2004,  510, 1048,  508, 2004,  508, 1052,  506, 2004,  508, 1050,  510, 2004,  456, 8448,  3958, 3998,  508, 2004,  508, 2002,  508, 2004,  508, 2004,  508, 1050,  508, 1052,  506, 2004,  508, 1050,  508, 2004,  510, 1050,  506, 2004,  508, 1050,  508, 1026,  524, 1060,  508, 1050,  508, 1052,  508, 2004,  508, 2004,  508, 1050,  506, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456, 8448,  3958, 3998,  508, 2004,  508, 2004,  510, 2004,  508, 2006,  506, 1052,  506, 1050,  508, 2004,  508, 1050,  506, 2004,  508, 1050,  508, 2006,  506, 1050,  508, 1052,  506, 1050,  508, 1024,  516, 1068,  508, 2006,  508, 2004,  508, 1050,  508, 2004,  508, 1048,  510, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[51]: 
   +  3982, -  3998,    +   508, -  2004,    +   508, -  2004,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   506, -  1052,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2006, 
   +   506, -  1052,    +   506, -  1050,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1052, 
   +   506, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456
uint16_t rawData[51] = {3982, 3998,  508, 2004,  508, 2004,  508, 2004,  508, 2004,  508, 1050,  506, 1052,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2006,  506, 1052,  506, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1052,  506, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3984, -  4000,    +   506, -  2006,    +   506, -  2006,    +   508, -  2004, 
   +   508, -  2002,    +   508, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   510, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1048,    +   508, -  1026, 
   +   530, -  1052,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456, -  8448,    +  3958, -  3976,    +   530, -  2004, 
   +   508, -  2004,    +   506, -  2004,    +   510, -  2004,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1052,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   508, -  1050,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3984, 4000,  506, 2006,  506, 2006,  508, 2004,  508, 2002,  508, 1050,  508, 1050,  508, 2004,  510, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1048,  508, 1026,  530, 1052,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456, 8448,  3958, 3976,  530, 2004,  508, 2004,  506, 2004,  510, 2004,  508, 1050,  508, 1050,  508, 2004,  508, 1052,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[103]: 
   +  3982, -  3996,    +   510, -  2004,    +   508, -  2004,    +   508, -  2004, 
   +   508, -  1980,    +   532, -  1052,    +   506, -  1052,    +   508, -  2004, 
   +   508, -  1050,    +   506, -  2006,    +   508, -  1050,    +   510, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1052,    +   506, -  1050, 
   +   508, -  1052,    +   508, -  2004,    +   506, -  2004,    +   510, -  1052, 
   +   506, -  2004,    +   506, -  1052,    +   506, -  2006,    +   506, -  1052, 
   +   506, -  2004,    +   456, -  8448,    +  3958, -  3998,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  2006,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   506, -  2006, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1050,    +   510, -  1050, 
   +   508, -  1050,    +   506, -  1052,    +   506, -  1052,    +   506, -  2004, 
   +   508, -  2004,    +   508, -  1048,    +   508, -  2006,    +   508, -  1050, 
   +   508, -  2004,    +   506, -  1052,    +   508, -  2004,    +   456
uint16_t rawData[103] = {3982, 3996,  510, 2004,  508, 2004,  508, 2004,  508, 1980,  532, 1052,  506, 1052,  508, 2004,  508, 1050,  506, 2006,  508, 1050,  510, 2004,  508, 1050,  508, 1050,  508, 1052,  506, 1050,  508, 1052,  508, 2004,  506, 2004,  510, 1052,  506, 2004,  506, 1052,  506, 2006,  506, 1052,  506, 2004,  456, 8448,  3958, 3998,  508, 2004,  508, 2004,  508, 2006,  508, 2004,  508, 1050,  508, 1050,  508, 2004,  508, 1050,  506, 2006,  508, 1050,  508, 2004,  508, 1050,  510, 1050,  508, 1050,  506, 1052,  506, 1052,  506, 2004,  508, 2004,  508, 1048,  508, 2006,  508, 1050,  508, 2004,  506, 1052,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;

Encoding  : NIKAI
Code      : D5F2A (24 bits)
Timing[155]: 
   +  3982, -  3998,    +   508, -  2004,    +   508, -  1980,    +   532, -  2004, 
   +   508, -  2004,    +   506, -  1052,    +   508, -  1050,    +   508, -  2006, 
   +   508, -  1052,    +   506, -  2004,    +   506, -  1050,    +   510, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1052,    +   506, -  1028, 
   +   530, -  1050,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2006,    +   506, -  1052,    +   506, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456, -  8446,    +  3958, -  3998,    +   508, -  2004, 
   +   508, -  2004,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  1050,    +   506, -  2006,    +   506, -  1052,    +   506, -  2004, 
   +   508, -  1050,    +   508, -  2004,    +   508, -  1052,    +   506, -  1050, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1050,    +   506, -  1982, 
   +   530, -  2006,    +   506, -  1050,    +   508, -  2006,    +   508, -  1050, 
   +   508, -  2004,    +   506, -  1052,    +   508, -  2006,    +   454, -  8450, 
   +  3958, -  3974,    +   530, -  2006,    +   508, -  2004,    +   506, -  2006, 
   +   508, -  2006,    +   506, -  1050,    +   508, -  1050,    +   508, -  1978, 
   +   508, -  1052,    +   512, -  2024,    +   508, -  1050,    +   508, -  2004, 
   +   508, -  1050,    +   508, -  1050,    +   508, -  1052,    +   482, -  1078, 
   +   506, -  1052,    +   508, -  2004,    +   508, -  2004,    +   508, -  1050, 
   +   506, -  2004,    +   508, -  1050,    +   508, -  2004,    +   508, -  1050, 
   +   508, -  2004,    +   456
uint16_t rawData[155] = {3982, 3998,  508, 2004,  508, 1980,  532, 2004,  508, 2004,  506, 1052,  508, 1050,  508, 2006,  508, 1052,  506, 2004,  506, 1050,  510, 2004,  508, 1050,  508, 1050,  508, 1052,  506, 1028,  530, 1050,  508, 2004,  508, 2004,  508, 1050,  508, 2006,  506, 1052,  506, 2004,  508, 1050,  508, 2004,  456, 8446,  3958, 3998,  508, 2004,  508, 2004,  508, 2004,  508, 2004,  508, 1050,  508, 1050,  506, 2006,  506, 1052,  506, 2004,  508, 1050,  508, 2004,  508, 1052,  506, 1050,  508, 1050,  508, 1050,  508, 1050,  506, 1982,  530, 2006,  506, 1050,  508, 2006,  508, 1050,  508, 2004,  506, 1052,  508, 2006,  454, 8450,  3958, 3974,  530, 2006,  508, 2004,  506, 2006,  508, 2006,  506, 1050,  508, 1050,  508, 1978,  508, 1052,  512, 2024,  508, 1050,  508, 2004,  508, 1050,  508, 1050,  508, 1052,  482, 1078,  506, 1052,  508, 2004,  508, 2004,  508, 1050,  506, 2004,  508, 1050,  508, 2004,  508, 1050,  508, 2004,  456};  // NIKAI D5F2A
uint64_t data = 0xD5F2A;
Laventissi commented 7 years ago

I think there is something wrong with the IRServer code I made, since I tried the codes I found with dumpv2 and sendsamsung with the example of IRsend and all of them worked but when I try them with the IRServer edited one I made they all get the same result:

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4436, -  4570,    +   504, -   624,    +   504, -   618,    +   530, -   592, 
   +   532, -   592,    +   530, -   594,    +   530, -   594,    +   558, -   566, 
   +   504, -   618,    +   530, -   594,    +   530, -   592,    +   530, -   594, 
   +   532, -   590,    +   530, -   594,    +   532, -   594,    +   530, -   592, 
   +   504, -   618,    +   530, -   592,    +   504, -   620,    +   530, -   594, 
   +   530, -   594,    +   530, -   594,    +   532, -   592,    +   532, -   592, 
   +   528, -   594,    +   532, -   592,    +   506, -   618,    +   532, -   594, 
   +   530, -   592,    +   532, -   592,    +   530, -   592,    +   530, -   594, 
   +   532, -   590,    +   558
uint16_t rawData[67] = {4436, 4570,  504, 624,  504, 618,  530, 592,  532, 592,  530, 594,  530, 594,  558, 566,  504, 618,  530, 594,  530, 592,  530, 594,  532, 590,  530, 594,  532, 594,  530, 592,  504, 618,  530, 592,  504, 620,  530, 594,  530, 594,  530, 594,  532, 592,  532, 592,  528, 594,  532, 592,  506, 618,  532, 594,  530, 592,  532, 592,  530, 592,  530, 594,  532, 590,  558};  // UNKNOWN D7BAA9C4

any idea why this is happening?

EDIT: The Nikai TV and Set top box codes come correct but the samsung codes are not coming correct, I haven't tried them on the actual devices yet I just checked with my IR reciever.

NOTE: I have using irsend.sendNikai for the nikai ones.

Laventissi commented 7 years ago

Bad luck :( They return the same code when checked with IR receiver but when I try them on the actual device it doesn't work :'(

Laventissi commented 7 years ago

this is the new code

/*
 * IRremoteESP8266: IRServer - demonstrates sending IR codes controlled from a webserver
 * Version 0.2 June, 2017
 * Copyright 2015 Mark Szabo
 *
 * An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
 *
 * TL;DR: The IR LED needs to be driven by a transistor for a good result.
 *
 * Suggested circuit:
 *     https://github.com/markszabo/IRremoteESP8266/wiki#ir-sending
 *
 * Common mistakes & tips:
 *   * Don't just connect the IR LED directly to the pin, it won't
 *     have enough current to drive the IR LED effectively.
 *   * Make sure you have the IR LED polarity correct.
 *     See: https://learn.sparkfun.com/tutorials/polarity/diode-and-led-polarity
 *   * Typical digital camera/phones can be used to see if the IR LED is flashed.
 *     Replace the IR LED with a normal LED if you don't have a digital camera
 *     when debugging.
 *   * Avoid using the following pins unless you really know what you are doing:
 *     * Pin 0/D3: Can interfere with the boot/program mode & support circuits.
 *     * Pin 1/TX/TXD0: Any serial transmissions from the ESP8266 will interfere.
 *     * Pin 3/RX/RXD0: Any serial transmissions to the ESP8266 will interfere.
 *   * ESP-01 modules are tricky. We suggest you use a module with more GPIOs
 *     for your first time. e.g. ESP-12 etc.
 */
#ifndef UNIT_TEST
#include <Arduino.h>
#endif
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#include <WiFiClient.h>

const char* ssid = "._. 2ghz";
const char* password = "rtkl12345";
MDNSResponder mdns;

ESP8266WebServer server(80);

IRsend irsend(4);  // An IR LED is controlled by GPIO pin 4 (D2)

void handleRoot() {
  server.send(200, "text/html",
              "<html>" 
                "<head><title>IR Control</title></head>" 
                "<h1>Nikai TV</h1>" 
                "<body>" 
                  "<p><a href=\"ir?nikai=0xD5F2A\">ON/OFF</a></p>" 
                  "<p><a href=\"ir?nikai=0xC0F3F\">Mute</a></p>" 
                  "<p><a href=\"ir?nikai=0xD0F2F\">Vol +</a></p>" 
                  "<p><a href=\"ir?nikai=0xD1F2E\">Vol -</a></p>" 
                "</body>"
                "<h1>Receiver</h1>" 
                "<body>" 
                  "<p><a href=\"ir?code=0x1807F00FF\">ON/OFF</a></p>" 
                  "<p><a href=\"ir?code=0x1807FC03F\">Mute</a></p>" 
                  "<p><a href=\"ir?code=0x1807FE817\">Vol +</a></p>" 
                  "<p><a href=\"ir?code=0x1807F28D7\">Vol -</a></p>" 
                  "<p><a href=\"ir?code=0x1807FA857\">Ch +</a></p>" 
                  "<p><a href=\"ir?code=0x1807F6897\">Ch -</a></p>" 
                "</body>" 
                "<h1>Samsung TV</h1>" \
                "<body>" \
                  "<p><a href=\"ir?samsung=0x7E0E040BF\">ON/OFF</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E0F00F\">Mute</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E0E01F\">Vol +</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E0D02F\">Vol -</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E0807F\">Source</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E006F9\">Up</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E08679\">Down</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E0A659\">Left</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E046B9\">Right</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E016E9\">Select</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E058A7\">Menu</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E01AE5\">Return</a></p>" \
                  "<p><a href=\"ir?samsung=0x7E0E0B44B\">Exit</a></p>" \
                "</body>" \
              "</html>");
}

void handleIr() {
  for (uint8_t i = 0; i < server.args(); i++) {
    if (server.argName(i) == "code") {
      uint32_t code = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendNEC(code, 32);
    }
    else if (server.argName(i) == "samsung") {
      uint32_t samsung = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendSAMSUNG(samsung, 32);
    }
    else if (server.argName(i) == "nikai") {
      uint64_t nikai = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendNikai(nikai, 24);
    }
    /*else if (server.argName(i) == "nikaion") {
      uint16_t nikonoff[100] = {4060,3918,508,2004,508,2002,510,2002,508,2004,506,1050,508,1048,510,2004,508,1048,508,2002,510,1050,508,2004,510,1048,508,1050,508,1048,508,1050,508,1050,508,2004,508,2002,510,1048,508,2004,508,1050,506,2004,508,1048,510,2002,456,8446,3956,3998,508,2004,508,2002,508,2004,508,1978,532,1050,508,1050,508,2002,508,1050,508,2004,508,1050,508,2002,510,1050,508,1050,508,1048,508,1050,508,1050,508,2002,510,2002,508,1050,508,2002,510,1050,508,2002,508};
      irsend.sendRaw(nikonoff,100,38);
    }
    else if (server.argName(i) == "nikaimute") {
      uint16_t nikmute[100] = {3980,3996,510,2002,508,2004,508,2002,510,2002,508,1048,508,1050,508,2004,508,2002,508,2002,508,2002,510,2002,508,2004,508,1048,510,1048,508,1050,508,1048,508,2004,508,2004,508,1050,508,1050,508,1050,508,1048,510,1048,508,1050,456,8446,3958,3996,508,2002,510,2002,508,2004,508,2002,508,1048,508,1050,508,2002,508,2004,508,2002,508,2002,508,2004,508,2002,508,1048,510,1048,508,1048,510,1048,510,2002,510,2002,510,1048,508,1048,510,1048,508,1050,510};
      irsend.sendRaw(nikmute,100,38);
    }
    else if (server.argName(i) == "nikaivup") {
      uint16_t nikvup[52] = {3972,4002,504,1982,526,2010,502,2010,502,2010,500,1056,502,1056,502,2010,500,1056,502,2010,502,2010,500,2010,502,2010,502,1056,502,1056,502,1056,500,1056,502,2010,502,2010,500,1056,502,2008,502,1054,504,1054,504,1054,500,1056,450};
      irsend.sendRaw(nikvup,52,38);
    }
    else if (server.argName(i) == "nikaivdn") {
      uint16_t nikvdn[52] = {3976,3984,522,2004,506,2004,508,2004,506,2006,506,1052,504,1052,504,2006,498,1060,506,2004,506,2004,508,2004,508,1050,508,1050,506,1050,508,1050,506,1052,506,2004,508,2002,508,1050,508,2004,508,1048,508,1048,510,1050,508,2002,456};
      irsend.sendRaw(nikvdn,52,38);
    } */
  }
  handleRoot();
}

void handleNotFound() {
  String message = "File Not Found\n\n";
  message += "URI: ";
  message += server.uri();
  message += "\nMethod: ";
  message += (server.method() == HTTP_GET)?"GET":"POST";
  message += "\nArguments: ";
  message += server.args();
  message += "\n";
  for (uint8_t i = 0; i < server.args(); i++)
    message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
  server.send(404, "text/plain", message);
}

void setup(void) {
  irsend.begin();

  Serial.begin(115200);
  WiFi.begin(ssid, password);
  Serial.println("");

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());

  if (mdns.begin("esp8266", WiFi.localIP())) {
    Serial.println("MDNS responder started");
  }

  server.on("/", handleRoot);
  server.on("/ir", handleIr);

  server.on("/inline", [](){
    server.send(200, "text/plain", "this works as well");
  });

  server.onNotFound(handleNotFound);

  server.begin();
  Serial.println("HTTP server started");
}

void loop(void) {
  server.handleClient();
}
crankyoldgit commented 7 years ago

I agree, the last dump you reported looks 'corrupted'. It seems to be sending the same for each mark/space pair and the same for every bit of the code/IR message. Answering your earlier question, yes, you should almost always use the sendBlah() version rather than sendRaw() if you can get away with it.

crankyoldgit commented 7 years ago

Your code(s) for Samsung seem to have a leading '7' which probably shouldn't be there. e.g. 0x7E0E040BF should probably be 0xE0E040BF as 0x7E0E040BF is larger than 32 bits (technically 35, but probably 36 bits) Samsung codes are typically 32 bits long, thus 0xE0E040BF fits. (which your earlier capture of '0xE0E0F00F' (Mute) correctly recorded.)

Also, re-check your NEC(Receiver) codes in your code, they also appear to be 1 hex digit too long.

crankyoldgit commented 7 years ago

Question: Is your TV correctly responding to the codes generated by the library? That is, is the new Nikai sending code I've added for you working as expected?

crankyoldgit commented 7 years ago

Regarding your different dump lengths for the Nikai (D5F2A) dumps, What is happening there is this (Nikai) protocol can have a quite short gap between repeat(ed) messages. i.e. approx 8.5 milliseconds. By default, the dumpv2 program waits for at least 15 milliseconds of silence before it considers a capture is complete. Hence sometimes it is capturing multiple messages in a single capture. If you want to see for your self, look in capture dump in the raw data. See the ~8400-odd value, that's the gap between messages. You'll kind of see that the set of data to left of that value is then repeated approximately again, after that value.

Trusting the 'decode' value is probably safest.

Laventissi commented 7 years ago

Yes the irsend.sendNikai seems to be working but the code is not and it deosn't work with the TV. I have also tried removing the 7's from the samsung codes and done same for receiver codes since I added extra 1 there as per the uint32 address from the reading but I still get same results with some random DC---- code and it is in 34 bits.. I will try taking the codes again and using them.

Laventissi commented 7 years ago

I have tried again, now it is still the same thing with Samsung codes when I check with the IR receiver, the nikai tv and set top box(receiver) codes come as 0. I don't know what is going on :s

Laventissi commented 7 years ago

I have tried making a new code with the example code... Here is the code:

/*
 * IRremoteESP8266: IRServer - demonstrates sending IR codes controlled from a webserver
 * Version 0.2 June, 2017
 * Copyright 2015 Mark Szabo
 *
 * An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
 *
 * TL;DR: The IR LED needs to be driven by a transistor for a good result.
 *
 * Suggested circuit:
 *     https://github.com/markszabo/IRremoteESP8266/wiki#ir-sending
 *
 * Common mistakes & tips:
 *   * Don't just connect the IR LED directly to the pin, it won't
 *     have enough current to drive the IR LED effectively.
 *   * Make sure you have the IR LED polarity correct.
 *     See: https://learn.sparkfun.com/tutorials/polarity/diode-and-led-polarity
 *   * Typical digital camera/phones can be used to see if the IR LED is flashed.
 *     Replace the IR LED with a normal LED if you don't have a digital camera
 *     when debugging.
 *   * Avoid using the following pins unless you really know what you are doing:
 *     * Pin 0/D3: Can interfere with the boot/program mode & support circuits.
 *     * Pin 1/TX/TXD0: Any serial transmissions from the ESP8266 will interfere.
 *     * Pin 3/RX/RXD0: Any serial transmissions to the ESP8266 will interfere.
 *   * ESP-01 modules are tricky. We suggest you use a module with more GPIOs
 *     for your first time. e.g. ESP-12 etc.
 */
#ifndef UNIT_TEST
#include <Arduino.h>
#endif
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#include <WiFiClient.h>

const char* ssid = "._. 2ghz";
const char* password = "rtkl12345";
MDNSResponder mdns;

ESP8266WebServer server(80);

IRsend irsend(4);  // An IR LED is controlled by GPIO pin 4 (D2)

void handleRoot() {
  server.send(200, "text/html",
              "<html>" \
                "<head><title>ESP8266 Demo</title></head>" \
                "<body>" \
                  "<h1>Nikai TV</h1>" \
                  "<p><a href=\"ir?nikai=0xD5F2A\">ON/OFF</a></p>" \
                  "<p><a href=\"ir?nikai=0xC0F3F\">Mute</a></p>" \
                  "<p><a href=\"ir?nikai=0xD0F2F\">Vol Up</a></p>" \
                  "<p><a href=\"ir?nikai=0xD1F2E\">Vol Down</a></p>" \
                  "<h1>StarTrack</h1>" \
                  "<p><a href=\"ir?code=0x807F00FF\">ON/OFF</a></p>" \
                  "<p><a href=\"ir?code=0x807FC03F\">Mute</a></p>" \
                  "<p><a href=\"ir?code=0x807FE817\">Vol Up</a></p>" \
                  "<p><a href=\"ir?code=0x807F28D7\">Vol Down</a></p>" \
                  "<p><a href=\"ir?code=0x807FA857\">Ch Up</a></p>" \
                  "<p><a href=\"ir?code=0x807F6897\">Ch Down</a></p>" \
                  "<h1>Samsung</h1>" \
                  "<p><a href=\"ir?samsung=0xE0E040BF\">ON/OFF</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E0F00F\">Mute</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E0E01F\">Vol Up</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E0D02F\">Vol Down</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E0807F\">Source</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E058A7\">Menu</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E006F9\">Up</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E08679\">Down</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E0A659\">Left</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E046B9\">Right</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E016E9\">Select</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E01AE5\">Return</a></p>" \
                  "<p><a href=\"ir?samsung=0xE0E0B44B\">Exit</a></p>" \
                "</body>" \
              "</html>");
}

void handleIr() {
  for (uint8_t i = 0; i < server.args(); i++) {
    if (server.argName(i) == "code") {
      uint32_t code = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendNEC(code, 32);
    }
    else if (server.argName(i) == "samsung") {
      uint32_t samsung = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendSAMSUNG(samsung, 32);
    }
    else if (server.argName(i) == "nikai") {
      uint32_t nikai = strtoul(server.arg(i).c_str(), NULL, 10);
      irsend.sendNikai(nikai, 32);
    }
  }
  handleRoot();
}

void handleNotFound() {
  String message = "File Not Found\n\n";
  message += "URI: ";
  message += server.uri();
  message += "\nMethod: ";
  message += (server.method() == HTTP_GET)?"GET":"POST";
  message += "\nArguments: ";
  message += server.args();
  message += "\n";
  for (uint8_t i = 0; i < server.args(); i++)
    message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
  server.send(404, "text/plain", message);
}

void setup(void) {
  irsend.begin();

  Serial.begin(115200);
  WiFi.begin(ssid, password);
  Serial.println("");

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());

  if (mdns.begin("esp8266", WiFi.localIP())) {
    Serial.println("MDNS responder started");
  }

  server.on("/", handleRoot);
  server.on("/ir", handleIr);

  server.on("/inline", [](){
    server.send(200, "text/plain", "this works as well");
  });

  server.onNotFound(handleNotFound);

  server.begin();
  Serial.println("HTTP server started");
}

void loop(void) {
  server.handleClient();
}

Here are the values I get when I use my IR receiver to check what codes are coming from the IR Led I set up:

Nikai Codes, these are all 4 codes in order as I set them up in the webpage:

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  3990, -  4052,    +   480, -  2028,    +   480, -  2024,    +   480, -  2002, 
   +   502, -  2002,    +   500, -  2024,    +   480, -  2004,    +   500, -  2024, 
   +   480, -  2004,    +   500, -  2024,    +   478, -  2024,    +   480, -  2024, 
   +   480, -  2004,    +   500, -  2024,    +   480, -  2024,    +   480, -  2022, 
   +   480, -  2004,    +   500, -  2024,    +   478, -  2024,    +   480, -  2024, 
   +   478, -  2024,    +   482, -  2022,    +   480, -  2022,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2022, 
   +   482, -  2026,    +   480
uint16_t rawData[67] = {3990, 4052,  480, 2028,  480, 2024,  480, 2002,  502, 2002,  500, 2024,  480, 2004,  500, 2024,  480, 2004,  500, 2024,  478, 2024,  480, 2024,  480, 2004,  500, 2024,  480, 2024,  480, 2022,  480, 2004,  500, 2024,  478, 2024,  480, 2024,  478, 2024,  482, 2022,  480, 2022,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2022,  482, 2026,  480};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  3990, -  4056,    +   478, -  2030,    +   480, -  2024,    +   480, -  2022, 
   +   480, -  2024,    +   478, -  2024,    +   478, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   478, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   482, -  2022,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2022,    +   480, -  2004,    +   500, -  2024, 
   +   478, -  2024,    +   480, -  2024,    +   480, -  2024,    +   478, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2028,    +   480
uint16_t rawData[67] = {3990, 4056,  478, 2030,  480, 2024,  480, 2022,  480, 2024,  478, 2024,  478, 2024,  480, 2024,  480, 2024,  478, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  482, 2022,  480, 2024,  480, 2024,  480, 2022,  480, 2004,  500, 2024,  478, 2024,  480, 2024,  480, 2024,  478, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2028,  480};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  3990, -  4056,    +   480, -  2028,    +   478, -  2026,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2022, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2026,    +   478, -  2024, 
   +   480, -  2026,    +   478, -  2026,    +   480, -  2004,    +   500, -  2022, 
   +   482, -  2024,    +   478, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   478, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   478, -  2026,    +   480, -  2024,    +   478, -  2024,    +   478, -  2026, 
   +   478, -  2010,    +   500
uint16_t rawData[67] = {3990, 4056,  480, 2028,  478, 2026,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2022,  480, 2024,  480, 2024,  480, 2026,  478, 2024,  480, 2026,  478, 2026,  480, 2004,  500, 2022,  482, 2024,  478, 2024,  480, 2024,  480, 2024,  478, 2024,  480, 2024,  480, 2024,  480, 2024,  478, 2026,  480, 2024,  478, 2024,  478, 2026,  478, 2010,  500};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  3990, -  4056,    +   480, -  2028,    +   480, -  2024,    +   480, -  2024, 
   +   478, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   478, -  2024,    +   480, -  2026,    +   478, -  2024, 
   +   480, -  2022,    +   480, -  2026,    +   478, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   478, -  2024,    +   480, -  2024, 
   +   480, -  2024,    +   480, -  2024,    +   480, -  2024,    +   478, -  2026, 
   +   480, -  2028,    +   478
uint16_t rawData[67] = {3990, 4056,  480, 2028,  480, 2024,  480, 2024,  478, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  478, 2024,  480, 2026,  478, 2024,  480, 2022,  480, 2026,  478, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  478, 2024,  480, 2024,  480, 2024,  480, 2024,  480, 2024,  478, 2026,  480, 2028,  478};  // UNKNOWN D7BAA9C4

Star track codes, also in order:

Encoding  : NEC (non-strict)
Code      : 0 (32 bits)
Timing[67]: 
   +  8972, -  4522,    +   558, -   570,    +   556, -   568,    +   558, -   566, 
   +   558, -   566,    +   556, -   568,    +   556, -   566,    +   558, -   544, 
   +   578, -   566,    +   558, -   568,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   560, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   556, -   568,    +   556, -   546, 
   +   576, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558
uint16_t rawData[67] = {8972, 4522,  558, 570,  556, 568,  558, 566,  558, 566,  556, 568,  556, 566,  558, 544,  578, 566,  558, 568,  556, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  560, 566,  558, 566,  558, 566,  558, 566,  556, 568,  556, 546,  576, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 566,  558, 566,  558};  // NEC (non-strict) 0
uint64_t data = 0x0;

Encoding  : NEC (non-strict)
Code      : 0 (32 bits)
Timing[67]: 
   +  8970, -  4502,    +   578, -   570,    +   556, -   568,    +   558, -   566, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   556, -   566, 
   +   560, -   564,    +   556, -   570,    +   556, -   566,    +   556, -   566, 
   +   558, -   546,    +   578, -   564,    +   558, -   568,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   564,    +   558, -   566,    +   558, -   566,    +   558, -   568, 
   +   558, -   566,    +   556, -   566,    +   558, -   546,    +   576, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   568,    +   558, -   544, 
   +   580, -   566,    +   558
uint16_t rawData[67] = {8970, 4502,  578, 570,  556, 568,  558, 566,  558, 566,  556, 566,  558, 566,  556, 566,  560, 564,  556, 570,  556, 566,  556, 566,  558, 546,  578, 564,  558, 568,  558, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 564,  558, 566,  558, 566,  558, 568,  558, 566,  556, 566,  558, 546,  576, 566,  558, 566,  558, 566,  558, 568,  558, 544,  580, 566,  558};  // NEC (non-strict) 0
uint64_t data = 0x0;

Encoding  : NEC (non-strict)
Code      : 0 (32 bits)
Timing[67]: 
   +  8974, -  4496,    +   578, -   570,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   566,    +   558, -   564,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   562, -   542, 
   +   578, -   566,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   556, -   568,    +   556, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   568,    +   558
uint16_t rawData[67] = {8974, 4496,  578, 570,  558, 566,  558, 566,  556, 568,  556, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  562, 542,  578, 566,  558, 566,  556, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 566,  556, 568,  556, 566,  556, 566,  558, 566,  558, 568,  558};  // NEC (non-strict) 0
uint64_t data = 0x0;

Encoding  : NEC (non-strict)
Code      : 0 (32 bits)
Timing[67]: 
   +  8972, -  4522,    +   558, -   570,    +   558, -   566,    +   558, -   566, 
   +   556, -   566,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   556, -   566,    +   556, -   566,    +   556, -   568, 
   +   556, -   568,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   564,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   556, -   568,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   568, 
   +   556, -   566,    +   556
uint16_t rawData[67] = {8972, 4522,  558, 570,  558, 566,  558, 566,  556, 566,  558, 566,  556, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 564,  558, 566,  556, 566,  556, 566,  556, 568,  556, 568,  558, 566,  558, 566,  558, 566,  558, 564,  558, 566,  556, 566,  558, 566,  558, 566,  556, 568,  556, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 568,  556, 566,  556};  // NEC (non-strict) 0
uint64_t data = 0x0;

Encoding  : NEC (non-strict)
Code      : 0 (32 bits)
Timing[67]: 
   +  8974, -  4522,    +   558, -   570,    +   558, -   564,    +   560, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   564,    +   558, -   544,    +   578, -   564,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   568, 
   +   556, -   566,    +   558, -   566,    +   558, -   564,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   560, -   566,    +   558, -   566, 
   +   558, -   566,    +   556, -   566,    +   556, -   546,    +   578, -   564, 
   +   558, -   568,    +   556, -   568,    +   560, -   564,    +   558, -   566, 
   +   558, -   566,    +   556
uint16_t rawData[67] = {8974, 4522,  558, 570,  558, 564,  560, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 564,  558, 544,  578, 564,  558, 566,  558, 566,  558, 566,  558, 566,  556, 568,  556, 566,  558, 566,  558, 564,  558, 566,  558, 566,  558, 566,  560, 566,  558, 566,  558, 566,  556, 566,  556, 546,  578, 564,  558, 568,  556, 568,  560, 564,  558, 566,  558, 566,  556};  // NEC (non-strict) 0
uint64_t data = 0x0;

Encoding  : NEC (non-strict)
Code      : 0 (32 bits)
Timing[67]: 
   +  8972, -  4522,    +   560, -   570,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   556, -   548,    +   576, -   566, 
   +   558, -   568,    +   558, -   564,    +   560, -   564,    +   558, -   566, 
   +   558, -   564,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   568,    +   556, -   566,    +   558, -   566, 
   +   556, -   566,    +   556, -   566,    +   558, -   564,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   560, -   564,    +   558, -   566, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558
uint16_t rawData[67] = {8972, 4522,  560, 570,  558, 566,  558, 566,  558, 566,  558, 566,  556, 548,  576, 566,  558, 568,  558, 564,  560, 564,  558, 566,  558, 564,  556, 566,  558, 566,  558, 566,  558, 566,  558, 568,  556, 566,  558, 566,  556, 566,  556, 566,  558, 564,  558, 566,  558, 566,  558, 566,  560, 564,  558, 566,  558, 566,  556, 566,  558, 566,  558, 566,  558, 566,  558};  // NEC (non-strict) 0
uint64_t data = 0x0;

samsung codes in order again:

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4492, -  4520,    +   560, -   568,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   564,    +   558, -   566,    +   558, -   544, 
   +   578, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   556, -   546,    +   576, -   566, 
   +   556, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   556, -   566,    +   558, -   564,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   546, 
   +   576, -   568,    +   556, -   566,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   556
uint16_t rawData[67] = {4492, 4520,  560, 568,  558, 566,  558, 566,  558, 566,  558, 564,  558, 566,  558, 544,  578, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  556, 546,  576, 566,  556, 566,  558, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 546,  576, 568,  556, 566,  558, 566,  558, 564,  558, 566,  556};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4490, -  4522,    +   556, -   570,    +   558, -   568,    +   558, -   566, 
   +   558, -   566,    +   558, -   564,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   564,    +   558, -   564,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   548,    +   576, -   566,    +   558, -   566, 
   +   558, -   564,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   556, -   568,    +   558, -   568,    +   556, -   568,    +   558, -   566, 
   +   558, -   564,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558
uint16_t rawData[67] = {4490, 4522,  556, 570,  558, 568,  558, 566,  558, 566,  558, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 564,  558, 564,  558, 566,  558, 566,  558, 566,  558, 548,  576, 566,  558, 566,  558, 564,  558, 566,  556, 566,  558, 566,  556, 568,  558, 568,  556, 568,  558, 566,  558, 564,  558, 566,  556, 566,  558, 566,  558, 566,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4490, -  4500,    +   578, -   570,    +   558, -   566,    +   558, -   566, 
   +   560, -   544,    +   578, -   566,    +   558, -   568,    +   558, -   564, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   564,    +   556, -   566,    +   558, -   568, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   564,    +   558, -   566,    +   556, -   566,    +   560, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   564,    +   558
uint16_t rawData[67] = {4490, 4500,  578, 570,  558, 566,  558, 566,  560, 544,  578, 566,  558, 568,  558, 564,  558, 566,  558, 566,  558, 566,  558, 566,  556, 568,  556, 566,  558, 566,  558, 566,  558, 566,  558, 564,  556, 566,  558, 568,  558, 566,  556, 566,  558, 566,  558, 566,  558, 564,  558, 566,  556, 566,  560, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 564,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4488, -  4524,    +   558, -   570,    +   558, -   566,    +   556, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   568, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   544, 
   +   578, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   568,    +   558, -   564,    +   560, -   564, 
   +   558, -   564,    +   556, -   566,    +   560, -   566,    +   558, -   566, 
   +   556, -   568,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   560, -   564,    +   558
uint16_t rawData[67] = {4488, 4524,  558, 570,  558, 566,  556, 566,  558, 566,  558, 566,  558, 566,  556, 568,  558, 566,  558, 566,  558, 566,  558, 544,  578, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 568,  558, 564,  560, 564,  558, 564,  556, 566,  560, 566,  558, 566,  556, 568,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  560, 564,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4490, -  4518,    +   558, -   570,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   566,    +   560, -   564,    +   558, -   568,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   546, 
   +   576, -   566,    +   558, -   566,    +   558, -   564,    +   558, -   566, 
   +   556, -   568,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   566,    +   556, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   558
uint16_t rawData[67] = {4490, 4518,  558, 570,  558, 566,  558, 566,  558, 566,  556, 566,  558, 566,  556, 566,  558, 566,  560, 564,  558, 568,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 546,  576, 566,  558, 566,  558, 564,  558, 566,  556, 568,  558, 566,  558, 566,  558, 566,  556, 566,  556, 566,  556, 566,  558, 566,  558, 566,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4492, -  4520,    +   558, -   568,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   560, -   564,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   546,    +   578, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   558, -   566,    +   556, -   568,    +   558, -   566, 
   +   558, -   564,    +   558, -   566,    +   558, -   564,    +   560, -   564, 
   +   558, -   564,    +   556, -   566,    +   556, -   568,    +   558, -   566, 
   +   558, -   566,    +   560
uint16_t rawData[67] = {4492, 4520,  558, 568,  558, 566,  558, 564,  558, 566,  556, 566,  558, 566,  558, 566,  558, 566,  560, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 546,  578, 566,  558, 566,  558, 566,  558, 566,  558, 564,  558, 566,  558, 566,  556, 568,  558, 566,  558, 564,  558, 566,  558, 564,  560, 564,  558, 564,  556, 566,  556, 568,  558, 566,  558, 566,  560};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4490, -  4520,    +   538, -   592,    +   556, -   568,    +   558, -   566, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   556, -   568, 
   +   558, -   566,    +   556, -   568,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   558, -   566,    +   558, -   566,    +   556, -   568, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   544, 
   +   578, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   556, -   548,    +   576, -   564,    +   558, -   566, 
   +   558, -   566,    +   558
uint16_t rawData[67] = {4490, 4520,  538, 592,  556, 568,  558, 566,  558, 566,  556, 566,  558, 566,  556, 568,  558, 566,  556, 568,  558, 566,  558, 566,  556, 568,  556, 566,  558, 566,  558, 566,  556, 568,  558, 566,  558, 566,  556, 568,  558, 566,  558, 566,  558, 566,  558, 544,  578, 566,  558, 566,  558, 566,  558, 566,  556, 568,  556, 548,  576, 564,  558, 566,  558, 566,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4488, -  4502,    +   576, -   570,    +   560, -   566,    +   558, -   564, 
   +   558, -   564,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   566,    +   556, -   568,    +   556, -   566,    +   556, -   566, 
   +   556, -   566,    +   558, -   564,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   560, -   564,    +   558, -   564,    +   558, -   564, 
   +   558, -   566,    +   556, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   558, -   566,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   560, -   564,    +   558, -   566,    +   558, -   566, 
   +   558, -   568,    +   556
uint16_t rawData[67] = {4488, 4502,  576, 570,  560, 566,  558, 564,  558, 564,  558, 566,  558, 566,  558, 566,  556, 566,  556, 568,  556, 566,  556, 566,  556, 566,  558, 564,  558, 566,  558, 564,  558, 566,  560, 564,  558, 564,  558, 564,  558, 566,  556, 566,  558, 566,  558, 566,  556, 568,  558, 566,  558, 566,  558, 564,  558, 566,  560, 564,  558, 566,  558, 566,  558, 568,  556};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4492, -  4520,    +   558, -   570,    +   558, -   566,    +   558, -   546, 
   +   578, -   566,    +   558, -   564,    +   558, -   566,    +   558, -   566, 
   +   558, -   568,    +   556, -   568,    +   558, -   566,    +   558, -   566, 
   +   558, -   564,    +   556, -   568,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   560, -   544,    +   578, -   546,    +   580, -   564, 
   +   558, -   566,    +   558, -   566,    +   558, -   564,    +   558, -   568, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   556, -   566,    +   560, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558
uint16_t rawData[67] = {4492, 4520,  558, 570,  558, 566,  558, 546,  578, 566,  558, 564,  558, 566,  558, 566,  558, 568,  556, 568,  558, 566,  558, 566,  558, 564,  556, 568,  558, 566,  558, 566,  558, 566,  560, 544,  578, 546,  580, 564,  558, 566,  558, 566,  558, 564,  558, 568,  558, 566,  558, 566,  558, 566,  556, 566,  556, 566,  560, 566,  558, 566,  558, 566,  558, 566,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4490, -  4500,    +   580, -   568,    +   558, -   564,    +   558, -   564, 
   +   558, -   564,    +   560, -   566,    +   558, -   566,    +   558, -   544, 
   +   578, -   566,    +   556, -   566,    +   556, -   568,    +   558, -   564, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   564,    +   558, -   564,    +   558, -   564,    +   560, -   564, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   568,    +   556, -   566,    +   560, -   564,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   566,    +   556
uint16_t rawData[67] = {4490, 4500,  580, 568,  558, 564,  558, 564,  558, 564,  560, 566,  558, 566,  558, 544,  578, 566,  556, 566,  556, 568,  558, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 564,  558, 564,  558, 564,  560, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 568,  556, 566,  560, 564,  558, 566,  558, 566,  558, 566,  556, 566,  558, 566,  558, 566,  556};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4490, -  4522,    +   558, -   570,    +   558, -   566,    +   556, -   568, 
   +   558, -   566,    +   558, -   566,    +   558, -   564,    +   558, -   564, 
   +   558, -   564,    +   558, -   566,    +   558, -   566,    +   558, -   568, 
   +   558, -   566,    +   556, -   566,    +   556, -   566,    +   558, -   566, 
   +   558, -   564,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   566,    +   560, -   566, 
   +   558, -   566,    +   560, -   564,    +   558, -   566,    +   556, -   566, 
   +   560, -   564,    +   558
uint16_t rawData[67] = {4490, 4522,  558, 570,  558, 566,  556, 568,  558, 566,  558, 566,  558, 564,  558, 564,  558, 564,  558, 566,  558, 566,  558, 568,  558, 566,  556, 566,  556, 566,  558, 566,  558, 564,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  558, 566,  556, 566,  558, 566,  558, 566,  558, 566,  560, 566,  558, 566,  560, 564,  558, 566,  556, 566,  560, 564,  558};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4488, -  4524,    +   558, -   568,    +   558, -   566,    +   556, -   566, 
   +   558, -   566,    +   558, -   544,    +   578, -   566,    +   558, -   566, 
   +   558, -   566,    +   560, -   566,    +   558, -   564,    +   560, -   564, 
   +   558, -   566,    +   556, -   568,    +   558, -   568,    +   556, -   568, 
   +   558, -   566,    +   556, -   566,    +   558, -   564,    +   558, -   566, 
   +   558, -   564,    +   556, -   566,    +   560, -   566,    +   558, -   568, 
   +   558, -   564,    +   558, -   566,    +   558, -   566,    +   558, -   564, 
   +   558, -   566,    +   556, -   566,    +   556, -   566,    +   558, -   568, 
   +   558, -   566,    +   556
uint16_t rawData[67] = {4488, 4524,  558, 568,  558, 566,  556, 566,  558, 566,  558, 544,  578, 566,  558, 566,  558, 566,  560, 566,  558, 564,  560, 564,  558, 566,  556, 568,  558, 568,  556, 568,  558, 566,  556, 566,  558, 564,  558, 566,  558, 564,  556, 566,  560, 566,  558, 568,  558, 564,  558, 566,  558, 566,  558, 564,  558, 566,  556, 566,  556, 566,  558, 568,  558, 566,  556};  // UNKNOWN D7BAA9C4

Encoding  : UNKNOWN
Code      : D7BAA9C4 (34 bits)
Timing[67]: 
   +  4492, -  4520,    +   558, -   570,    +   558, -   566,    +   558, -   564, 
   +   558, -   564,    +   558, -   566,    +   556, -   568,    +   558, -   566, 
   +   556, -   568,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   558, -   566,    +   558, -   566,    +   558, -   568,    +   558, -   564, 
   +   558, -   566,    +   558, -   566,    +   558, -   564,    +   558, -   566, 
   +   556, -   566,    +   558, -   566,    +   558, -   568,    +   556, -   566, 
   +   558, -   568,    +   558, -   566,    +   558, -   566,    +   556, -   566, 
   +   560, -   564,    +   558, -   566,    +   558, -   566,    +   558, -   566, 
   +   556, -   568,    +   558
uint16_t rawData[67] = {4492, 4520,  558, 570,  558, 566,  558, 564,  558, 564,  558, 566,  556, 568,  558, 566,  556, 568,  558, 566,  558, 566,  556, 566,  558, 566,  558, 566,  558, 568,  558, 564,  558, 566,  558, 566,  558, 564,  558, 566,  556, 566,  558, 566,  558, 568,  556, 566,  558, 568,  558, 566,  558, 566,  556, 566,  560, 564,  558, 566,  558, 566,  558, 566,  556, 568,  558};  // UNKNOWN D7BAA9C4

Something seems to be wrong with my edit of the code? Or is it something wrong with the example code itself? I highly doubt something is wrong with the example code as I am inexperienced and I have probably messed up but I haven't really changed anything except for the web page design thing and added the "else if" arguments for the "code" "samsung" and "nikai" variables.

crankyoldgit commented 7 years ago

Yes, there are multiple things wrong with your 'code' and how you are using it. I don't use the server code much so I didn't notice it immediately.

First things first, the codes reported by the dumpv2 program are in Hexadecimal, the original 'server' example code expects them in Decimal.

You have some options, either convert the hex codes to dec (plenty of online calculators available etc if you don't know how to do it) and use them in your existing code, e.g. "<p><a href=\"ir?samsung=3772793023\">ON/OFF</a></p>" // Note: 3772793023 (dec) == E0E040BF (hex) == 0xE0E040BF (C-style hex literal)

or:

Change your code to look like: e.g. "<p><a href=\"ir?samsung=E0E040BF\">ON/OFF</a></p>" // Note: No leading "0x". That prefix is typically only for c/c++ literals. & uint32_t samsung = strtoul(server.arg(i).c_str(), NULL, 16); // Note: Base 16 (hex), not Base 10 (dec)

also: You are specifying the wrong bit size for Nikai. It is a 24 bit protocol. irsend.sendNikai(nikai, 24); // Note: 24 bits, not 32 or better still, remove the bit size for all the sendProtocol() routines and just use the default, like the following: irsend.sendNikai(nikai); The sendProtocol() routines with bit sizes (not array sizes) mostly default to the correct bit size for the protocol in use.

I'm going to strongly recommend you use start small & simple and use the IRSendDemo example code first to confirm if your captured codes are working as expected and have the desired effect. You should be able to plug in the hex codes from the dumpv2 program straight into that. e.g. sendSAMSUNG(0xE0E040BF); or sendNikai(0xD5F2A); etc.

Once you've got that sorted, you can work your way to getting it working on the 'server' code.

Laventissi commented 7 years ago

Thanks a lot @crankyoldgit ! That was the only issue so far with other things not working that I didn't change the default value for decimal..

Also thanks a lot for making that nikai encoding system for me! I have successfully made what I wanted to and it all works perfect, this issue post can be closed now :)

Thanks a lot once again! πŸ‘

crankyoldgit commented 7 years ago

So, can you please confirm that both sending and receiving nikai codes works? I.e. I can then mark it as working/tested in the code.

On Fri., 6 Oct. 2017, 12:34 am Laventissi, notifications@github.com wrote:

Thanks a lot @crankyoldgit https://github.com/crankyoldgit ! That was the only issue so far with other things not working that I didn't change the default value for decimal..

Also thanks a lot for making that nikai encoding system for me! I have successfully made what I wanted to and it all works perfect, this issue post can be closed now :)

Thanks a lot once again! πŸ‘

β€” You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/markszabo/IRremoteESP8266/issues/309#issuecomment-334483916, or mute the thread https://github.com/notifications/unsubscribe-auth/AMInDEdwpIF0AlN3-7b_vRyUizrGddlTks5spOjfgaJpZM4Pp8kP .

Laventissi commented 7 years ago

I am sorry for the late reply but yes the nikai codes work.

mohammadowais3701 commented 4 years ago

no matching function for call to 'IRsend::sendRaw(unsigned int [149], unsigned int, int&)' Kindly help me for this to solve this error `

include

include

define IR_SEND_PIN 4

IRsend irsend(IR_SEND_PIN); int khz=38; unsigned int ACoff[]={3026, 3044, 3032, 4304, 578, 1692, 550, 582, 550, 1706, 552, 712, 552, 580, 552, 1704, 552, 582, 552, 1838, 550, 582, 580, 566, 550, 582, 550, 714, 552, 582, 550, 582, 552, 582, 550, 714, 550, 582, 552, 582, 578, 1690, 552, 712, 552, 582, 550, 582, 550, 582, 550, 714, 550, 582, 552, 582, 550, 582, 578, 700, 550, 582, 550, 582, 550, 582, 550, 1838, 550, 582, 552, 580, 552, 582, 552, 712, 578, 568, 550, 582, 550, 582, 550, 714, 550, 1704, 552, 1706, 550, 582, 550, 714, 550, 582, 578, 566, 552, 582, 552, 712, 550, 582, 552, 580, 552, 1704, 552, 714, 550, 582, 552, 582, 578, 568, 550, 714, 552, 582, 552, 582, 550, 582, 550, 714, 550, 582, 552, 582, 552, 582, 578, 722, 552, 1706, 550, 582, 552, 1704, 552, 736, 552, 582, 550, 1704, 552, 1704, 552, 582, 580}; // UNKNOWN 9BB5B2B5 unsigned int ACon[]= {3032, 3046, 3028, 4304, 576, 1692, 552, 582, 550, 1706, 550, 714, 550, 582, 552, 1706, 550, 582, 552, 1836, 552, 582, 578, 568, 552, 580, 552, 714, 550, 582, 550, 582, 552, 582, 550, 1836, 552, 582, 550, 582, 578, 1692, 550, 712, 552, 582, 552, 582, 550, 582, 550, 714, 552, 582, 550, 582, 552, 582, 578, 700, 550, 582, 550, 582, 550, 582, 552, 1838, 550, 582, 552, 582, 552, 582, 550, 714, 578, 568, 550, 582, 550, 582, 550, 714, 552, 1706, 550, 1704, 550, 582, 552, 714, 550, 582, 578, 568, 550, 582, 550, 714, 552, 582, 550, 582, 550, 1706, 550, 714, 550, 582, 550, 582, 578, 568, 550, 714, 550, 582, 550, 582, 552, 582, 550, 714, 550, 582, 552, 582, 552, 582, 578, 722, 552, 1704, 552, 582, 550, 1706, 552, 736, 550, 584, 550, 1706, 550, 1706, 550, 1704, 578};// UNKNOWN 9BB5B2B5 unsigned int Temp16[]={3030, 3042, 3032, 4304, 576, 1694, 550, 582, 552, 1706, 550, 712, 552, 580, 552, 1706, 550, 582, 550, 1836, 550, 582, 578, 568, 552, 582, 552, 1834, 552, 582, 550, 1706, 552, 1706, 548, 714, 552, 580, 552, 582, 578, 1690, 552, 714, 550, 582, 552, 582, 550, 582, 552, 712, 550, 582, 550, 582, 552, 582, 578, 700, 550, 582, 552, 582, 552, 582, 550, 1836, 552, 582, 550, 584, 550, 582, 550, 712, 580, 568, 550, 582, 550, 584, 550, 712, 552, 1704, 552, 1704, 552, 580, 552, 714, 550, 582, 580, 566, 552, 580, 552, 712, 552, 582, 550, 582, 552, 1704, 552, 712, 552, 582, 550, 582, 580, 566, 552, 712, 552, 582, 552, 582, 550, 582, 550, 714, 550, 582, 550, 582, 550, 582, 578, 722, 550, 1706, 552, 582, 550, 1704, 552, 1860, 552, 1704, 552, 1704, 552, 582, 550, 582, 580}; // UNKNOWN F35ACDF0 unsigned int Temp17[] ={3030, 3042, 3032, 4306, 574, 1692, 550, 582, 550, 1704, 552, 712, 552, 582, 552, 1704, 550, 582, 550, 1836, 552, 582, 578, 568, 552, 1704, 552, 714, 550, 582, 550, 1706, 550, 1706, 552, 712, 550, 582, 552, 580, 578, 1688, 554, 712, 552, 582, 550, 582, 552, 582, 550, 714, 550, 582, 552, 582, 550, 582, 580, 698, 550, 582, 552, 582, 550, 582, 550, 1838, 552, 580, 550, 582, 550, 582, 552, 712, 580, 568, 550, 582, 550, 582, 552, 714, 550, 1704, 552, 1706, 552, 580, 552, 712, 550, 582, 578, 568, 550, 582, 550, 714, 550, 582, 552, 582, 550, 1704, 552, 714, 552, 582, 550, 582, 578, 568, 550, 714, 550, 582, 552, 582, 550, 582, 550, 714, 552, 582, 550, 582, 550, 582, 578, 722, 552, 1704, 552, 1706, 552, 582, 550, 738, 552, 1706, 552, 1706, 550, 582, 552, 582, 578}; // UNKNOWN 4046F041 unsigned int Temp18[] = {3030, 3070, 3004, 4304, 576, 1694, 552, 580, 550, 1706, 550, 714, 550, 582, 552, 1706, 550, 580, 552, 1836, 552, 582, 578, 568, 550, 1706, 550, 1838, 550, 580, 552, 1704, 552, 1706, 550, 712, 550, 582, 552, 582, 578, 1692, 552, 714, 550, 582, 550, 582, 550, 582, 552, 714, 550, 582, 550, 582, 550, 582, 578, 698, 552, 582, 550, 582, 550, 582, 552, 1836, 552, 580, 550, 584, 550, 582, 552, 712, 578, 568, 552, 582, 550, 582, 550, 712, 552, 1706, 554, 1702, 552, 580, 550, 714, 552, 582, 578, 568, 550, 582, 552, 712, 550, 582, 550, 582, 552, 1704, 554, 710, 552, 582, 552, 582, 578, 568, 552, 712, 552, 582, 550, 582, 552, 582, 550, 714, 550, 582, 550, 582, 550, 582, 580, 722, 550, 1704, 552, 1704, 552, 582, 550, 1862, 550, 1704, 552, 1704, 552, 582, 550, 582, 578}; // UNKNOWN 1575D184 unsigned int Temp19[] = {3030, 3046, 3028, 4306, 574, 1692, 552, 582, 550, 1706, 550, 714, 552, 582, 550, 1706, 552, 580, 552, 1836, 552, 582, 578, 1690, 552, 582, 550, 714, 550, 582, 550, 1706, 550, 1704, 552, 714, 550, 582, 550, 582, 580, 1690, 552, 712, 552, 582, 550, 582, 550, 582, 550, 714, 550, 582, 550, 582, 552, 582, 578, 698, 552, 582, 552, 582, 552, 582, 550, 1836, 552, 580, 552, 582, 552, 582, 550, 714, 578, 568, 550, 582, 550, 582, 550, 714, 550, 1706, 550, 1706, 550, 582, 552, 714, 550, 582, 580, 568, 550, 584, 550, 714, 550, 582, 550, 582, 550, 1704, 552, 712, 550, 582, 550, 582, 578, 568, 550, 714, 552, 582, 552, 582, 550, 582, 550, 714, 550, 582, 550, 582, 552, 582, 578, 724, 550, 1708, 550, 1704, 552, 1704, 552, 736, 552, 1704, 552, 1706, 550, 582, 550, 582, 578};//Change it for your remote unsigned int Temp20[] = {3030, 3044, 3030, 4304, 578, 1694, 550, 582, 552, 1708, 548, 714, 550, 582, 550, 1704, 552, 582, 550, 1838, 550, 582, 578, 1692, 550, 582, 550, 1836, 552, 582, 550, 1706, 550, 1704, 552, 712, 550, 582, 550, 582, 580, 1690, 552, 712, 552, 582, 552, 582, 550, 582, 552, 714, 550, 582, 550, 582, 550, 582, 578, 698, 552, 582, 550, 582, 550, 582, 552, 1836, 552, 582, 552, 582, 552, 580, 552, 714, 578, 568, 550, 582, 550, 582, 552, 712, 552, 1706, 550, 1704, 552, 582, 552, 712, 552, 582, 580, 566, 550, 582, 550, 714, 552, 582, 550, 582, 552, 1706, 550, 712, 552, 582, 550, 582, 578, 568, 552, 714, 550, 582, 552, 580, 552, 582, 550, 714, 550, 582, 552, 582, 550, 582, 580, 722, 550, 1706, 552, 1704, 552, 1706, 550, 1860, 550, 1704, 552, 1706, 550, 582, 550, 582, 578}; // UNKNOWN 3A9C4974 unsigned int Temp21[] ={3028, 3046, 3028, 4304, 576, 1694, 552, 582, 550, 1704, 552, 714, 550, 582, 552, 1704, 550, 582, 550, 1836, 552, 582, 578, 1690, 552, 1704, 552, 712, 550, 582, 550, 1706, 550, 1706, 552, 712, 550, 582, 552, 582, 578, 1690, 552, 714, 552, 580, 552, 582, 552, 582, 550, 712, 552, 582, 550, 582, 550, 582, 578, 698, 552, 582, 550, 584, 550, 582, 552, 1836, 550, 582, 550, 582, 550, 582, 550, 712, 578, 568, 550, 582, 550, 582, 550, 714, 552, 1706, 550, 1706, 552, 580, 550, 714, 550, 582, 580, 568, 550, 582, 550, 714, 550, 582, 550, 582, 550, 1706, 552, 712, 550, 582, 550, 582, 580, 568, 552, 712, 550, 584, 550, 582, 550, 584, 550, 712, 550, 582, 550, 582, 550, 582, 578, 722, 550, 582, 552, 580, 552, 582, 550, 738, 550, 1706, 550, 1704, 552, 582, 550, 582, 578}; // UNKNOWN 68B889BB unsigned int Temp22[] = {3030, 3044, 3032, 4306, 574, 1694, 550, 582, 550, 1706, 550, 714, 550, 582, 550, 1704, 552, 582, 550, 1836, 552, 582, 578, 1692, 550, 1706, 550, 1838, 552, 582, 550, 1706, 550, 1706, 550, 712, 552, 582, 550, 582, 578, 1692, 550, 712, 552, 582, 550, 582, 552, 582, 550, 714, 552, 580, 552, 582, 552, 580, 580, 698, 552, 582, 550, 584, 550, 582, 552, 1836, 552, 580, 552, 582, 552, 582, 550, 714, 578, 568, 550, 582, 550, 582, 550, 714, 552, 1706, 550, 1706, 550, 582, 550, 714, 550, 582, 578, 568, 550, 582, 552, 712, 552, 582, 550, 582, 552, 1706, 552, 712, 550, 582, 550, 582, 578, 568, 550, 714, 550, 582, 552, 582, 550, 582, 550, 714, 550, 582, 550, 584, 550, 582, 580, 722, 552, 582, 550, 582, 552, 580, 552, 1860, 554, 1704, 552, 1704, 552, 582, 550, 582, 578}; // UNKNOWN F3CDEEA unsigned int Temp23[] = {3030, 3044, 3030, 4304, 576, 1694, 550, 582, 550, 1704, 552, 714, 550, 582, 552, 1702, 552, 582, 550, 1836, 552, 1704, 578, 568, 550, 582, 552, 714, 550, 582, 552, 1704, 552, 1702, 552, 714, 550, 582, 550, 582, 578, 1690, 552, 714, 550, 582, 552, 582, 552, 582, 550, 714, 550, 584, 550, 582, 552, 582, 578, 700, 550, 582, 550, 582, 550, 582, 550, 1838, 550, 582, 550, 582, 550, 582, 550, 714, 578, 568, 550, 582, 552, 582, 552, 712, 552, 1704, 552, 1706, 550, 582, 550, 714, 552, 582, 578, 568, 552, 582, 550, 712, 552, 582, 550, 582, 552, 1706, 550, 712, 552, 582, 552, 582, 578, 568, 550, 714, 552, 582, 550, 582, 550, 582, 550, 714, 550, 582, 550, 582, 550, 582, 578, 722, 550, 582, 550, 582, 552, 1704, 552, 736, 552, 1706, 550, 1704, 552, 582, 550, 582, 580}; // UNKNOWN 74896B9A unsigned int Temp24[] ={3032, 3042, 3032, 4306, 574, 1694, 550, 582, 550, 1706, 552, 714, 550, 582, 550, 1706, 550, 582, 550, 1836, 552, 1704, 580, 568, 550, 582, 550, 1836, 552, 580, 552, 1706, 550, 1706, 550, 714, 550, 582, 550, 582, 580, 1690, 552, 714, 550, 582, 550, 582, 552, 582, 550, 714, 550, 582, 552, 582, 550, 582, 578, 700, 552, 582, 550, 582, 550, 582, 550, 1836, 552, 582, 550, 584, 550, 582, 550, 712, 578, 568, 550, 582, 552, 582, 550, 714, 552, 1706, 550, 1706, 550, 582, 550, 714, 550, 582, 578, 568, 550, 582, 550, 714, 550, 582, 552, 582, 550, 1704, 552, 714, 550, 582, 550, 582, 580, 568, 550, 714, 550, 582, 550, 582, 552, 580, 552, 714, 552, 582, 550, 582, 550, 582, 580, 722, 550, 582, 550, 582, 552, 1704, 552, 1860, 552, 1704, 552, 1702, 552, 582, 550, 582, 578}; // UNKNOWN F81A64E6 unsigned int Temp25[] = {3032, 3044, 3030, 4304, 578, 1692, 552, 580, 552, 1706, 552, 712, 550, 582, 552, 1704, 552, 582, 550, 1838, 550, 1704, 580, 568, 552, 1704, 552, 712, 550, 582, 550, 1706, 552, 1704, 550, 714, 552, 582, 550, 582, 578, 1692, 550, 714, 550, 582, 552, 580, 552, 582, 552, 712, 550, 582, 550, 582, 550, 582, 578, 698, 550, 582, 552, 582, 550, 582, 552, 1836, 552, 580, 552, 582, 552, 580, 552, 714, 578, 568, 550, 582, 552, 580, 552, 714, 550, 1706, 552, 1704, 552, 582, 550, 714, 550, 582, 578, 568, 550, 582, 550, 714, 552, 582, 550, 582, 552, 1706, 550, 712, 552, 582, 550, 582, 580, 566, 550, 714, 550, 582, 550, 582, 550, 582, 550, 712, 552, 582, 550, 582, 550, 582, 580, 722, 550, 582, 550, 1706, 550, 582, 552, 736, 552, 1704, 552, 1704, 552, 582, 552, 582, 578}; // UNKNOWN 3C198645 unsigned int Temp26[] ={3030, 3044, 3032, 4304, 576, 1694, 550, 582, 552, 1704, 552, 714, 550, 580, 552, 1706, 550, 582, 550, 1836, 552, 1704, 578, 568, 550, 1704, 552, 1838, 550, 582, 552, 1704, 550, 1704, 552, 714, 552, 580, 552, 582, 578, 1690, 550, 714, 552, 582, 550, 582, 552, 582, 550, 712, 552, 582, 550, 582, 552, 582, 578, 698, 552, 582, 550, 582, 550, 582, 550, 1838, 552, 580, 552, 582, 550, 582, 552, 714, 578, 568, 550, 582, 550, 582, 550, 714, 552, 1704, 552, 1706, 550, 582, 550, 714, 550, 582, 580, 566, 552, 582, 550, 714, 550, 582, 550, 582, 550, 1706, 550, 714, 550, 582, 550, 582, 578, 568, 550, 714, 552, 582, 550, 582, 550, 582, 552, 714, 550, 582, 550, 582, 550, 582, 578, 724, 550, 582, 550, 1706, 550, 582, 552, 1860, 550, 1704, 552, 1706, 550, 582, 552, 582, 578}; // UNKNOWN 11486788 unsigned int Temp27[] ={3032, 3046, 3028, 4306, 574, 1694, 550, 582, 550, 1706, 550, 714, 550, 582, 550, 1706, 550, 582, 552, 1836, 552, 1706, 578, 1690, 550, 582, 550, 714, 550, 584, 550, 1704, 552, 1706, 550, 714, 550, 582, 550, 582, 578, 1690, 550, 714, 550, 582, 550, 582, 550, 582, 550, 714, 550, 582, 552, 582, 550, 584, 578, 698, 550, 582, 550, 582, 550, 582, 552, 1836, 552, 582, 550, 582, 550, 582, 552, 712, 578, 568, 550, 582, 550, 582, 550, 714, 550, 1706, 552, 1704, 552, 582, 552, 714, 550, 582, 580, 568, 550, 582, 552, 714, 550, 582, 552, 582, 550, 1706, 550, 714, 550, 582, 550, 582, 578, 568, 550, 714, 550, 582, 550, 582, 550, 582, 550, 714, 550, 582, 552, 580, 552, 582, 578, 722, 552, 582, 550, 1706, 552, 1706, 548, 736, 552, 1706, 550, 1706, 550, 582, 550, 582, 578}; // UNKNOWN 2900475E unsigned int Temp28[] ={3032, 3044, 3030, 4304, 578, 1692, 550, 582, 552, 1704, 552, 712, 552, 582, 550, 1706, 552, 582, 550, 1836, 552, 1704, 578, 1692, 550, 582, 552, 1834, 554, 580, 550, 1706, 552, 1706, 550, 714, 552, 582, 550, 582, 578, 1688, 552, 714, 550, 582, 550, 582, 552, 582, 550, 714, 552, 582, 550, 584, 550, 582, 578, 698, 552, 582, 550, 582, 552, 582, 552, 1834, 554, 580, 552, 580, 552, 582, 550, 712, 580, 568, 550, 582, 550, 582, 550, 714, 550, 1706, 550, 1706, 550, 582, 550, 714, 550, 582, 578, 568, 552, 582, 550, 714, 550, 582, 550, 582, 552, 1704, 552, 712, 552, 582, 550, 582, 578, 568, 550, 714, 552, 582, 550, 582, 552, 582, 550, 714, 552, 582, 550, 582, 552, 582, 580, 722, 552, 580, 552, 1706, 552, 1704, 550, 1862, 550, 1704, 550, 1706, 550, 582, 552, 582, 580}; // UNKNOWN 357B0572 unsigned int Temp29[] = {3030, 3044, 3032, 4304, 578, 1692, 552, 582, 552, 1706, 550, 714, 550, 582, 550, 1704, 552, 582, 550, 1838, 550, 1704, 580, 1690, 550, 1706, 550, 712, 552, 582, 550, 1706, 550, 1706, 550, 714, 550, 582, 552, 580, 580, 1690, 550, 714, 550, 582, 552, 582, 550, 582, 552, 712, 550, 582, 552, 580, 552, 582, 578, 700, 550, 582, 552, 580, 552, 582, 550, 1836, 552, 582, 550, 582, 550, 582, 550, 714, 578, 568, 552, 582, 550, 582, 550, 712, 552, 1706, 550, 1704, 552, 582, 550, 714, 550, 582, 580, 566, 550, 582, 550, 714, 550, 582, 552, 582, 552, 1704, 552, 714, 550, 582, 550, 582, 578, 568, 550, 714, 550, 582, 550, 582, 552, 582, 550, 714, 550, 582, 550, 582, 550, 582, 578, 722, 552, 1706, 550, 580, 552, 582, 550, 738, 552, 1706, 550, 1704, 552, 582, 550, 582, 578}; // UNKNOWN 460B741F unsigned int Temp30[] = {3032, 3044, 3030, 4304, 576, 1694, 552, 582, 552, 1704, 550, 712, 552, 582, 552, 1704, 552, 582, 550, 1838, 550, 582, 578, 568, 550, 1706, 552, 712, 552, 582, 550, 582, 550, 1706, 550, 712, 552, 582, 550, 582, 578, 1690, 550, 714, 552, 580, 552, 582, 550, 582, 550, 714, 550, 582, 550, 582, 552, 582, 578, 698, 552, 582, 552, 582, 552, 1706, 550, 714, 552, 582, 550, 582, 552, 580, 552, 714, 578, 568, 550, 582, 552, 582, 550, 714, 550, 1706, 550, 1704, 552, 582, 550, 714, 550, 582, 580, 568, 550, 582, 550, 714, 550, 582, 550, 1706, 550, 582, 550, 714, 550, 582, 550, 582, 578, 568, 552, 714, 550, 582, 550, 582, 550, 582, 550, 712, 550, 582, 552, 580, 552, 582, 580, 722, 552, 1706, 550, 1704, 552, 1704, 552, 736, 552, 1704, 552, 582, 550, 584, 550, 1706, 578}; // UNKNOWN D8E205D1 //unsigned char ACoff[]= //unsigned char ACon[]={"0xD22E7E7"}; //unsigned char Temp16[]={"0xF35ACDF0"}; //unsigned char Temp17[]={""} void setup() {

irsend.begin(); }

void loop() { //On / irsend.sendHaierAC(ACon,72); delay(2000); irsend.sendHaierAC(Temp16,72); delay(2000); irsend.sendHaierAC(Temp16,72); delay(2000);/ / irsend.sendHaierAC(Temp17,72,38); delay(5000); irsend.sendHaierAC(ACoff,72,38); delay(5000);/

/ irsend.sendNEC(0xD22E7E78, 72); delay(2000); //16 irsend.sendNEC(0xF35ACDF0, 72); delay(2000); //17 irsend.sendNEC(0x4046F041, 72); delay(2000); //18 irsend.sendNEC(0x1575D184, 32); delay(2000); //19 irsend.sendNEC(0x5298AA30, 32); delay(2000); //20 irsend.sendNEC(0x3A9C4974, 32); delay(2000); //21 irsend.sendNEC(0x68B889BB, 32); delay(2000); //22 irsend.sendNEC(0xF3CDEEA, 32); delay(2000); //23 irsend.sendNEC(0x74896B9A, 32); delay(2000); //24 irsend.sendNEC(0xF81A64E6, 32); delay(2000); //25 irsend.sendNEC(0x3C198645, 32); delay(2000); //26 irsend.sendNEC(0x11486788, 32); delay(2000); //27 irsend.sendNEC(0x2900475E, 32); delay(2000); //28 irsend.sendNEC(0x357B0572, 32); delay(2000); //29 irsend.sendNEC(0x460B741F, 32); delay(2000); //30 irsend.sendNEC(0xD8E205D1, 32); delay(2000); //off irsend.sendNEC(0x9BB5B2B5, 72); delay(2000); /

delay(1000); irsend.sendRaw(ACon, sizeof(ACon) / sizeof(ACon[0]), khz); delay(2000); //Send Signal to Turn On the AC delay(2000);

  irsend.sendRaw(Temp17, sizeof(Temp17) / sizeof(Temp17[0]), khz);//Send Signal to Turn On the AC 

delay(2000); irsend.sendRaw(Temp18, sizeof(Temp18) / sizeof(Temp18[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp19, sizeof(Temp19) / sizeof(Temp19[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp20, sizeof(Temp20) / sizeof(Temp20[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp21, sizeof(Temp21) / sizeof(Temp21[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp22, sizeof(Temp22) / sizeof(Temp22[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp23, sizeof(Temp23) / sizeof(Temp23[0]), khz);//Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp24, sizeof(Temp24) / sizeof(Temp24[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp25, sizeof(Temp25) / sizeof(Temp25[0]), khz);//Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp26, sizeof(Temp26) / sizeof(Temp26[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp27, sizeof(Temp27) / sizeof(Temp27[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp28, sizeof(Temp28) / sizeof(Temp28[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp29, sizeof(Temp29) / sizeof(Temp29[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp30, sizeof(Temp30) / sizeof(Temp30[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(Temp16, sizeof(Temp16) / sizeof(Temp16[0]), khz); //Send Signal to Turn On the AC delay(2000); irsend.sendRaw(ACoff, sizeof(ACoff) / sizeof(ACoff[0]), khz); //Send Signal to Turn On the AC delay(2000);

`

crankyoldgit commented 4 years ago

@mohammadowais3701 Please don't hi-jack an existing/closed issue.

int khz=38;

uint16_t khz = 38;

Also you're verging on https://github.com/crankyoldgit/IRremoteESP8266/wiki/Frequently-Asked-Questions#i-want-to-change-the-example-code-to-make-it-do-something-different-but-i-dont-know-how-please-help-me