Dear Florian,
thanks for your replay.
no, I'm not sure that this line "refclock shm unit 1 minpoll4 maxpoll
4 refid PPS flag4 1 prefer" is correct.
I don't remember where I found it.
In my configuration I need to adjust my raspberry time to a gpsd pps
time. (I need precision time) but I don't know how to exactly
configure the file ntp.conf.
Where can I find all documentation about ntp.conf configuration string?
Thanks,
Massimiliano
Il giorno lun 21 set 2020 alle ore 14:14 Florian Kiera
<florian.kiera@logicway.de> ha scritto:
Heyo Massimiliano,
are you sure that the line 16 "refclock shm unit 1 minpoll4 maxpoll 4 refid PPS flag4 1 prefer" is
correct? May its supposed to mean ""refclock shm unit 1 minpoll 4 maxpoll 4 refid PPS flag4 1
prefer" (a little mistake with a missing whitespace?). Sadly I dont have anything to test it with. Just some
random guess as "refclock shm unit 0 time1 -0.0900 refid GPS flag4 1 noselect" etc dont have any issue
with column 12 (last latter of the shm).
Regards
Florian
Am 21.09.20 um 13:09 schrieb Massimiliano Fago:
Dear all,
(gpsd: 3.21.1~dev (revision release-3.21-209-g3cbf9bf1a)
and
ntpd ntpsec-1.1.9+ 2020-09-21T10:50:13Z (git rev 4f3fed2aa))
I recently noticed that I have this error when starting the ntpd service:
set 21 13:00:29 raspberrypi ntpd[1114]: INIT: Command line:
/usr/local/sbin/ntpd -g
set 21 13:00:29 raspberrypi ntpd[1114]: 2020-09-21T13:00:29 ntpd[1114]: INIT:
ntpd ntpsec-1.1.9+ 2020-09-21T10:50:13Z (g
set 21 13:00:29 raspberrypi ntpd[1114]: 2020-09-21T13:00:29 ntpd[1114]: INIT:
Command line: /usr/local/sbin/ntpd -g
set 21 13:00:29 raspberrypi systemd[1]: Started Network Time Service.
set 21 13:00:29 raspberrypi ntpd[1115]: INIT: precision = 0.989 usec (-20)
set 21 13:00:29 raspberrypi ntpd[1115]: INIT: successfully locked into RAM
set 21 13:00:29 raspberrypi ntpd[1115]: CONFIG: readconfig: parsing file:
/etc/ntp.conf
set 21 13:00:29 raspberrypi ntpd[1115]: CONFIG: line 16 column 12 syntax error,
unexpected T_String, expecting T_EOC
set 21 13:00:29 raspberrypi ntpd[1115]: CONFIG: syntax error in /etc/ntp.conf
line 16, column 12
set 21 13:00:29 raspberrypi ntpd[1115]: LOG: switching logging to file
/var/log/ntpd.log
my ntp.conf is this:
#pool us.pool.ntp.org iburst
#driftfile /var/lib/ntp/ntp.drift
#logfile /var/log/ntp.log
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1 mask 255.255.255.0
restrict -6 ::1
restrict 192.168.14.0 mask 255.255.255.0
# GPS PPS reference (NTP1)
#server 127.127.28.2 minpoll 4 maxpoll 4 prefer true
#fudge 127.127.28.2 refid PPS
##fudge 127.127.28.1 flag1 1
refclock shm unit 1 minpoll4 maxpoll 4 refid PPS flag4 1 prefer
# GPS Serial data reference (NTP0)
#server 127.127.28.0 minpoll 4 maxpoll 4
#fudge 127.127.28.0 time1 0.9999 refid GPS
refclock shm unit 0 time1 -0.0900 refid GPS flag4 1 noselect
#MFA aggiunto il 30/09/2019
#server 127.127.43.0 # standard Linux RTC
#Log
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
Thanks,
Massimiliano
--
###############################################################
Florian Kiera Tel: (0385) 3993 93 58
Logic Way GmbH
Hagenower Strasse 73 HTTP: http://www.logicway.de
19061 Schwerin email: mailto:florian.kiera@logicway.de
###############################################################
--
Massimiliano Fago
Senior Software Engineer
massimiliano.fago@gmail.com
skype: massimomfa