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

Rockbox mail archive

Subject: RE: time sync

RE: time sync

From: [IDC]Dragon <>
Date: Fri, 18 Jun 2004 14:28:25 +0200 (MEST)

Hello Gerald,

sorry for off-topic, I see you're working for Smith. Do you happen to work
in Germantown, Maryland?

I've worked for those guys a couple of times, and am just starting to do so
again, greetings to Bill Balaban in case you know him.


> > -----Original Message-----
> > From:
> > []On Behalf Of Peter Grecian
> > Sent: Friday, June 18, 2004 5:33 AM
> > To: Rockbox development
> > Subject: Re: time sync
> >
> >
> > How timeSync works:
> >
> > You run the timeSync plugin on the jukebox and on
> > the host.
> > You press f1 on the jukebox and enter on the host at the same time.
> > (This creates a file on the jukebox),
> > You connect the USB.
> >
> > (The host script mounts the filesystem,
> > calculates the difference in seconds between when enter was hit
> > and the timestamp on the file on the jukebox.
> > This is written to a file on the jukebox.
> > The script unmounts the jukebox)
> >
> > You disconnect the USB.
> > You run the timeSync plugin again which sets the clock
> > according to the
> > time difference file.
> >
> > Currently it only deals with hours, minutes and seconds so is
> > unreliable
> > at midnight. The script assumes the mount point is
> > /mnt/archos and would
> > need some changes for a non unix system (I guess). If the plugin
> > turns out to be useful it would be worth developing it further.
> >
> > Peter
> HI Peter,
> That's very clever. One thought to simplify it (thoughts are cheap,
> implmentation is a different matter ;-) is to put the timesync code in the
> portion of Rockbox that is running when the USB is connected. That code
> sits & spins, waiting for the USB to be disconnected.
> My thought is to add to the USB spin loop...
> 1 Watch the f1 key (or any key for that matter) while the USB was
> connected.
> 2 When the key is pressed, start a time counter.
> Meanwhile, on the PC...
> 3 Write a file which will inherently have a timestamp (and you could put
> a
> timestamp inside if you wished) when the <ENTER> key was pressed.
> When the PC is disconnected (hopefully fairly soon)...
> 4 The USB spin loop will see that the PC was disconnected. It can then
> look
> at the timestamp on (in) the special file, add the delta time it was
> accumulating from step 2, and viola' time setting capability.
> I have not looked at the Rockbox code in this area to verify this would
> work and how difficult it would be, but it sounds good in email.
> gvb
> ******************************************
> The information contained in, or attached to, this e-mail, may contain
> confidential information and is intended solely for the use of the
> or entity to whom they are addressed and may be subject to legal
> If you have received this e-mail in error you should notify the sender
> immediately by reply e-mail, delete the message from your system and
> your system manager. Please do not copy it for any purpose, or disclose
> contents to any other person. The views or opinions presented in this
> e-mail are solely those of the author and do not necessarily represent
> of the company. The recipient should check this e-mail and any
> for the presence of viruses. The company accepts no liability for any
> damage caused, directly or indirectly, by any virus transmitted in this
> ******************************************
> _______________________________________________

"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter
Received on 2004-06-18

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