Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: cinergyT2 remote, repeat handling, keycodes



Stefan Lucke wrote:

On Mittwoch, 15. Dezember 2004 09:53, Holger Waechtler wrote:

Stefan Lucke wrote:


One disadvantage of my diff is, that after about 2 sec we'll get one poll without
a keyrepeat signalled (len == 0). So my diff reports keyrelease in that situation which is
not true since I sill hold the key ;-) .



What exactly is reported, a keypress or a "no event"?

I think it is what you call "no event", as I'm talking of "len = cinergyt2_command( )"
and len is set to 0.

Since the infrared connection is susceptible to noise and light radiation from other sources than the remote control not every sent event from the remote control necessairily needs to arrive at the receiver. Better choose a "no event in 3 times the repeat rate" as key-up condition. The repeat rate for the NEC protocol is (according to http://www.vishay.com/docs/80071/80071.pdf) is about 108ms.

Another issue of the current approach is that the rc query interval has to be larger than the remote control's repeat interval, is this true?

That's what happens. If query intervall is smaller than remot's repeat interval
we'll fall into an empty interval and keyrelease will be reported. I played with
enlarging that interval to 150ms, but that's not good either. It still happens
that I get sometimes an empty intervall but more often I'll get multiple
keyrepeats, as to my setting :-( I crossed the "initial delay" time for keyrepeat.

Using (number_of_querys > 3*REPEATRATE/RC_QUERY_INTERVAL) may work...

Holger





Home | Main Index | Thread Index