On Wed, Jul 09, 2008 at 06:52:44PM +0700, riwanlky wrote: > I want my OpenBSD 4.3 to get clock from my serial GPS device. > > The device is working > # cu -l /dev/cua00 -s 4800 > Connected > $GPRMC,113516.000,A,0608.4965,S,10651.2976,E,0.07,229.06,090708,,,A*75 > $GPRMC,113517.000,A,0608.4964,S,10651.2975,E,0.04,193.07,090708,,,A*76 > $GPRMC,113518.000,A,0608.4963,S,10651.2974,E,0.07,144.19,090708,,,A*79 > $GPRMC,113519.000,A,0608.4962,S,10651.2974,E,0.06,159.34,090708,,,A*7B > $GPRMC,113520.000,A,0608.4962,S,10651.2974,E,0.08,246.72,090708,,,A*70 > $GPRMC,113521.000,A,0608.4961,S,10651.2973,E,0.07,231.23,090708,,,A*7E > $GPRMC,113522.000,A,0608.4960,S,10651.2973,E,0.16,129.40,090708,,,A*73 > > then > # ldattach -s 4800 nmea /dev/cua00 > # sysctl hw.sensors > hw.sensors.lm1.temp0=72.00 degC > hw.sensors.lm1.temp1=61.50 degC > hw.sensors.lm1.temp2=59.00 degC > hw.sensors.lm1.volt0=1.23 VDC (VCore A) > hw.sensors.lm1.volt1=2.58 VDC (VCore B) > hw.sensors.lm1.volt2=3.33 VDC (+3.3V) > hw.sensors.lm1.volt3=4.97 VDC (+5V) > hw.sensors.lm1.volt4=0.00 VDC (+12V) > hw.sensors.lm1.volt5=-14.91 VDC (-12V) > hw.sensors.lm1.volt6=-7.71 VDC (-5V) > hw.sensors.lm1.volt7=4.97 VDC (5VSB) > hw.sensors.lm1.volt8=0.58 VDC (VBAT) > hw.sensors.nmea0.timedelta0=25024.555114 secs (GPS autonomous), OK, Thu > Jul 10 01:35:50.555 > > so the device is working, however when I do ntpd > # ntpd -ds > listening on 127.0.0.1 > listening on ::1 > listening on fe80:4::1 > listening on 192.168.1.200 > listening on fe80:1::20d:b9ff:fe0c:d404 > listening on 192.168.3.200 > listening on fe80:2::20b:6bff:fe87:6739 > ntp engine ready > no reply received in time, skipping initial time setting > 0 out of 1 peers valid > bad peer nmea0 (not resolved) > > my ntpd.conf > # cat /etc/ntpd.conf > # $OpenBSD: ntpd.conf,v 1.8 2007/07/13 09:05:52 henning Exp $ > # sample ntpd configuration file, see ntpd.conf(5) > > # Addresses to listen on (ntpd does not listen by default) > listen on * > > # sync to a single server > #server ntp.example.org > server nmea0
server != sensor See man ntpd.conf -Otto