[ntp:questions] Help with Oncore PPS - Update

Ron Hahn (EI2JP) ntp-questions at dhco.org
Tue Aug 27 22:02:27 UTC 2013


Colleagues, an update:

I now have the OnCore board actually speaking to the computer. All 
signals including the PPS signal are translated level using a MAX232 
chip, with the PPS signal on the DCD line. I also have the kernel 
recompiled as described on http://blog.doylenet.net/?p=145.

So the everything is appearing to be wired correctly and ntpd is 
communicating with the OnCore board.

Now the output from ntpq -c pe is not looking so good:

[root at jupiter /etc]# /usr/local/sbin/ntpq -c pe
remote refid st t when poll reach delay offset jitter
============================================================================== 

*GPS_ONCORE(0) .PPS. 0 l 3 16 377 0.000 -10099. 1104.94
+140.203.204.77 .GPS. 1 u 485 64 200 14.101 2.354 1169.79
+193.1.31.66 .PPS. 1 u 102 64 202 11.662 3.258 3589.80
+ntp1.oma.be .PPS. 1 u 525 64 200 31.691 0.234 1170.06
+ntp2.oma.be .PPS. 1 u 538 64 200 32.711 -0.314 1174.25
+ntp0.nl.uu.net .PPS. 1 u 539 64 200 31.572 1.197 1173.40
+ntp1.nl.uu.net .PPS. 1 u 142 64 4 29.731 -8965.1 8597.68
+ntp1.rrze.uni-e .DCFp. 1 u 5 64 5 47.427 -3.033 5453.00
+ntp2.rrze.uni-e .PPS. 1 u 333 64 220 44.518 -1.979 2614.28
+i2t15.i2t.ehu.e .GPS. 1 u 1 64 1 65.410 2.802 6437.14
+erquy.linocomm. .PPS. 1 u 3 64 5 48.790 5.516 5469.30
+timehost.lysato .GPS. 1 u 4 64 5 57.677 2.390 5461.05
+ntp2.sp.se .PPS. 1 u 541 64 200 51.998 5.502 1180.60

(sorry about the word wrap)

I can not get any outputs from the ntpdc command so this is to be fixed 
still. Maybe this is a clue?


The other datas:

In my ntpd.log:

