Page 2 of 3

Re: RTC guide?

Posted: Sun Nov 10, 2019 2:29 pm
by Bikerbob
SO.... is it just me? OR am I getting the sense from all these postings that coming up with a guide? or making a wiki page or something might be a really good idea.

Having a new person, try something.. set the cock.. reboot (which we have to often) have it then write the new files with order file dates than the last ones.. and not understanding why an ST.. is not an STE, or not a MegaST when it comes to this.. OH and this device or that device.

I am totally for helping.. with what I can. I guess I could start writing and ask for corrections or contributions??

James

Re: RTC guide?

Posted: Sun Nov 10, 2019 2:44 pm
by tzok
stephen_usher wrote: Sun Nov 10, 2019 1:04 pm A complication to all this is that different TOS versions seem to use different start dates.
This is due to the fact that TOS 1.0 doesn't support IKBD clock through GEMDOS functions at all, and won't initialize GEMDOS clock from IKBD no matter what, TOS 1.2-1.4 won't initialize GemDOS clock from IKBD unless CONTROL.ACC is loaded, TOS 1.6-1.62 need STE_FIX.PRG for that, and TOS 2.06 initializes GemDOS clock from IKBD by default. According to Peter Putnik this is a bug in 1.x TOS as they all contain code required to initialize GemDOS clock from IKBD, but this code is not executed.

Re: RTC guide?

Posted: Sun Nov 10, 2019 6:37 pm
by rubber_jonnie
tzok wrote: Sun Nov 10, 2019 11:11 am I'm not sure if Ricoch chip in MST is Y2K compilant. If it doesn't work you either have to use some autoloaded software patch or a TOS patch to use it. Alternative is to disable it and build/buy another RTC solution (UltraSATAN, ComosEx).

Ricoh RP5C15 for sure uses only 2 digits for year in BCD format, but I'm not sure if it could handle pseudo-BCD years like B9.
Yep, it's a Ricoh RP5C15, just had a look under the hood.

Re: RTC guide?

Posted: Sun Nov 10, 2019 6:41 pm
by stephen_usher
This shouldn't affect the clock setting code though. The clock is read correctly from the UltraSATAN it's just that when it sets the clock the year is 9 years in the future when running TOS 2.06.

Re: RTC guide?

Posted: Sun Nov 10, 2019 8:36 pm
by tzok
I have checked it, and I can confirm this bug in UltraSATAN clock. It tries to set IKBD clock with year 0xB9 and fails to do this, then he reads IKBD clock and receives 0xC8 (no matter which year after 0x99 you'd set). I've tested this on TOS 2.06 and 1.62.

With my IKBD RTC supplicant module it works correctly (but it has no sense, as my module basically is a battery backed-up RTC).

Re: RTC guide?

Posted: Mon Nov 11, 2019 2:10 pm
by Bikerbob
Ok, I am going to take everything in here so far and start writing a guide. please help me with corrections and omissions.

James

Re: RTC guide?

Posted: Tue Nov 12, 2019 5:03 am
by Bikerbob
tzok wrote: Sun Nov 10, 2019 8:36 pm I have checked it, and I can confirm this bug in UltraSATAN clock. It tries to set IKBD clock with year 0xB9 and fails to do this, then he reads IKBD clock and receives 0xC8 (no matter which year after 0x99 you'd set). I've tested this on TOS 2.06 and 1.62.

With my IKBD RTC supplicant module it works correctly (but it has no sense, as my module basically is a battery backed-up RTC).
So in reading your post.. are you suggesting there is a fix? or your just saying your confirming a bug. Weird since this is THE most popular HDD replacement for the Atari ST line that no one has fixed this bug.

There is also this Y2k.prg program.. that sets things 20 years back then forward.. but I am not sure when and when not to use it?

James

Re: RTC guide?

Posted: Tue Nov 12, 2019 6:16 pm
by tzok
There is a (kind of) fix - a plug in module that intercepts RTC calls to the IKBD and substitutes own responses to them. In my case this module not only makes IKBD RTC Y2K compilant, but also has the battery backed up RTC, so using one from UltraSATAN together with it is obsolete.
https://www.exxosforum.co.uk/forum/viewtopic.php?t=544

Re: RTC guide?

Posted: Sun Nov 17, 2019 10:06 am
by ari.tao
Recently there were made some new clocks of different fashion, have a look into
https://forum.atari-home.de/index.php/t ... 263.0.html
Unfortunately the type I liked to prefer, namely the GPS one, seems not to work in my environment, may be the GPS signal doesn´t find it´s way into my cave.

Re: RTC guide?

Posted: Sun Nov 17, 2019 3:53 pm
by Bikerbob
tzok wrote: Tue Nov 12, 2019 6:16 pm There is a (kind of) fix - a plug in module that intercepts RTC calls to the IKBD and substitutes own responses to them. In my case this module not only makes IKBD RTC Y2K compilant, but also has the battery backed up RTC, so using one from UltraSATAN together with it is obsolete.
https://www.exxosforum.co.uk/forum/viewtopic.php?t=544
Thanks Tzok, I have started reading your thread.. funny that I just bought 6 days ago one of those Aduro RTC modules thinking I could make something out of it.. not your exact one.. but I think they all have the same 5pin output. Anyway.. I will most definitely add that to the RTC guide as a fairly easy DIY solution for most people.

James