Mapping from RC5 to UIRT raw format

Interested in integrating USB-UIRT support into an application? Look here!

Moderator: jrhees

Mapping from RC5 to UIRT raw format

Postby Guest » Fri Nov 05, 2004 9:31 am

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?
Guest
 

Postby Frank Mc Alinden » Fri Nov 05, 2004 9:56 am

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
Frank Mc Alinden
 
Posts: 50
Joined: Sat Aug 28, 2004 3:05 am
Location: Melbourne Australia

Postby Guest » Fri Nov 05, 2004 10:11 am

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?
Guest
 

Postby Frank Mc Alinden » Fri Nov 05, 2004 10:22 am

Hi
How do you generate and save raw usb uirt codes ??? do you have to use Girder ???....
Frank
Frank Mc Alinden
 
Posts: 50
Joined: Sat Aug 28, 2004 3:05 am
Location: Melbourne Australia

Postby Guest » Fri Nov 05, 2004 10:42 am

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 :(
Guest
 

Postby mwtb » Thu Dec 16, 2004 11:20 am

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.
mwtb
 
Posts: 4
Joined: Thu Dec 16, 2004 9:59 am

Any update on this issue?

Postby Guest » Mon Apr 03, 2006 8:09 pm

If anyone resolve this issue, could you please post your resolution here?
Thanks in advance.
Guest
 

Postby mwtb » Thu Jun 22, 2006 12:11 pm

I posted a description of how to do it here
mwtb
 
Posts: 4
Joined: Thu Dec 16, 2004 9:59 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 16 guests

cron