Windows NTP Paket fuer HOPF Industriefunkuhren ============================================== Das Paket ist fuer HOPF Funkuhren mit serieller Schnittstelle und HOPF PCI-Karten vorkonfiguriert. 1) Installation =============== - Das Paket wird mittels RedHat Package Manager (RPM) installiert: "rpm -U " 2) Konfiguration ================ 2.1) HOPF Funkuhren ------------------- A) Verwendung mit HOPF Funkuhren mit serieller Schnittstelle ------------------------------------------------------------ - Ein Link von der seriellen Schnittstelle, an die die Funkuhr angeschlossen ist, muss auf /dev/hopfclock0 angelegt werden. Dazu muss einer der folgenden Befehle als root-user ausgefuehrt werden: ln -s /dev/ttyS0 /dev/hopfclock0 oder ln -s /dev/ttyS1 /dev/hopfclock0 oder ln -s /dev/ttyS2 /dev/hopfclock0 oder ln -s /dev/ttyS3 /dev/hopfclock0 ... - Serielle Kommunikation: Die Funkuhr muss einen Hopf 6021 kompatiblen String mit UTC-Zeit liefern. Die serielle Schnittstelle ist wie folgt zu konfigurieren: Uebertragungsparameter: 9600 Baud, 8 Datenbits, 1 Stopbit, keine Paritaet Datenstring: *) Hopf Standard 6021 *) Ausgabe jede Sekunde *) Zeitbasis: UTC *) mit Sekundenvorlauf *) Steuerzeichen ETX zum Sekundenwechsel mit Verzoegerung *) LF->CR Die Funkuhren werden ueblicherweise genau mit diesen Einstellungen ausgeliefert; falls bereits Aenderungen vorgenommen wurden, koennen diese entweder ueber die mitgelieferte Remotesoftware (z.B. Modelle 4465, 6870, 6875) oder ueber die Tastatur an der Frontblende (z.B. Modelle 6842, 6855) angepasst werden. ACHTUNG: Das Verbindungskabel sollte nur die RX und TX Leitungen verwenden! - Die Datei /etc/ntp.conf muss dementsprechend angepasst werden. B) Verwendung mit HOPF 6039 PCI Funkuhrenkarten ----------------------------------------------- - Bevor dieses NTP-Paket in Verbindung mit der Hopf 6039 PCI-Karte verwendet werden kann, muss das notwendige Treibermodul installiert sein, welches im Lieferumfang der Hopf 6039 enthalten ist. Hinweise zur korrekten Installation finden Sie in der zum Installationspaket beigefuegten README-Datei. - Die Datei /etc/ntp.conf muss dementsprechend angepasst werden. 2.2) Zusaetzliche Server ------------------------ Falls der Rechner nicht mittels Hopf-Uhr, sondern nur ueber Ethernet mit Zeit versorgt wird bzw. wenn zusaetzliche Zeitserver eingetragen werden sollen, so ist dies mittels server-Direktive moeglich, z.B. server 192.168.1.8 server timeserv.domain.com Diese Eintraege wuerden bedeuten, dass die Zeit von den Zeitservern 192.168.1.8 und timeserv.domain.com angefragt wird. 2.3) Logging ------------ Standardmaessig werden alle Meldungen nach Syslog protokolliert. Soll statt dessen in einer eigenen Datei mitprotokolliert werden, muss ein dementsprechender Eintrag in /etc/ntp.conf erfolgen, z.B: logconfig =syncall +clockall logfile /var/log/ntp/ntpd.log 2.4) Driftfile -------------- Die Standardkonfiguration enthaelt einen Eintrag, der den Pfad des Driftfiles angibt. Das Mitfuehren eines Driftfiles ist zu empfehlen, das Verzeichnis muss allerdings existieren und der Daemon muss dementsprechende Schreibrechte auf die Datei erhalten. 2.5) Zusaetzliche Konfigurationsoptionen ---------------------------------------- Es gibt zahlreiche moegliche Konfigurationsoptionen (Restrictions, Authentication, etc.), die standardmaessig nicht in der Konfiguration enthalten sind. Details zu den moeglichen Optionen sind der NTP-Dokumentation zu entnehmen. 3) Inbetriebnahme ================= Der Daemon wird standardmaessig nach einem Systemstart nicht automatisch gestartet, ein dementsprechender chkconfig-Eintrag ist jedoch im Start/Stop-Script (/etc/init.d/ntpd) vorbereitet. Der Daemon wechselt nach dem Start standardmaessig die Benutzerzugehoerigkeit auf den User ntp / Gruppe ntp. Diese Option kann u.a. in der Datei /etc/sysconfig/ntpd geaendert werden bzw. koennen zusaetzliche Startoptionen fuer den ntp Daemon angegeben werden. Details zu den moeglichen Optionen sind der NTP-Dokumentation bzw. den man-Pages zu entnehmen. In dem Paket sind alle Monitoring- bzw. Hilfstools der NTP-Distribution enthalten (ntpdate, ntpdc, ntp-keygen, ntpq, ntptime, ntptrace, ntp-wait), welche in das Verzeichnis /usr/sbin installtiert werden. Details zur Verwendung entnehmen Sie bitte den mitgelieferten man-Pages oder der NTP Dokumentation. Anmerkungen zum korrekten Betrieb --------------------------------- Damit der NTP-Daemon korrekt funktioniert, darf die Differenzzeit des Systems und der Funkuhr nicht groesser als 1000s sein! Eventuell mit date die Systemzeit anpassen und anschliessend den Daemon starten. Bei Fragen oder Installationsproblemen wenden Sie sich bitte an unser Support-Team unter der eMail-Adresse: support-hopf@rdcs.at Aktualisierte Versionen erhalten Sie auf unserer WWW-Seite: http://www.rdcs.at/ ------------------------------------------------------------------------------- RedHat/Fedora NTP package for Hopf radio controlled clock systems ================================================================= This package is preconfigured for Hopf radio controlled clock systems with a serial interface and Hopf PCI cards. 1) Installation =============== - the package has to be installed using the RedHat Package Manager (RPM): "rpm -U " 2) Configuration ================ 2.1) HOPF radio controlled clocks --------------------------------- A) Using a Hopf radio controlled clock with a serial interface -------------------------------------------------------------- - create a symbolic link from the appropriate serial interface device where the clock is connected to /dev/hopfclock0 using one of the following commands: ln -s /dev/ttyS0 /dev/hopfclock0 or ln -s /dev/ttyS1 /dev/hopfclock0 or ln -s /dev/ttyS2 /dev/hopfclock0 or ln -s /dev/ttyS3 /dev/hopfclock0 ... - Serial Communication: The clock system has to send a Hopf 6021 compatible string with UTC time. The serial interface has to be configured as follows: Communication parameters: 9600 bauds, 8 data bits, 1 stop bit, no parity Data string: *) Hopf Standard 6021 string *) transmission every second *) timebase: UTC *) with second forerun enabled *) Control Character ETX on second change with string delay *) LF->CR The radio controlled clocks are usually shipped with the required configuration. If already changes have been made, configuration can be done using the shipped remote software (e.g. models 4465, 6870, 6875) or the keypad at the front panel (e.g. models 6842, 6855). ATTENTION: You have to use a serial cable with only RX and TX connected! - the file /etc/ntp.conf has to be adapted accordingly B) Using a Hopf 6039 PCI card ----------------------------- - before this NTP package can be used in conjunction with the Hopf 6039 PCI card, the necessary driver module has to be installed. This module is shipped together with the PCI card. Installation hints are included in the README of the installation package. - the file /etc/ntp.conf has to be adapted accordingly 2.2) Additional Servers ----------------------- If the computer has to be synchronized via Ethernet or if additional servers have to be specified, the server configuration parameter can be used, e.g. server 192.168.1.8 server timeserv.domain.com These entries would mean that time would be retrieved from the NTP time servers 192.168.1.8 and timeserv.domain.com. 2.3) Logging ------------ All messages are logged to syslog per default. If ntpd should log to a particular file, ntp.conf has to be modified accordingly, e.g. logconfig =syncall +clockall logfile /var/log/ntp/ntpd.log 2.4) Drift file --------------- The standard configuration includes a driftfile configuration parameter which is recommended. The directory of the drift file (/var/lib/ntp per default) must exist and the daemon needs the corresponding write rights to the file. 2.5) Additional Configuration Options ------------------------------------- NTP supports much more configuration options than specified in the default ntp.conf (e.g. Restrictions, Authentication, etc.). Please consult the NTP documentation for possible additional options. 3) Operation ============ The ntp daemon is not started automatically after reboot but the start/stop script /etc/init.d/ntpd is prepared to be used with chkconfig. After startup, ntpd is configured to switch to user ntp / group ntp. This startup option can be changed beside other ntp startup options in the configuration file /etc/sysconfig/ntpd. Please consult the NTP documentation or the man pages for possible additional options. This package contains all monitoring/helper tools of the standard NTP distribution (ntpdate, ntpdc, ntp-keygen, ntpq, ntptime, ntptrace, ntp-wait). They are all installed into /usr/sbin. Please consult the man pages included in this distribution or the NTP documentation for detailed usage information. Comments for proper use of NTP ------------------------------ The NTP daemon only works properly if the time difference between the system clock and the radio controlled clock is not greater then 1000 seconds! Set the system time if necessary before starting the daemon. If you do have any questions or encounter any installation troubles please feel free to contact our support team using the following e-mail address: support-hopf@rdcs.at You also can get new versions on our WWW site: http://www.rdcs.at/