Your Universal Remote Control Center
RemoteCentral.com
Discrete Code Hunter Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 2 made on Monday August 30, 2010 at 18:29
3FG
Select Member
Joined:
Posts:
August 2009
1,861
Here's one way: Download IRTool.exe , and paste the Pronto Hex format into it.  Click Decode Hex.

Power Toggle in Pronto Hex format is:
0000 006d 0022 0003 00a9 00a8 0015 003f 0015 003f 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 003f 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 0702 00a9 00a8 0015 0015 0015 0e6e
These numbers are mostly time durations of on and off.

IRTool decodes the numbers as Device =7.7  and OBC (function code) = 2.  Ignore the EFC number.  The IR protocol is NECx2.

Using the DecodeIR.html document in the IRTool distribution, we see that NECx2 is arranged as Device.device+Function code+ complement of the function code  (see the "D:8,D:8,F:8,~F8" in the IRP notation?).  The next thing to understand is that LIRC sends the bits in reversed order to the way device and function numbers are expressed in IRTool.

So device 7 is
0000 0111    0x07  (Hexadecimal notation)
1110 0000    0xE0  (bit order reversed)

Function 2 is
0000 0010    0x02
0100 0000    0x40 (bit order reversed)
1011 1111    0xBF (complemented)

So D:D:F:~F is
E0E040BF    (This is the converted code)

The LIRC executor will convert these device and function numbers into durations according to the first part of the IRP specification "38.4k,564}<1,-1|1,-3>".   Of course other IR protocols will require a different procedure.


Hosting Services by ipHouse