Universal IR Remote Decode Algorithm

If you're not a JP1 user, but would like help from the JP1 experts, post your question here.

Moderator: Moderators

Post Reply
Sadeepa
Posts: 1
Joined: Tue Oct 27, 2009 5:40 pm

Universal IR Remote Decode Algorithm

Post by Sadeepa »

I'm a micro controller guy.I have done lots of code to capture different protocols.All its working fine.

Now what I want to do is to make an universal infrared decoder.Which means I need to store particular IR remote incoming data & compares the same remote code is coming on next time.

Whats the algorithm for this?

Thanks
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

You could look at the source code for LIRC, which does that. It might be a bit big for a micro controller (if that is your intent).

You could look at the source code for DecodeIR.dll. That is further from universal than LIRC, but it covers almost all IR signals in common use and it is more likely than LIRC to correctly determine whether two signals match.

IR protocols vary greatly in their structure and in their inherent accuracy (whether it is possible by any means to accurately distinguish a specific signal from the garbage that might appear in fragments and bad captures of other signals). So I don't think a truly universal decoder is even possible.

There is plenty of room for improvement in DecodeIR.dll. But I think it is fundamentally the correct approach to get close to a universal decoder. Approaches like LIRC that are more universal in concept are ultimately less universal in practice (though it also covers amost all common IR signals).
Post Reply