Syncing ST/STE clock with host
Moderators: simonsunnyboy, thothy, Moderator Team
Syncing ST/STE clock with host
Is it possible to synchronize the clock of an ST/STE with the host to have the current time? As these machines don't have native RTC, I would like to use an AUTO folder programme, for example, as I used to do back in 1990 to read the RTC of the attached hard disk host adapter. Maybe Hatari offers a native feature I could use. Unfortunately I couldn't find any information in the docs.
Re: Syncing ST/STE clock with host
Switch Hatari to MegaST (or MegaSTE) and you get an emulated RTC that is sync'ed to the host.
Re: Syncing ST/STE clock with host
That's what I am doing so far. But I cannot run a Mega STE with TOS 1.62, for example.
Re: Syncing ST/STE clock with host
Run Mega STe with TOS 2.06.
-
- Moderator
- Posts: 5309
- Joined: Wed Oct 23, 2002 4:36 pm
- Location: Friedrichshafen, Germany
- Contact:
Re: Syncing ST/STE clock with host
Anything requiring TOS 1.62 will not care about a clock anyway being games and demos.
Simon Sunnyboy/Paradize - http://paradize.atari.org/
Stay cool, stay Atari!
1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee
Stay cool, stay Atari!
1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee
Re: Syncing ST/STE clock with host
I just want to ensure compatibility. But I think I can solve this problem with a host process (e.g. shell script) which writes the time to a file every two seconds and an AUTO folder program that reads this file.
- Eero Tamminen
- Fuji Shaped Bastard
- Posts: 2315
- Joined: Sun Jul 31, 2011 1:11 pm
Re: Syncing ST/STE clock with host
HW interface to ST real time clock devices differs from the RTC used in Mega ST and newer machines, and nobody has developed support for former. Mainly because they need both HW & auto-folder SW, there's no TOS version supporting them directly. I don't how well /whether the actual HW interfaces were even documented, or whether any of the SW came with (freely distributable) sources.Count wrote:, I would like to use an AUTO folder programme, for example, as I used to do back in 1990 to read the RTC of the attached hard disk host adapter. Maybe Hatari offers a native feature I could use. Unfortunately I couldn't find any information in the docs.
If you would still like NatFeats host time API, send you API spec proposal to hatari-devel mailing list (some patches to implement and test it would help too).
Re: Syncing ST/STE clock with host
I think that isn't necessary anymore. My "hack" described above works pretty well.
Re: Syncing ST/STE clock with host
That's not true, these machines do have RTC, it is only not battery backed up.Count wrote:As these machines don't have native RTC, I would like to use an AUTO folder programme, for example, as I used to do back in 1990 to read the RTC of the attached hard disk host adapter.
Using the inbuilt RTC is also a little bit tricky, because the main clock is GEMDOS software RTC, but XBIOS queries the hardware RTC each time current time info is requested by GEMDOS function. The problem is the hardware RTC is not Y2K compliant.
Please read more here: https://www.exxoshost.co.uk/forum/viewt ... 281#p28281
Based upon that information STeven has adopted the host clock synchronization in STEeM SSE:

- Eero Tamminen
- Fuji Shaped Bastard
- Posts: 2315
- Joined: Sun Jul 31, 2011 1:11 pm
Re: Syncing ST/STE clock with host
Originally emulated Hatari clock was synched to host, but that breaks some (ST) demos [1]. So, nowadays ST & STE clocks aren't synced to host, only emulated Mega and TT/Falcon models are (which have RTC + battery).
[1] Host clock can slightly change when synched to network time, and there's anyway some run-time drift between host clock and what's being emulated, at least when emulation is speeded up or slowed down.
[1] Host clock can slightly change when synched to network time, and there's anyway some run-time drift between host clock and what's being emulated, at least when emulation is speeded up or slowed down.
Re: Syncing ST/STE clock with host
should be able to sync because st timer uses delay or pulse mode
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!