------------------
27 Aug 22:31:25 ntpd[93874]: ntpd 4.2.7p364 at 1.2483-o Mon Apr 22 18:07:31 
UTC 2013 (1): Starting
27 Aug 22:31:25 ntpd[93874]: Command line: /usr/local/sbin/ntpd -c 
/etc/ntp.conf -A -g -N -p /var/run/ntpd.pid -l /var/log/ntpd.log
27 Aug 22:31:25 ntpd[93875]: proto: precision = 1.955 usec (-19)
27 Aug 22:31:25 ntpd[93875]: line 55 column 1 syntax error, unexpected 
T_String, expecting $end
27 Aug 22:31:25 ntpd[93875]: syntax error in /etc/ntp.conf line 55, column 1
27 Aug 22:31:25 ntpd[93875]: Listen and drop on 0 v4wildcard 0.0.0.0:123
27 Aug 22:31:25 ntpd[93875]: Listen and drop on 1 v6wildcard [::]:123
27 Aug 22:31:25 ntpd[93875]: Listen normally on 2 re0 172.16.3.6:123
27 Aug 22:31:25 ntpd[93875]: Listen normally on 3 lo0 [fe80::1%8]:123
27 Aug 22:31:25 ntpd[93875]: setsockopt IPV6_MULTICAST_IF 0 for 
fe80::1%8 fails: Can't assign requested address
27 Aug 22:31:25 ntpd[93875]: Listen normally on 4 lo0 [::1]:123
27 Aug 22:31:25 ntpd[93875]: Listen normally on 5 lo0 127.0.0.1:123
27 Aug 22:31:25 ntpd[93875]: peers refreshed
27 Aug 22:31:25 ntpd[93875]: Listening on routing socket on fd #26 for 
interface updates
27 Aug 22:31:25 ntpd[93875]: ONCORE[0]: ONCORE DRIVER -- CONFIGURING
27 Aug 22:31:25 ntpd[93875]: ONCORE[0]: state = ONCORE_NO_IDEA
27 Aug 22:31:26 ntpd[93875]: ONCORE[0]: Input mode = 2
27 Aug 22:31:26 ntpd[93875]: ONCORE[0]: Initializing timing to Assert.
27 Aug 22:31:26 ntpd[93875]: ONCORE[0]: HARDPPS Set.
27 Aug 22:31:26 ntpd[93875]: ONCORE[0]: SHMEM (size = 3628) is 
CONFIGURED and available as /var/log/ntpstats/oncore.0
27 Aug 22:31:26 ntpd[93875]: ONCORE[0]: state = ONCORE_CHECK_ID
27 Aug 22:31:26 ntpd[93875]: ONCORE[0]: Oncore: Resend @@Cj
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: @@Cj
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: COPYRIGHT 1991-1997 MOTOROLA INC.
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: SFTW P/N # 98-P36848P
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: SOFTWARE VER # 2
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: SOFTWARE REV # 2
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: SOFTWARE DATE APR 24 1998
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: MODEL # R5122U1112
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: HWDR P/N # 5
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: SERIAL # R02YWM
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: MANUFACTUR DATE 8G25
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]:
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: This looks like an Oncore UT 
with version 2.2 firmware.
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: Channels = 8, TRAIM = ON
27 Aug 22:31:27 ntpd[93875]: ONCORE[0]: state = ONCORE_CHECK_CHAN
27 Aug 22:31:32 ntpd[93875]: ONCORE[0]: Input says chan = -1
27 Aug 22:31:32 ntpd[93875]: ONCORE[0]: Model # says chan = 8
27 Aug 22:31:32 ntpd[93875]: ONCORE[0]: Testing says chan = 8
27 Aug 22:31:32 ntpd[93875]: ONCORE[0]: Using chan = 8
27 Aug 22:31:32 ntpd[93875]: ONCORE[0]: state = ONCORE_HAVE_CHAN
27 Aug 22:31:33 ntpd[93875]: ONCORE[0]: state = ONCORE_TEST_SENT
27 Aug 22:31:41 ntpd[93875]: ONCORE[0]: GPS antenna: OK
27 Aug 22:31:41 ntpd[93875]: ONCORE[0]: state = ONCORE_INIT
27 Aug 22:31:42 ntpd[93875]: ONCORE[0]: Oncore: Resend @@Cj
27 Aug 22:31:44 ntpd[93875]: ONCORE[0]: Setting Posn from input data
27 Aug 22:31:44 ntpd[93875]: ONCORE[0]: state = ONCORE_ALMANAC
27 Aug 22:31:52 ntpd[93875]: ONCORE[0]: Posn:
27 Aug 22:31:52 ntpd[93875]: ONCORE[0]: Lat = N 53.5666667deg, Long = W 
6.5333333deg, Alt = 34.00m (111.55ft) GPS
27 Aug 22:31:52 ntpd[93875]: ONCORE[0]: Lat = N 53deg 34.0000m, Long = W 
6deg 32.00000m, Alt = 34.00m ( 111.55ft) GPS
27 Aug 22:31:52 ntpd[93875]: ONCORE[0]: Lat = N 53deg 34m 0.00s, Long = 
W 6deg 32m 0.00s, Alt = 34.00m ( 111.55ft) GPS
27 Aug 22:31:52 ntpd[93875]: ONCORE[0]: Cable delay is set to 25 ns
27 Aug 22:31:52 ntpd[93875]: ONCORE[0]: Satellite mask angle set to 0 
degrees
27 Aug 22:31:54 ntpd[93875]: ONCORE[0]: Have now loaded an ALMANAC
27 Aug 22:31:54 ntpd[93875]: ONCORE[0]: state = ONCORE_RUN
27 Aug 22:31:54 ntpd[93875]: ONCORE[0]: SSstate = ONCORE_SS_TESTING
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: ONCORE: Detected TRAIM, TRAIM = ON
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: Input says TRAIM = 0
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: Model # says TRAIM = 1
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: Testing says TRAIM = 1
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: Using TRAIM = 0
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: Initiating hardware 3D site survey
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: SSstate = ONCORE_SS_HW
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: PPS Offset is set to 0 ns
27 Aug 22:31:55 ntpd[93875]: ONCORE[0]: Satellite mask angle is 0 degrees
27 Aug 22:32:02 ntpd[93875]: ONCORE[0]: 3586627922.088268942 2013 239 21 
31 55 2 rstat 08 dop 0.0 nsat 13,0 traim 0,x,x sigma xx neg-sawtooth xxx 
sat 00000000
27 Aug 22:32:03 ntpd[93875]: ONCORE[0]: 3586627923.047687527 2013 239 21 
31 56 3 rstat 08 dop 0.0 nsat 13,0 traim 0,x,x sigma xx neg-sawtooth xxx 
sat 00000000
27 Aug 22:32:04 ntpd[93875]: ONCORE[0]: 3586627924.046268073 2013 239 21 
31 57 4 rstat 08 dop 0.0 nsat 13,0 traim 0,x,x sigma xx neg-sawtooth xxx 
sat 00000000
27 Aug 22:32:05 ntpd[93875]: ONCORE[0]: 3586627924.985872688 2013 239 21 
31 58 4 rstat 08 dop 0.0 nsat 13,0 traim 0,x,x sigma xx neg-sawtooth xxx 
sat 00000000
27 Aug 22:32:06 ntpd[93875]: ONCORE[0]: 3586627926.044888568 2013 239 21 
31 59 6 rstat 08 dop 0.0 nsat 13,1 traim 0,x,x sigma xx neg-sawtooth xxx 
sat 03050000
27 Aug 22:32:07 ntpd[93875]: ONCORE[0]: 3586627927.044118359 2013 239 21 
32 0 7 rstat 08 dop 0.0 nsat 13,2 traim 0,x,x sigma xx neg-sawtooth xxx 
sat 05050000
------------------

