ir keyboard codes

Posted by: loren

ir keyboard codes - 16/06/2001 12:33


I would appreciate it if anyone has any thoughts on what I am trying to do. I have a generic IR keyboard and am trying to get the keys on it mapped to ascii. I have trace_ir running on my empeg in raw mode and when I press the same key i get different results each time. I can't seem to figure out the mapping from the IR codes to the keys on the keyboard.

here is the output i get when i hit the "a" key once:

-2141982244
-1073741729

here is the output i get when i hit the "a" key again:

-2145439968
-1073741620
-2147465027
-1073741355
-2147479352
-1073741294
-2146081925
-1073741641
-2147387278
-1073741561
-2147372183
-1073741404
-2147481962
-1073741638

It does not seem straight forward to me. If anyone has any idea of how to figure out what is going on please let me know. Or if anyone has an idea of where i can go to find the info to get me started, that would be great help also.

thanks




|| loren.cox ||
Posted by: fvgestel

Re: ir keyboard codes - 16/06/2001 13:04

The kenwood/Rio remote uses sequences of IR-codes for button down/up events. The kernel ir-driver has a state-machine that converts these sequences into single codes. Try looking at the source of the kernel-driver : arch/arm/special/empeg_input.c. It also contains lots of useful info from Mike...

Frank van Gestel
Posted by: fvgestel

Re: ir keyboard codes - 16/06/2001 13:06

BTW, I think the codes in capture mode represent the time-interval between IR-transmits. Correct me if I'm wrong...

Frank van Gestel
Posted by: fvgestel

Re: ir keyboard codes - 16/06/2001 14:58

here's another trace_ir; the version you use shows signed integers. This one shows hex digits.


Frank van Gestel
Posted by: loren

Re: ir keyboard codes - 16/06/2001 22:51

Thanks Frank. I'm getting a buddy of mine (james) to help me out since i'm pretty unknowledgeable on the programming and code stuff. I'll see if we can't figure something out with that!


|| loren.cox ||
Posted by: rob

Re: ir keyboard codes - 17/06/2001 01:40

When we looked at an IR keyboard I seem to recall that Mike worked out it used the RC6 protocol. His comment was "I am not writing a driving for that!" so it looks like you have some fun ahead of you!

Rob


Posted by: loren

Re: ir keyboard codes - 17/06/2001 13:04

Yeah, it's looking pretty messy. If Mike could pass along anything he discovered it would be much appreciated. Niether James or I are programming masters, so i'm not expecting much! heh. Thanks.


|| loren.cox ||