Page 1 of 1

Convert LIRC Codes to EFCs?

Posted: Thu Oct 16, 2003 1:08 am
by bpuserid
I don't have a learning remote but I can generate learned LIRC config files with WinLIRC.

How do I convert LIRC code data bits to OBC or EFC codes?

Thanks,
Barry

Posted: Thu Oct 16, 2003 5:43 am
by johnsfine
It depends on the protocol and on how LIRC happened to represent that protocol in that case.

Often two of the digits of the LIRC data exactly match the UEI hex command. If you use RM rather than KM you can enter the hex command and see the corresponding OBC and EFC. (I'm not sure how hex command entry works in KM. It's not as clean as in RM). You also can use the EFC calculator in IR to convert hex command to EFC.

Unfortunately, even for a protocol that normally would have the hex command appear directly in the LIRC data, it is possible for the LIRC data to be done differently, as in this recent thread:
https://www.hifi-remote.com/forums/viewtopic.php?p=1532

If you have a URL for the LIRC data, post that here and one of a few different experts can tell you how to use it. Otherwise, email a copy of the LIRC file to me and I'll post the answer.

Posted: Thu Oct 16, 2003 9:20 am
by The Robman
johnsfine wrote:I'm not sure how hex command entry works in KM.
Just stick an "h" on the end, eg "4Bh".

Posted: Thu Oct 16, 2003 12:14 pm
by Mark Pierson
The Robman wrote:
johnsfine wrote:I'm not sure how hex command entry works in KM.
Just stick an "h" on the end, eg "4Bh".
You can use the "h" as a prefix or suffix ("4Bh" or "h4B") for single byte entries. Multi-byte hex is delimited by spaces, i.e. "AA BB".

I think John might have been referring to the fact that KM doesn't decode EFC's or OBC's from text entries the way RM does.

Posted: Thu Oct 16, 2003 3:23 pm
by jon_armstrong
I have decoded a lot of LIRC files and they seem to have more exceptions than rules. Unless it is something really unusual, there are other methods listed below (IMO, in order of difficulty, all easier than decoding LIRC commands unless you already know a lot about the IR protocol and binary to hex manipulation):

1. If some commands in a setup code work, but not the ones you need, look at www.hifi-remote.com under advanced codes=EFC for that setup code. If it not, tell us that setup code and the command you want (make sure you mention you can’t learn commands)

2. A device upgrade in the JP1 Yahoo files section.

3. A ccf file at RC that is close can be decoded with John Fine's DecodeCCF.exe/DecodeIR.dll

4. An RTI Theater Touch cml file from RC that can be decoded with John's cml2efc.exe/DecodeIR.dll

5. A Premise System file (http://ir.premisesystems.com/search.aspx) that are Pronto hex that can be decoded with the special version of IRTool/DecodeIR.dll

All the decoding tools can be found in the JP1 Yahoo files under tools or programs, put DecodeIR.dll in your windows\system directory and it will work with all programs mentioned.

If you still need help decoding a LIRC file, post it and one of us will help. Once you figure out the”rules” for that command set then they aren't hard.

Posted: Fri Oct 17, 2003 11:18 pm
by bpuserid
Thanks for the info and the offer to decode my LIRC files. It's not as straightforward as I had expected. I should pick up a JP1 learning remote.

Barry