| View previous topic :: View next topic |
| Author |
Message |
Vulcy
Joined: 25 Jul 2005 Posts: 3
|
Posted: Mon Jul 25, 2005 6:21 pm Post subject: Raw codes to Pronto Codes? |
|
|
I'm working on a little program which can learn IR codes and perform some HTPC specific operations with it (something like Girder, but easier to use).
Now I want it to learn IR codes and store them in pronto format. This is easy with the learn function. However the receive callback always returns raw-format. Hence my question, how can I convert from a raw-format code to a pronto code, so I can compare the received code to my database of pronto codes?
- Vulcy |
|
| Back to top |
|
 |
jrhees Site Admin
Joined: 28 Jan 2003 Posts: 1652
|
Posted: Mon Jul 25, 2005 10:15 pm Post subject: |
|
|
Actually, the Receive Callback does *not* return a RAW code, but instead returns a 'UIR-style' compressed code. This is a hashed code which does not contain all of the needed info for transmission, but is suitable for an event.
So, if you want to learn a code for transmission, use the LearnIR and store the Pronto code. If you also must learn for event triggering, you'll simply want to write a learn routine that listens to the IR Receive callback and captures the 12-digit code.
-Jon |
|
| Back to top |
|
 |
Vulcy
Joined: 25 Jul 2005 Posts: 3
|
Posted: Tue Jul 26, 2005 8:29 am Post subject: |
|
|
Oops, I got RAW confused with the UIRT-style compressed code. :oops:
But still, isn't there any way to convert from the 12-digit code to other codes, such as pronto?
It makes more sense to me to store codes in a portable format such as the pronto format.
Kind regards,
Vulcy |
|
| Back to top |
|
 |
jrhees Site Admin
Joined: 28 Jan 2003 Posts: 1652
|
Posted: Tue Jul 26, 2005 8:07 pm Post subject: |
|
|
You could theoreticall convert a Pronto code to a 12-digit code, but not vice-versa (simply because too much information is not present in a 12-digit code).
-Jon |
|
| Back to top |
|
 |
Vulcy
Joined: 25 Jul 2005 Posts: 3
|
Posted: Tue Jul 26, 2005 9:59 pm Post subject: |
|
|
Ah I see,
Well, thx for the help Jon. |
|
| Back to top |
|
 |
|