[ntp:questions] Re: CTS, Serial Port, and a Sun v210
Stewart Pelegan
spelegan at csc.com
Tue Apr 5 12:54:13 UTC 2005
Thanks to everyone for their suggestions. I'm getting closer but....
I was able to set the TrueTime box to 9600 bps, 8 data bits, and no
parity, but there was no mention of the stop bits. What should they be
set to?
I manually set the time on the TrueTime box to a week from now, hoping
that once xntpd started, I'd see that everything was working properly.
Well, I didn't get any errors, but the system time didn't change. After
reading some of the pages on the ntp sites, I'm thinking that maybe ntp
threw out the TrueTime number because it was so much different than the
current time. Is there any way I can confirm this? Is there any way I
can make ntp set the system time to whatever it reads from the serial
port, no matter how out of whack the numbers are? I tried:
server 127.127.5.0 true
and
tinker panic 0
but that doesn't seem to work.
On the ntp web sites, I saw some stuff on how log files are formatted.
Here's what's in my clockstats file:
$ cat clockstats
53464 67990.348 127.127.5.0 root
53464 68955.399 127.127.5.0 ps -ef
53464 68969.801 127.127.5.0 ps
53464 73888.070 127.127.5.0 read
The first number is supposed to be a julian date. When is the epoch day
for this julian date?
Also, is there any way I can confirm that data is being received on the
serial port?
Thanks.
Stewart Pelegan
Computer Sciences Corporation
301.921.3206
Fax: 301.921.0985
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the use of
e-mail for such purpose.
----------------------------------------------------------------------------------------
mike <michael.no.spam.cook
@wanadoo.fr>
Sent by: questions-bounces
04/02/2005 04:04 PM
To: questions at lists.ntp.isc.org
cc:
Subject: [ntp:questions] Re: CTS, Serial Port, and a Sun
v210
Stewart Pelegan wrote:
> I have a requirement to get Sun v210 system time updates via a serial
> port(either rs-232 or rs-422) from a Coded Time Source(CTS). As a proof
> of concept, I was able to get a TrueTime Model XL-DC with GPS. It has a
9
> pin serial port that's now connected to the v210's serial port and
that's
> about all I know. Can I just use a Solaris build of the xntp daemon and
> I'll get input from the serial port? Do I need to do something with the
> ntp config file? The salesman who lent me the TrueTime device knew of
no
> software I could use. I know very little about this, so any help in the
> right direction would be appreciated. Thanks.
>
> Stewart Pelegan
> Computer Sciences Corporation
> 301.921.3206
> Fax: 301.921.0985
>
>
>
----------------------------------------------------------------------------------------
> This is a PRIVATE message. If you are not the intended recipient, please
> delete without copying and kindly advise us by e-mail of the mistake in
> delivery. NOTE: Regardless of content, this e-mail shall not operate to
> bind CSC to any order or other contract unless pursuant to explicit
> written agreement or government initiative expressly permitting the use
of
> e-mail for such purpose.
>
----------------------------------------------------------------------------------------
I don't have one of these so I can't give a definitive answer, but a
quick check shows you can get a manual from
http://www.symmetricom.com/media/pdf/manuals/xl-dc-manual.pdf
so you can configure it.
You get the time in a 60PPS asci coded string on the serial port by
default, with the start bit of the ending CR/LF sequence being sent on
the second mark from the GPS receiver. This is quoted as +- 1ms of the
GPS second.
I believe the NTP driver to use is type 5, so add the following to the
ntp.conf file. The Solaris xntpd standard distrib should support this.
server 127.127.5.u # where u is your serial interface device
you are going to have to create a device link , as the driver uses
/dev/trueu. The driver uses 9600 baud, 8-bits, no parity comms so
you will probably have to set the XL-DC baud rate from the control panel.
Hope that points you in the right direction.
_______________________________________________
questions mailing list
questions at lists.ntp.isc.org
https://lists.ntp.isc.org/mailman/listinfo/questions
More information about the questions
mailing list