Slink-e / CDJ Discussion Archive #3
Re: Remote controlling the Slink-e
Posted By: Dave Thomas <thomasdr@u...> In Response To: Re: Remote controlling the Slink-e (Colby Boles)
In Response To: Re: Remote controlling the Slink-e (Colby Boles)
No, the Kenwood device file does not have repeats.
The Kenwood is supposed to change 1 db every time a vol+ or vol- command is
The shortest tap on the Sony remote generates at least three commands.
I changed my msghandler function to issue only one Kenwood command for every three Sony TV vol commands. This allowed receiver volume control to one db, but I still had the "coasting" problem.
Next I tried to make sure that after each received command, an output was sent before checking for more input:
1) receive message (with timeout set short)
2) if it is a message to be forwarded, send it before processing more input
3) purge the receive buffer (it may now be full of repeated commands)
4) receive messages again (to see if user still has key depressed)
I used (sd->GetSlinke(0))->ClearReceiveBuffer(); to purge the receive buffer.
This got me a little closer to what I wanted. It eliminated the coasting,
I suppose I could define another device file that does not specify a start code for recognizing the repeated codes. I think there must be a better way...