Using MakeHex with the following "doctored" by doubling the repeat information information in the file NEC.irp provides the following code data for functions 0xC4 and 0xC5 (196 and 197 decimal respectively)
The repeat doubling is necessary to prevent PENG/PPENG from shortening the code.
[BEGIN contents of modified NEC.IRP]
Device=04
Function=0..255
Protocol=NEC
Frequency=38000
Time Base=564
One=1,-3
Zero=1,-1
Prefix=16,-8
Suffix=1,-78
R-Prefix=16,-4
R-Suffix=1,-174
Default S=~D
Form=*,D:8,~D:8,F:8,~F:8,_;*,_,
*,_[END contents of modified NEC.IRP]
If you run the above IRP file through MakeHex, you will get a text file named NEC.hex which contains all 256 (Functions 0-255) codes. Power On/Off are shown below.
Device Code: 4 Function: 196 (0xC4)
0000 006D 0022 0004 0157 00AC 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0689 0157 0056 0015 0E94 0157 0056 0015 0E94
Device Code: 4 Function: 197 (0xC5)
0000 006D 0022 0004 0157 00AC 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0689 0157 0056 0015 0E94 0157 0056 0015 0E94
As there are likely more codes that you will need (ie discrete inputs). You should be able to figure out what the decimal function numbers are from your PDF using Windows Calculator in scientific mode.
I'd highly recommend becoming familiar with both MakeHex and IRPanels. If you need a primer on IR Code formats, read Barry Gordon's User Document on Pronto Hex IR Formats. All 3 of these are available in the Pronto (Not Pronto NG) files section.
Lyndel
Last edited by Lyndel McGee
on January 6, 2006 15:47.