[NTLK] Y2010 Fix Idea

Morgan Aldridge morgant at makkintosshu.com
Sun Jan 31 20:06:03 EST 2010


On Sun, Jan 31, 2010 at 3:12 PM, Grant Hutchinson <grant at splorp.com> wrote:
>
> If we could tweak NetTime to work under the Y2010 patch (as well as
> with more modern, non-deprecated time servers) we might be able to
> have our Newtons auto-correct themselves after a reset.

I have to admit that the 1st tool I wanted to write to learn
NewtonScript and Newton development was to develop an NTP client. If
the source to NetTime is available it would make development easier,
esp. as it can automatically update the time whenever an Internet
connection is made. Unfortunately, I have not had the time to actully
pick up development and as much as I'd like to work on this, I have
other obligations (incl. UNNA) that should come first.

Regarding others' concerns regarding writing too frequently, I'd
suggest the following:

- The time is saved every morning during the regular maintenance updates (2am?)
- The time is saved every time the Newton is asked to reset or the
package is unloaded (I believe there are interrupts for this, but I
could've misunderstood)
- Upon the package being loading into memory (so after a reset, card
insert, or package unfreeze), compare the saved time to the clock
time:
  - If the clock time is greater then the clock is probably correct.
  - If the saved time is greater then the clock time, then reset the
clock to the saved time and pop up a dialog (probably w/two buttons to
set manually or via NTP) noting that the time is probably incorrect
and needs to be updated.
- Continue the original functionality (w/NTP instead of Time
Protocol): whenever an Internet connection is made, update the time
via NTP (this would just be a clock time vs. NTP time server
comparison... no need to save to flash as that should be covered by
one of the aforementioned cases).

Thoughts?

Morgan Aldridge
---
morgant at makkintosshu.com
http://www.makkintosshu.com/

Check out my other sites: http://slottedpig.info/ & http://rikuwoiku.com/



More information about the NewtonTalk mailing list