The ntpdc command is not giving me any output:

[root at jupiter /etc]# /usr/local/sbin/ntpdc -c sysi
localhost: timed out, nothing received
***Request timed out

I have these links from my device to the first hardware serial port:

[ronhahn at jupiter /dev]$ ls -al oncore.*
lrwxr-xr-x 1 root wheel 10 Aug 24 22:53 oncore.pps.0 -> /dev/cuau0
lrwxr-xr-x 1 root wheel 10 Aug 24 22:54 oncore.pps.1 -> /dev/cuau0
lrwxr-xr-x 1 root wheel 10 Aug 24 22:53 oncore.serial.0 -> /dev/cuau0
lrwxr-xr-x 1 root wheel 10 Aug 24 22:53 oncore.serial.1 -> /dev/cuau0

I have the following configuration files:

[ronhahn at jupiter /etc]$ ls -al ntp*
-rw-r--r-- 1 root wheel 3769 Aug 27 22:31 ntp.conf
-rw-r--r-- 1 root wheel 1301 Aug 25 00:44 ntp.oncore
lrwxr-xr-x 1 root wheel 12 Aug 24 23:53 ntp.oncore.0 -> ./ntp.oncore
lrwxr-xr-x 1 root wheel 12 Aug 25 22:38 ntp.oncore0 -> ./ntp.oncore

In my ntp.conf:

------------------
server 127.127.30.0 prefer
fudge 127.127.30.0 refid PPS
pps /dev/oncore.pps.0 assert hardpps

In my ntp.oncore:


[ronhahn at jupiter /etc]$ cat ntp.oncore
#
# Oncore UT+ configuration file
#
# mandatory lines

MODE 2 # put GPS into position hold mode. Uses
# the position data in the next section.
# In position hold mode only one satellite is
# needed to get accurate time data and timing
# information is more accurate.

# for the next config items see the winoncore section below
LON -6 32 #insert your own longitude here
# this will be negative if you are in the
# western hemisphere.
LAT 53 34 #insert your own latitude here
HT 34.0 M #insert your own GPS height here

# optional lines
DELAY 25 NS #delay is approx 5 ns/m cable (I have 10m antenna cable)
ASSERT #positive edge is synced to UTC epochs,
# will need to be changed to CLEAR if the pps
# signal is inverted. ASSERT is the default.

#SHMEM <directory location>/oncore.<X>
SHMEM /var/log/ntpstats/oncore.0
# again match .<X> to naming used for other files and device symlinks
# where <directory location> is something
# like /var/log or /var/log/ntp or /var/log/ntpstats but
# make sure this directory exists

MASK 0 # optional I use 10 which masks satellites close to the horizon
# -- try 2013-08-25 00.07 RH
TRAIM NO
HARDPPS
------------------
Thank you,

Ron
-- Ron Hahn, EI2JP
Dublin, Ireland

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the questions mailing list