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 

Mapping from RC5 to UIRT raw format

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






PostPosted: Fri Nov 05, 2004 9:31 am    Post subject: Mapping from RC5 to UIRT raw format Reply with quote

I've been using the sample UIRT application, and writing my own simple application, to learn and transmit IR codes for a remote control and receiver that use Philips RC-5. However, the learning does not always produce the same codes for a particular key, and the transmission is not 100% reliable. Does anyone have a mapping from RC-5 codes to UIRT raw format (UUIRTDRV_IRFMT_UUIRT), or a list of the mapped codes?
Back to top
Frank Mc Alinden



Joined: 28 Aug 2004
Posts: 50
Location: Melbourne Australia

PostPosted: Fri Nov 05, 2004 9:56 am    Post subject: Reply with quote

Hi
The RC5 IRFormat has whats known as a toggle bit which changes state each time a button is pressed...So if you press the same button twice one ir signal will have the toggle bit set and the other will have it reset....so the same button gives two slightly different codes.......
HTH
Frank
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Fri Nov 05, 2004 10:11 am    Post subject: Reply with quote

Thanks. I had briefly read that in a description of RC-5, but not really thought about it's significance(!!) I can see that I need to take that into account in my program. However, I find that I get more than 2 different codes for the same key, so it's not obvious which is which. I don't suppose you have a (reliable) pair of example UIRT raw codes corresponding to a single RC-5 code?
Back to top
Frank Mc Alinden



Joined: 28 Aug 2004
Posts: 50
Location: Melbourne Australia

PostPosted: Fri Nov 05, 2004 10:22 am    Post subject: Reply with quote

Hi
How do you generate and save raw usb uirt codes ??? do you have to use Girder ???....
Frank
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Fri Nov 05, 2004 10:42 am    Post subject: Reply with quote

No. I have tried the sample application ("trydrv"), girder, and my own small program, which does something very similar to the sample app. I get slightly different codes from girder (have the first few character missing), but they seem to have the same effect when I use them in the call to UUIRTTransmitIR(). E.g. for a key that produces RC-5 code 0x3726, I sometimes get (from UUIRTLearnIR()) a code of:
"F45R06D6202020202020202020204020204040202040202040"
and sometimes:
"F45R06D620204040202020204020204040202040202040"
and sometimes others.

Unfortunately, I don't have the USB-UIRT device with me today, so I can't try it out Sad
Back to top
mwtb



Joined: 16 Dec 2004
Posts: 4

PostPosted: Thu Dec 16, 2004 11:20 am    Post subject: Reply with quote

Has anyone got any insight into how to apply the toggle bit to RAW codes? In theory, fixing the parity problem is just a case of flipping the bit on every send, but I don't know where to change the code.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Apr 03, 2006 8:09 pm    Post subject: Any update on this issue? Reply with quote

If anyone resolve this issue, could you please post your resolution here?
Thanks in advance.
Back to top
mwtb



Joined: 16 Dec 2004
Posts: 4

PostPosted: Thu Jun 22, 2006 12:11 pm    Post subject: Reply with quote

I posted a description of how to do it here
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