#98304 - 07/06/2002 17:11
Time sync
|
member
Registered: 17/05/2002
Posts: 148
Loc: Cape Town, South Africa
|
Hi,
How about some means of keeping the empeg's clock in sync? I was thinking the easiest might be to do it via emplode. Or even better, when booted from AC, run something along the lines of ntpdate once off to sync the clock to a specified ntp server. That would be cool!
I'm a sucker for accurate time keeping. Not one of my PCs isn't synced via NTP
Regards,
Aragon
|
Top
|
|
|
|
#98305 - 07/06/2002 17:17
Re: Time sync
[Re: Aragon]
|
member
Registered: 31/01/2002
Posts: 135
Loc: Indiana, USA
|
I think this would be an awesome addition. I don't see Rio/Empeg coming out with a new version of emplode anytime soon though ( i could be wrong.) I may be WAY off base here, but is it possible for HiJack to use NTP to grab the time on boot when network connection is present and AC is on. This providing that the network connection has access to the outside world. I dunno....it would be cool though!
_________________________
ED7
---------------------
20G Mark2A
SN#: 010101680
1997 Chrysler Sebring LXi
|
Top
|
|
|
|
#98306 - 07/06/2002 17:22
Re: Time sync
[Re: ElectricD7]
|
member
Registered: 17/05/2002
Posts: 148
Loc: Cape Town, South Africa
|
I'm sure it's possible with Hijack. Hey if it can run a web and ftp server...
|
Top
|
|
|
|
#98307 - 08/06/2002 04:44
Re: Time sync
[Re: Aragon]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Hmmm.. sounds pretty frivolous.
But the more I think about it, this would be a very appropriate feature for a docked player to incorporate: making it a networked clock.
The NTP protocol can get rather complex, as it is designed for microsecond accuracy, even over links that are slower than that. But we can simplify it immensely if we're willing to just have accuracy with a second or two.
-ml
|
Top
|
|
|
|
#98308 - 08/06/2002 06:50
Re: Time sync
[Re: mlord]
|
member
Registered: 17/05/2002
Posts: 148
Loc: Cape Town, South Africa
|
Hi,
Yea, I think writing a full blown implementation of the NTP protocol would be overkill. Something that starts once during bootup, syncs the clock once off with a time server and then exits would be perfect... I think
Thanks,
Aragon
|
Top
|
|
|
|
#98309 - 08/06/2002 07:10
Re: Time sync
[Re: mlord]
|
Carpal Tunnel
Registered: 08/02/2002
Posts: 3411
|
Sounds like we need ntpdate rather than a full xntpd implementation:
"ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct time. It must be run as root on the local host. A number of samples are obtained from each of the servers specified and a subset of the NTP clock filter and selection algorithms are applied to select the best of these. Note that the accuracy and reliability of ntpdate depends on the number of servers, the number of polls each time it is run and the interval between runs.
ntpdate can be run manually as necessary to set the host clock, or it can be run from the host startup script to set the clock at boot time. This is useful in some cases to set the clock initially before starting the NTP daemon xntpd. It is also possible to run ntpdate from a cron script. However, it is important to note that ntpdate with contrived cron scripts is no substitute for the NTP daemon, which uses sophisticated algorithms to maximize accuracy and reliability while minimizing resource use. Finally, since ntpdate does not discipline the host clock frequency as does xntpd, the accuracy using ntpdate is limited.
Time adjustments are made by ntpdate in one of two ways. If ntpdate determines the clock is in error more than 0.5 second it will simply step the time by calling the system settimeofday() routine. If the error is less than 0.5 seconds, it will slew the time by calling the system adjtime() routine. The latter technique is less disruptive and more accurate when the error is small, and works quite well when ntpdate is run by cron every hour or two."
_________________________
Mk2a 60GB Blue. Serial 030102962
sig.mp3: File Format not Valid.
|
Top
|
|
|
|
#98310 - 08/06/2002 08:01
Re: Time sync
[Re: genixia]
|
journeyman
Registered: 28/12/2001
Posts: 99
|
The source for ntpdate, can be found HERE and an ARM implementation Although betcha its not compatable.
_________________________
M2a/ Smoke/60gb/Tuner!! Thanks Joe
M2a/ Blue10gb Thanks Ian!
|
Top
|
|
|
|
#98311 - 08/06/2002 17:56
Re: Time sync
[Re: Aragon]
|
addict
Registered: 30/05/2002
Posts: 695
|
Now there's something I would like to have. Once my install is done I won't have any clock at all in the car. So unless the empeg can keep the correct time, I'll have to buy a watch.
I don't see how the time could be synced up from the car though. Not without some $$$.
|
Top
|
|
|
|
#98312 - 10/06/2002 05:29
Re: Time sync
[Re: DeadFire]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
I have a bunch of scripts that run when I exit the player. One of them causes ntpdate to be run. Someday, I might rig them up to run from init, before the player starts.
You can find them at http://www.differentpla.net/~roger/empeg/car/files/
base.tar.gz is the binaries. configs.tar.gz is the auto-selected stuff that sets hostnames and stuff.
_________________________
-- roger
|
Top
|
|
|
|
#98313 - 10/06/2002 06:26
Re: Time sync
[Re: Roger]
|
old hand
Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
|
Hi Roger.
I would like to use your files in my customized hda2 boot .upgrade-File. Do you have any objections?
What source files did you use to built the binaries?
cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord
|
Top
|
|
|
|
#98314 - 10/06/2002 09:35
Re: Time sync
[Re: smu]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
I don't have any objection, no.
I didn't build from source -- I downloaded the binaries from www.debian.org
_________________________
-- roger
|
Top
|
|
|
|
#98315 - 13/09/2002 00:51
Re: Time sync
[Re: Roger]
|
old hand
Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
|
roger, i'm trying to make my empeg time sync at startup. i was wondering, can you put up these files again? thanks
|
Top
|
|
|
|
#98316 - 13/09/2002 01:34
Re: Time sync
[Re: image]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
Fixed.
_________________________
-- roger
|
Top
|
|
|
|
#98317 - 25/09/2002 12:13
Re: Time sync
[Re: image]
|
member
Registered: 23/08/2000
Posts: 193
Loc: Dallas Texas USA
|
My player doesn't keep very good time.. I dont use the clock in the player but I do notice the time if I scroll through the visuals. The time is seldom close to correct.
I do plug my player up to my PC about once a week.. if it synced at that time, it would be a lot more accurate. I wouldn't have to adjust the time by hand.
But again, in my case, I dont use the clock in the player, or the time display visuals.
_________________________
Carl Aydelotte
Dallas Texas USA
empeg MKII 080000506 40gb-green
|
Top
|
|
|
|
#98318 - 25/09/2002 12:24
Re: Time sync
[Re: avatarTX]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
|
The time is seldom close to correct.
How far off is it? Just a minute or two, or hours?
If the latter, make sure to read this.
|
Top
|
|
|
|
|
|