G'day Stephen,
I found some code that can read CCF files under Linux, but it isn't working too well, so I may try to fix those bugs and produce a tool that does the conversion manually. What I did was to use some CCF tools under Windows that extract the CCF file to a XML format. The XML format has the raw IR codes expressed as hex digits. The first 4 words contain header information, while the rest represent the number of carrier cycles for the pulse or gap.
In the case of the Foxtel Digital box the header says the carrier is 36kHz, so to convert the hex numbers to numbers Lirc can use you do the following
(hex_word / carrier_freq)*1000000 = lirc pulse width
so, in the case of the Foxtel digital box
(hex_word / 36000)*1000000 = lirc pulse width
The header is made up of 4 words as follows
0000 - IR format - 0000 = raw
0073 - Carrier frequency divisor - calculate actual carrier frequency as follows 4145146/ 115 = 36045 = 36kHz
0036 - Number of pulses and gaps
0000 - The number of repeat pulses
I wrote a simple little windows app that takes just the raw pulse code parts and produces the lirc codes for them (and makes a nice little graph of the IR pulses). What I may do eventually is make something that takes a CCF file and extracts all the IR codes and produces a lirc conf file from it.
Daniel
On 25/01/2005, at 1:58 PM, stephen wrote:
Daniel Parnell wrote:
G'day All,
after quite a bit of messing about with the IR, I had actually given up trying to get my myth box to control the Foxtel digital set top box (after upgrading from ye olde foxtel which worked perfectly).
I'd looked around on the net and found a file for some programmable remote made by Philips that was supposed to be about to control the Foxtel digital box, but of course it was in it's own file format (a CCF file). There are several tools about that will extract the IR codes as hex strings, and finally this morning I looked through some code that is supposed to send these IR codes via a special interface attached to a PocketPC device. Using this code as a guide I was able to produce a simple lircd.conf file that allows me to change the channels on again :)
If anybody is interested I can send them a copy.
Daniel
hi,
i don't have a foxtel digital receiver, but i'd like to know what tools/code you used to get the IR codes into a lirc format. i have a sony clie that i can use to "learn" remote codes, but haven't found an easy (read: lazy) way to convert those codes into something i can use in a lircd.conf file. anything you could send along to the list would be muchly appreciated!
thanks, stephen
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
