Your Universal Remote Control Center
RemoteCentral.com
Audio, Receivers & Speakers Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 27 made on Saturday October 28, 2017 at 03:32
Barf
Long Time Member
Joined:
Posts:
August 2013
350
To get a little guidance; the power toggle example above. NEC1 code given is
0x37CA, 0x0CF3

When I try to convert them to decimal, what do I input?
0x37
0x37ca
37
CA

First note that the "third byte" and the "forth byte" (0C and F3) sum up to 255, which is consistent with NEC1. Good news. The same way. the first and the second byte does NOT sum up to 255, which means that S should not be blank. So the natural guess would be

D = 0x37
S = 0xCA
F = 0x0C

(you type in the four characters "0x37", forget about translation to decimal.) Next guess is to bit-reverse these number (some communities (Lirc and Arduino IRremote for example) do not "like" the least-significant-bit-first notation that e.g. NEC1 is using). Bit-reversing 0x37 = 00110111 gives 11101100 = 0xEC (reading the bits in the opposite order). A good tool for computing this is the Hex calculator in IrScrutinizer (the row marked "LSB" gives the bit-reversed result). For the example

D = 0xEC
S = 0x53
F = 0x30


Hosting Services by ipHouse