Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#32742 - 16/06/2001 12:33 ir keyboard codes
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA

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 ||
_________________________
|| loren ||

Top
#32743 - 16/06/2001 13:04 Re: ir keyboard codes [Re: loren]
fvgestel
old hand

Registered: 12/08/2000
Posts: 702
Loc: Netherlands
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
_________________________
Frank van Gestel

Top
#32744 - 16/06/2001 13:06 Re: ir keyboard codes [Re: fvgestel]
fvgestel
old hand

Registered: 12/08/2000
Posts: 702
Loc: Netherlands
BTW, I think the codes in capture mode represent the time-interval between IR-transmits. Correct me if I'm wrong...

Frank van Gestel
_________________________
Frank van Gestel

Top
#32745 - 16/06/2001 14:58 Re: ir keyboard codes [Re: loren]
fvgestel
old hand

Registered: 12/08/2000
Posts: 702
Loc: Netherlands
here's another trace_ir; the version you use shows signed integers. This one shows hex digits.


Frank van Gestel


Attachments
31976-trace_ir.zip (106 downloads)

_________________________
Frank van Gestel

Top
#32746 - 16/06/2001 22:51 Re: ir keyboard codes [Re: fvgestel]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
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 ||
_________________________
|| loren ||

Top
#32747 - 17/06/2001 01:40 Re: ir keyboard codes [Re: loren]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
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



Top
#32748 - 17/06/2001 13:04 Re: ir keyboard codes [Re: rob]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
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 ||
_________________________
|| loren ||

Top