Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Classic Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
LIRC to Hex?
This thread has 5 replies. Displaying all posts.
Post 1 made on Friday May 18, 2007 at 23:09
joshnga
Lurking Member
Joined:
Posts:
May 2007
3
After hours of thumbing through threads, it would seem that it is possible to take information from a LIRC Commands. Could someone give me the short and sweet rundown or provide a link that'd show me how to convert these lirc codes into something usable by my Pronto?
Was given the remote, with no documentation and am trying to program it to work for a receiver which I have lost the remote for. Remote is Pronto TS 1000.
Lirc codes (if needed) are at
[Link: lirc.sourceforge.net]
I appreciate any help
Post 2 made on Saturday May 19, 2007 at 08:16
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
So far as I know, there is no program nor generic method to convert LIRC data to Pronto Hex. People like me, who understand the structure of various IR protocols, can look at most LIRC data and recognize the signals. Once you know what the signals are, you can use the MakeHex program to generate Pronto Hex for them:

[Link: john.fine.home.comcast.net]

The LIRC file you linked uses JVC's IR protocol (which is used by most, but not all JVC device). That file has commands for three different devices. I assume you just wanted the commands for the audio device.

The C5 in the LIRC file for each audio command represents the device code (similarly C0 is the TV and C2 is the VCR), but it is in hex representing backwards binary. Translated to a decimal device code, C5 is device 163.

You could easily generate all 256 possible commands for device 163 with MakeHex and the JVC.irp file, by editing it to Device=163 (see more details in the readme file for MakeHex). Then you could select the specific signals you want from that set of 256 by translating the function number (last two digits of each LIRC line) into decimal. (translate hex to binary, reverse the bit sequence, then translate binary to decimal). But that translation gets pretty tedious.

JVC is pretty consistent about function numbering, so you may be better off ignoring the LIRC file and getting data from a CCF file instead. My guess is that most CCF files using JVC device code 163 have the same functions. Here are URL's for a few such files:

[Link: remotecentral.com]

[Link: remotecentral.com]

[Link: remotecentral.com]

[Link: remotecentral.com]

[Link: remotecentral.com]

[Link: remotecentral.com]
Post 3 made on Saturday May 19, 2007 at 10:45
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
Additional info on translating Hex numbers from LIRC into decimal for use with MakeHex.

Get the JP1 program IR.exe (even though you won't be using JP1). Download it from:
[Link: hifi-remote.com]
The current version there today is IR7.00, but any version will do.

Start IR.exe (ignore any startup warnings, because you won't be using the main features of the program anyway).

Select "EFC calculator" from the tools menu.

Type a two digit hex number (such as the C0, C2 or C5 device codes from your LIRC file or the function codes that directly follow them on each line) into the "Hex Command" field.

In various LIRC files the Binary numbers represented by the Hex may be reversed in sequence or polarity or both or neither. (You'll probably need to ask an expert which it is for a given LIRC file. But once you know, it should be the same for all hex numbers in that LIRC file). In the file you linked, it is reversed in sequence but not polarity.

Read the decimal value from one of four places (within the EFC calculator dialog):

"LSB Comp" if it is reversed in both sequence and polarity
"MSB Comp" if it is just reversed in polarity
"LSB" if it is just reversed in sequence
"MSB" if it isn't reversed at all.

For example, when I type C5 into the Hex Command field, 163 appears in the "LSB" field, because the data in your LIRC file is reversed in just sequence and your device code of 163 appears in the LIRC file as C5.

Similarly, I typed E8 and read 23 from the "LSB" field, meaning that the audio power toggle from that LIRC file is function 23 (of device 163). If you used MakeHex to generate all 256 signals for device 163, you could select function 23 from the MakeHex output to copy/paste to the appropriate button in you config (in ProntoEdit).

Instead of doing a lot of such copy/paste steps you could:

1) Use either IrPanels or Hex2CCF to convert the MakeHex output to a CCF file.

2) Merge that CCF file into your own CCF file (I'm not sure how to do that in ProntoEdit, but I think other experts have described that in other threads).

3) Alias from numbered buttons in the IrPanels (or Hex2CCF) generated panels into the appropriate named buttons in your panels.

With the CCF full of numbered buttons you can also test whether your device has other functions that weren't included in the source info you used (the LIRC file) maybe functions that weren't even on the original remote.
OP | Post 4 made on Saturday May 19, 2007 at 16:09
joshnga
Lurking Member
Joined:
Posts:
May 2007
3
thanks johnsfine. I don't know much to make heads or tails of this remote, but since I've lost the original, it's worth spending some time with, and I appreciate all your help.
Post 5 made on Saturday May 19, 2007 at 16:36
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
Have you at least downloaded ProntoEdit?
[Link: remotecentral.com]

You can't do much without that.

Once you have that installed you should be able to open those CCF files I mentioned.

Probably one of them will serve as a good example of how to set things up for your receiver (as well as serving as as source of IR signals).
OP | Post 6 made on Saturday May 19, 2007 at 21:18
joshnga
Lurking Member
Joined:
Posts:
May 2007
3
Yes, I've downloaded all the software mentioned... I had prontoedit downloaded the day I started fooling around with this headache, though with the information you gave me it seems to be making a little more sense now. Playing around with it tonight to see what I can't do, then it's on to learning how to make smooth looking panels


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse