Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: external commands

Re: external commands

From: Andreas Stemmer <groovingandi_at_gmx.de>
Date: Thu, 13 May 2004 11:39:26 +0200

[IDC]Dragon wrote:
> > I'm not sure yet how the "return payload" should be handled for the text
> > strings.
>
> The generic response pretty much defines it:
> Byte 1: negated command byte
> Byte 2: number of chars
> Byte 3...n-1: chars
> Byte n: Checksum, 8-bit sum of bytes 1 to n-1

Yes, but I'm still wondering if it is the best solution to return the
whole string each time. If I want to have the song title on the display
in sync with the current playing song, it's necessary to poll it approx.
every second and that is pretty much traffic then.

Would the play status inquired by 0xB0 include a flag for "track changed
but wasn't polled yet"? Then it would be enough to poll the play status
and the time continuously and the title only when it's necessary.

Btw: I guess you aren't actively working on this because you don't need
it anymore, right? I really, really would like to have a standard here,
so if nobody else does it, I'm going to try to start implementing it and
get the soft-serial patch in a commitable shape. But I'm a real slow
programmer and it could take some time before there are usable results.

Andreas

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-05-13

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