dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Repeated Remote Commands

Re: Repeated Remote Commands

From: sophana <>
Date: Tue, 11 May 2004 18:28:03 +0200 wrote:

>I'm currently trying to remote control my JB Studio with repeated key
>Start/Pause, Stop, Previous, Next, Volume Up, Volume Down are the remote
>commands the JB is accepting.
>All of these works well, if I send only one serial command.
>As I know, there is a possibility to repeat sending serial commands on the
>remote interface for Previous, Next, Vol Up/Down, to get the same behaviour
>as if I press the keys on the JB itself.
>My code looks currently like this, when I get a trigger (inputs on my uC
>application) to send remote commands to the JB:
>trigger received
>send serial command to JB
>wait 200ms
>check if my input is still set
> send serial command to JB
> wait 50ms (until repeat sending same command)
>until trigger disappeared
>So I'm sending 1st command, wait 200ms, then I'm sending again with a
>repetition rate of 50ms.
>I do this e.g. while playing a song and then starting a serial "Next"
>Result is NOT fast forward, but like sending single "Next" commands shortly
>one after another -> JB jumps several songs forward until serial buffer is
>I already tried to reduce that 50ms repetition rate, but until now w/o
>Anybody knowing if this feature can be realised via remote interface ?
>Anybody also knowing the correct timing ?
hmmm, you would like to have a double clic behaviour don't you?
the algorithm is the same with mouse clicks. but you have a constraint:
the double click time gives the maximum rate at which you can call the
simple click command, and it also adds latency.
because the simple click command won't start until the double click
timeout is reached...

Received on 2004-05-11

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy