IR remote recieving raw data

Does anyone know way of displaying raw data which has been recieved? I am using irremote esp8266 library.

Yes, I do it on the monitor or LCD display. How you can do it I do not have a clue. You are using library, but what processor? What is sending the IR information? How are things connected; an annotated schematic would be a big help. Links to the technical information on the hardware items will help us help you.

Look into the library header file. Most probably you'll find a raw data array in the class whose content can be displayed.

I found solution thank you. But now I am facing with problem related to sending raw data.
Screenshot from 2023-08-10 13-26-33
this is what remote controller sent to reciever.

uint16_t power_on_winia[101] = { 169300, 84850, 10850, 30950, 10800, 30950, 10850, 10600, 10250, 10650, 10250, 30900, 10850, 10050, 10800, 31550, 10250, 30900, 10850, 30950, 10850, 10600, 10250, 10600, 10250, 10650, 10250, 31500, 10250, 10650, 10250, 10600, 10250, 10650, 10250, 31550, 10250, 10600, 10250, 10600, 10250, 31550, 10250, 31500, 10250, 10600, 10250, 31500, 10250, 10650, 10250, 10650, 10250, 31500, 10250, 31550, 10250, 31550, 10250, 10650, 10250, 10600, 10250, 10650, 10250, 10600, 10250, 31550, 10250, 10650, 10250, 31550, 10250, 10600, 10250, 10600, 10250, 10650, 10250, 10650, 10250, 10600, 10250, 10600, 10250, 10650, 10250, 31550, 10250, 10650, 10250, 10650, 10250, 10650, 10250, 31600, 10250, 31500, 10250 };

I saved it as above in my transmitter program.

  irsend.sendRaw(power_on_winia,101,38

);
    Serial.println("Sending power on");
    delay(200);

sending it like this


but it is being recieved as multiple ir package. and it is taking quite more time than usual transmission process. also LED light is not lighting once it is lighting 10 or 20 times without stopping.

These values are 100 times higher than what I know.

No known encoding detected?

then these values are wrong right? yes encoding type is unknown. What do you recommend?

for (int i = 1;  i < results.rawlen;  i++) {
    unsigned long  x = results.rawbuf[i] * 50U;
    if (!(i & 1)) {  // even
      Serial.print("-");
      if (x < 1000)  Serial.print(" ") ;
      if (x < 100)   Serial.print(" ") ;
      Serial.print(x, DEC);
    } else {  // odd
      Serial.print("     ");
      Serial.print("+");
      if (x < 1000)  Serial.print(" ") ;
      if (x < 100)   Serial.print(" ") ;
      Serial.print(x, DEC);
      if (i < results.rawlen-1) Serial.print(", "); //',' not needed for last one
    }

is there anything wrong ? what do you think? this function is converting recieved ir package to raw data

No.

The values used by the IRremote library are given in 50µs increments. No need to convert the rawbuf[] content.

for (int i = 1;  i < results.rawlen;  i++) {
    unsigned long  x = results.rawbuf[i] ;
    if (!(i & 1)) {  // even
      Serial.print("-");
      if (x < 1000)  Serial.print(" ") ;
      if (x < 100)   Serial.print(" ") ;
      Serial.print(x, DEC);
    } else {  // odd
      Serial.print("     ");
      Serial.print("+");
      if (x < 1000)  Serial.print(" ") ;
      if (x < 100)   Serial.print(" ") ;
      Serial.print(x, DEC);
      if (i < results.rawlen-1) Serial.print(", "); //',' not needed for last one
    }

Do you mean like this? just removing 50U enough? Do I need to change anything else?

For what purpose?

I mean. is there anything wrong?

If it compiles...

I don't know what you want to display, so nothing is wrong if you want it as is coded.

it is compiling. Thank you for your time

I am sorry but I have one more problem.
Remote controller is sending this raw data
Screenshot from 2023-08-10 16-17-08
My Ir transmitter is sending above package but reciever is recieving this one
Screenshot from 2023-08-10 16-17-44

Looks good, two lengths of about 210 and 630.

Looks very different. Times are about 290 and 840. Are your controllers so very different in clock frequency?

I am not sure what you are talking about? what is clock frequency?

Which boards did you use to obtain above tables?

reciever and sender both are wemos (esp2286) .

sorry second table is different


in previous image I have sent different table. and second table is different in each tranmission.

Each table should contain two distinct values, the duration of short and long pulses. These two values have to be almost the same for all tables. If they differ as widely as in your tables then something is very wrong with the timing of your board(s).