Page 1 of 1
Convert a KM file to CCF in order to use it in irremote sw
Posted: Sun Nov 11, 2007 3:04 pm
by marcogt
hi all,
i searched all night long, but i do not managed to find a solution to my problem.
i find in the file databasse a km file which will probably works with my old device.
here it is the file :
http://www.hifi-remote.com/forums/dload ... ile_id=363
now, i leave in italy, and i'ts not so easy for me find a urc jp1 remote, also i will need it only for this device once (to set some parameters) and maybe no more.
i find a software solution that can help me saving money and time doing the role of the real urc remote: this is psiloc irremote which is a software that , installed on a nokia smartphone, will transform the phone into a real remote controller.
this sw uses ccf files to generate compatible files, there is a simply wizard here
http://irremote.psiloc.com/ in order to add as many remote as you want to your program.
Now my question, is there a way to convert this km file to ccf in order to send it to the irremote wizard?
i read about makehex but i do not really know how to preoceed.
Please let me know if someone can help....
thanks a lot.
Posted: Sun Nov 11, 2007 3:31 pm
by johnsfine
I opened that km file in RM for you, to extract the information you need for MakeHex.
It is RC5 protocol, device 7, so you need to edit rc5.irp to change the device to 7, then drag/drop rc5.irp onto makehex.exe, which will create rc5.hex.
You can use either Irpanels or hex2ccf to convert rc5.hex to a ccf file with numbered buttons.
Then I'm not sure what your irremote wizard does with that ccf file, but somewhere in that process you need to make use of the list quoted below (extracted from that km file) that tells the function name for each of the numbered buttons that have a function named in that km file (numbered functions that aren't named in the km file might or might not have meanings to the device itself).
Once things are basically working, you might run into the common rc5 problem that functions don't work twice in a row (without using some other function in between). I don't know enough about irremote to know which work around is best if you have that problem. Ask again if you have that problem when you get that far.
0 - Mask on/off
1 - Contrast -
2 - Brightness -
3 - Volume -
4 - Black on/off
5 - Prog
6 - Mute
7 - Computer input
8 - Composite input
9 - SVHS input
10 - Pointer on/off
12 - Contrast +
13 - Power on/off
14 - Freeze
15 - Brightness +
16 - Menu
32 - Mouse-Right
38 - Reset
41 - Left
42 - Right
46 - Down
53 - Mouse-Left
56 - Volume +
59 - Microphone on/off
63 - Up
Posted: Mon Nov 12, 2007 1:30 am
by marcogt
thanks for your prompt reply!
i opened rc5.irp and changed the value to 7
now where do i need to copy the list of functions? in the bottom side of the file?
is this what should i have on the irp file before generate the hex??
Code: Select all
Device=7
Function=0..127
Define T=0
Protocol=RC5
Frequency=36000
Time Base=889 '888.89 = 32 cycles at 36Khz
Message Time=128 '128 times TimeBase
Zero=1,-1
One=-1,1
Prefix=1 'Officially -1,1 but starting with off is silly
First Bit=MSB
Form=;*,~F:1:6,T:1,D:5,F:6
0 - Mask on/off
1 - Contrast -
2 - Brightness -
3 - Volume -
4 - Black on/off
5 - Prog
6 - Mute
7 - Computer input
8 - Composite input
9 - SVHS input
10 - Pointer on/off
12 - Contrast +
13 - Power on/off
14 - Freeze
15 - Brightness +
16 - Menu
32 - Mouse-Right
38 - Reset
41 - Left
42 - Right
46 - Down
53 - Mouse-Left
56 - Volume +
59 - Microphone on/off
63 - Up
sorry if it is a silly question, i know i am a noob!!!
and what is exactly the problem that you mentioned me about rc5, that functions don't work twice in a row (without using some other function in between)???
thanks again for your precious help
Posted: Mon Nov 12, 2007 8:15 am
by johnsfine
MakeHex does not have any way to use the list of function names.
Just edit the device number, save that .irp file, and drag/drop as described above.
MakeHex will generate all possible numbered functions (0 to 127 for rc5). IrPanels or Hex2ccf will convert that to a ccf file with numbered buttons.
When you import that ccf into the software for your universal remote, you need to somehow make use of the list of function names. How you do that depends on details of your (irremote) software that I don't know.
You will be importing a file with numbered functions and you want to end up with named functions. Ask someone who knows that software. Maybe you rename functions after importing. Maybe you alias from numbered functions to named functions. Maybe you drag signals from numbered buttons to named buttons.
Posted: Mon Nov 12, 2007 4:56 pm
by marcogt
ok,
i got it, i realize ccf as you said, it's a small file of about 17kb.
i went to the wizard irremote page, and uploaded it.
now, i have to choose which kind of device is mine.
If i change type, among vcr,tv,home theatre,etc change the number of possible buttons on the virtual layout of the remote.
I choose the layout that will allow as much buttons as possible, and then i associate to every button, randomly all codes that it said it found in the ccf file (everyone called
Code: Select all
HOME.#.Learned where # is a number 0-127
Of course, it finds 127 codes (that is the number request in the irp file)
Now i associate it in a way that i can easily remember, just in case i find some button working.
My question is, i generate a ccf file from a standard irp file named rc5 (which is the protocols name of my remote found in km file) change device ID which is 7 and then don't i need any other info from KM to put in the ccf file???
i have 127 codes in my ccf file which one will work i supposed i will have only 63 functions as you extract it from km file, maybe i need to search the right codes between a major number than 127???
thanks for the replies
Posted: Tue Nov 13, 2007 7:21 am
by johnsfine
marcogt wrote:associate to every button, randomly all codes that it said it found in the ccf file
I think you should start by associating just the codes, by number, that I included in the list above. After you see how those work, you may want to try the others.
marcogt wrote:i generate a ccf file from a standard irp file named rc5 (which is the protocols name of my remote found in km file) change device ID which is 7 and then don't i need any other info from KM to put in the ccf file???
Correct.
If you were using the CCF file in an actual Pronto or other remote that DIRECTLY uses the CCF file, then you would use the list of function names to edit new panels in ProntoEdit into your CCF file, and name buttons and alias from the numbered panels to the named ones.
But for the software you have, that part of the task is better done in that software and the CCF file left with just function numbers an no function names.
marcogt wrote:i have 127 codes in my ccf file which one will work i supposed i will have only 63 functions as you extract it from km file, maybe i need to search the right codes between a major number than 127???
The KM file did not have 63 functions. It had 24 functions in the range 0 to 63.
Most devices have at least a few extra functions that aren't on the original remote. If whoever built the km file didn't do a search for those functions, then they aren't in that list.
Designers of these devices tend to follow certain patterns in assigning the extra codes relative to the codes on the actual remote. Based on such patterns, I would expect extra functions to be:
Most likely, the skipped numbers within the range 11 to 62.
Unlikely, but possible, the numbers 64 to 127.
Posted: Tue Nov 13, 2007 4:13 pm
by marcogt
irremote software accepts ccf file built for pronto and also LIRC created.
So i have to build up it as if it should be used there.
I simply take the ccf output from hex2ccf and sent to the wizard.
The result was tha only one button on the virtual layout was shown but it did not work

(