Hello there,
I wanted to use the attached GPS Mouse of my Fon2100 to get the current time before I fire up my Kismet Server.
So I installed gpsd (2.37) and ntpd (Ver. 4.2.4p6), both via opkg (8.09 RC 2 installed).
I did start gpsd with gpsd /dev/ttyS0 -D 5 -n -N to see my data and it works. I can connect with cgps to the Fon and see GPS Data (valid one) and time as well - so GPS and stuff works.
I changed the /etc/ntp.conf to
# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
#restrict default nomodify notrap noquery
#restrict default noquery
restrict 127.0.0.1
driftfile /tmp/ntp.drift
#server 0.openwrt.pool.ntp.org iburst
#server 1.openwrt.pool.ntp.org iburst
#server 2.openwrt.pool.ntp.org iburst
#server 3.openwrt.pool.ntp.org iburst
server 127.127.28.0 minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0.035 refid GPS
server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid GPS1
# GPS(NMEA)+PPS
#server 127.127.20.0 minpoll 4 prefer
#fudge 127.127.20.0 flag3 1 flag2 0
# SMA PPS
#server 127.127.28.0 minpoll 4 prefer
#fudge 127.127.28.0 refid PPS flag3 1
#server 192.168.1.253
started ntpd with ntpd -g
and watch the data with ntpq -p
sadly thats everything:
root@OpenWrt:/etc# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
SHM(0) .GPS. 0 l - 16 0 0.000 0.000 0.122
SHM(1) .GPS1. 0 l - 16 0 0.000 0.000 0.122
so it seems he doesnt get any time data...
how can i fix that?
Thanks,
DeusEx