USB-UIRT Forum Forum Index USB-UIRT Forum
Plug-n-Play IR Solution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Raw codes to Pronto Codes?

 
Post new topic   Reply to topic    USB-UIRT Forum Forum Index -> Developers
View previous topic :: View next topic  
Author Message
Vulcy



Joined: 25 Jul 2005
Posts: 3

PostPosted: Mon Jul 25, 2005 6:21 pm    Post subject: Raw codes to Pronto Codes? Reply with quote

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
View user's profile Send private message
jrhees
Site Admin


Joined: 28 Jan 2003
Posts: 1652

PostPosted: Mon Jul 25, 2005 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Vulcy



Joined: 25 Jul 2005
Posts: 3

PostPosted: Tue Jul 26, 2005 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message
jrhees
Site Admin


Joined: 28 Jan 2003
Posts: 1652

PostPosted: Tue Jul 26, 2005 8:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Vulcy



Joined: 25 Jul 2005
Posts: 3

PostPosted: Tue Jul 26, 2005 9:59 pm    Post subject: Reply with quote

Ah I see,

Well, thx for the help Jon.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    USB-UIRT Forum Forum Index -> Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group