Convert Hex code to NEC IR Code 32 Bit

Hello my friend,

I Need help. I have IR Hex Code right these:
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689

For Turn ON Samsung TV.

But I need to convert to NEC IR Code 32 bit right these: 0x20DF33CC (this is LG NEC IR Code)

Can anyone help me please?

thank you so much

1 Like

I have IR Hex Code right these:
0000 006D

That's (invalid) octal.

Do you have a valid code?

or you have a NEC code for Samsung TV on and off?

Please help me

I have IR Hex Code right these:
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015

Please explain what those numbers mean, and how you obtained them. Also, read and follow the directions in the "How to use this forum" post.

Hi Ravipon, don't know if you worked this out but i was just looking for the same and came accross your mail, i worked out how to do this from Using IR Codes in Hex Format - Interfacing - Arduino Forum.

Basically starting at the seventh block (after the lead in) you'll see "0015 0015" (this is for a binary 0) or "0015 0040" (this is for a binary 1), do this till you have all 32 bits, the last numbers are a lead out.

So for the number you gave from the samsung side - that would read as hex e0e09966 - which i think is samsung "on"

Hope this helps