Convert LIRC Codes to EFCs?

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

Post Reply
bpuserid
Posts: 2
Joined: Thu Oct 16, 2003 12:55 am

Convert LIRC Codes to EFCs?

Post 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
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post 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.
The Robman
Site Owner
Posts: 21928
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post 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".
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Mark Pierson
Expert
Posts: 3017
Joined: Sun Aug 03, 2003 12:13 am
Location: Connecticut, USA
Contact:

Post 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.
Mark
jon_armstrong
Expert
Posts: 1238
Joined: Sun Aug 03, 2003 9:14 pm
Location: R.I.P. 3/25/2005
Contact:

Post 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.
-Jon
bpuserid
Posts: 2
Joined: Thu Oct 16, 2003 12:55 am

Post 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
Post Reply