Hi all
I have been asking around for help on other forums with this problem but noone has come up with a solution thus far. I hope that someone out there can help.
I am trying to get my model B pi to work with a bu-353 GPS. I have achieved some success but I can't get ntp to automatically fetch the time on boot.
I followed the instructions here
http://blog.retep.org/2012/06/18/getting-gps-to-work-on-a-raspberry-pi/
but found that I needed to make a few modifications to get cgps working
Here's what I did
sudo apt-get install gpsd gpsd-clients python-gps
I then ran
sudo dpkg-reconfigure /etc/gpsd
to set gpsd to automatically boot. I added -n in the options but didn't put in /dev/ttyUSB0 as the port but rather left it to automatically find the USB plug.
I then manually edited GPSD and added in
chmod a+rw /dev/ttyUSB0
The reason for these two tweaks is that the gps was not loading up properly and cgps -s just waited a few seconds and went back to the command line. The tweaks seem to have fixed that.
Now if I start my pi and then put in the comamnd line
cgps -s
I can see what the gps is seeing, location information sats etc all in text format. If I run xgps I can see a graphical version of this. This works every time although can take a coupel of seconds to get a fix.
So far so good.
Per the web page I now proceed to try and set up ntp
sudo apt-get install ntp
Installation is probably unnecessary as ntp is already installed.
Now I go to the /etc directory and sudo nano ntp.conf and add in the following lines
# gps ntp
server 127.127.28.0 minpoll 4
fudge 127.127.28.0 time1 0.183 refid NMEA
server 127.127.28.1 minpoll 4 prefer
fudge 127.127.28.1 refid PPS
and then type
sudo service ntp restart
Ntp restarts. cgps-s continues to work ok but my time does not update like it should. Although I can get a fix on satellites and can see the time in cgps it doesn;t get picked up by NTP like it should.
How can I get NTP to load up the time from satellites at boot properly with the above setup? I would be grateful for some help as I am a beginner at Linux and I think a lot of people out there would like to know how to set up a cheap gps like this with the Pi.
Thanking you
Peter