Getting NTP to talk to CDMA Clock via Serial Port
Getting NTP to talk to CDMA Clock via Serial Port
- Subject: Getting NTP to talk to CDMA Clock via Serial Port
- From: Sean Peisert <email@hidden>
- Date: Thu, 9 Sep 2004 10:41:35 -0700
I have a Praecis CT CDMA clock connected to my xServe via the serial port:
http://www.endruntechnologies.com/network-time-source.htm
The xServe, a G4 model, is running Mac OS X Server 10.3.5.
I am able to connect to the clock and see its output successfully by
using ZTerm and pointing it to the /dev/tty.serial device, but I am
having trouble getting NTP to recognize the device. The NTP version
I'm using is 4.2.0 with TRUETIME and ATOM enabled. I made a symlink
from /dev/true0 to /dev/tty.serial and likewise for /dev/pps. I
turned off remote connection in
/System/Library/StartupItems/SerialTerminalSupport and rebooted.
My /etc/ntp.conf has the line "server 127.127.5.0 prefer".
Ordinarily, on my FreeBSD box, if I tell NTP to talk to 127.127.5.0,
it should see /dev/true0, but it doesn't seem to happen on my OSX box.
Any suggestions? I get these error messages in the syslog:
Aug 31 11:14:07 ltlp1 ntpd[7414]: ntpd email@hidden-r Fri Aug 27
15:59:43 PDT 2004 (7)
Aug 31 11:14:07 ltlp1 ntpd[7414]: precision = 1.000 usec
Aug 31 11:14:07 ltlp1 ntpd[7414]: frequency initialized 0.000 PPM
from /etc/ntp.drift
Aug 31 11:14:07 ltlp1 ntpd[7414]: fcntl(F_SETOWN) fails for clock
I/O: Inappropriate ioctl for device
Aug 31 11:14:07 ltlp1 ntpd[7414]: internal error: refclockio
structure not found
Aug 31 11:14:07 ltlp1 ntpd[7414]: configuration of 127.127.5.0 failed
Aug 31 11:14:07 ltlp1 ntpd[7414]: frequency initialized 0.000 PPM
from /etc/ntp.drift
Aug 31 11:14:11 ltlp1 ntpd[7414]: ntpd exiting on signal 2
I get these messages in the ntpd debugging output (among others):
init_io: maxactivefd 12
local_clock: at 0 state 0
getnetnum given 127.127.5.0, got 127.127.5.0
key_expire: at 0
peer_clear: at 0 assoc ID 13916 refid INIT
refclock_open: fd 14 modem status 0x6
refclock_ioctl: fd 14 flags 0x1
addto_syslog: fcntl(F_SETOWN) fails for clock I/O: Inappropriate
ioctl for device
addto_syslog: internal error: refclockio structure not found
addto_syslog: configuration of 127.127.5.0 failed
Regards,
Sean
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.