At first thank you for your How-To:)
So i tried to follow your tutorial and i got till the point ‚Test GPS‘, but first i have some notes in my case:
gtj wrote:Ok, Here's the process.
-Add dtoverlay=pps-gpio,gpiopin=18 to the end of /boot/config.txt
-Add pps-gpio to the end of /etc/modules
Sure that it's pin 18? You also have the Ultimate GPS HAT? Shouldn't it be pin 4? With pin 4 i get the new line every second running ppstest /dev/pps0 .
gtj wrote:
Build and Install NTP...
Code: Select all
1 $ cd /usr/src
2 $ mkdir ntp
3 $ cd ntp
4 $ wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p1.tar.gz
5 $ tar -xzf ntp-4.2.8p1.tar.gz
6 $ cd ntp-4.2.8p1.tar.gz
7 $ ./configure --enable-all-clocks --enable-parse-clocks --disable-local-libopts --enable-step-slew --without-ntpsnmpd --enable-linuxcaps --prefix=/usr
8 $ make -j5
9 $ sudo apt-get remove ntp
10 $ sudo make install
I'm logged in as pi so I have no permission to write in this folder. So I have to use 'sudo' in line 2, 4, 5, 7, 8 ?
And I think line 6 should be: '$ cd ntp-4.2.8p1' without the .tar.gz?
It should be said that you only use 'make -j5' if you're using a RPi 2, with and RPI B+ it's just 'make'.
So the final folder for the make command should be: /usr/src/ntp/ntp-4.2.8p1 ?
gtj wrote:
[*] Edit /etc/ntp.conf and adjust it as follows...
Code: Select all
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
server 0.debian.pool.ntp.org iburst noselect
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
server 127.127.20.0 mode 84 minpoll 3 iburst prefer
fudge 127.127.20.0 stratum 1 flag1 1 flag2 0 flag3 0 flag4 0 time1 0.0 time2 0.280 refid GPS0
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
Are you sure that mode 84 is right? And if so, whats the difference to 88?
gtj wrote:
Run sudo udevadm trigger to create symlinks /dev/gps0 and /dev/gpspps0[/list]
Is it right that i don’t get an response output here?
gtj wrote:
Test GPS
1. Run
sudo ppstest /dev/pps0. You should see timestamp every second. CTRL-C to exit.
2. Run
gpsinit -s 115200 -f /etc/gpsinit_nav.conf /dev/ttyAMA0 to initialize the GPS unit for testing
3. Run
gpsstatus /dev/ttyAMA0. Do you get a GPS or DGPS fix within 10 minutes? If not,
Read the README at
https://github.com/f5eng/mt3339-utils for instructions on how to initialize
the GPS unit and why it's important.
Point 1 does works, but i got an error with point 2:
Code: Select all
pi@raspberrypi ~ $ gpsinit -s 115200 -f /etc/gpsinit_nav.conf /dev/ttyAMA0
Making sure the unit is in NMEA mode
Making sure the speeds match
Traceback (most recent call last):
File "/usr/local/bin/gpsinit", line 293, in <module>
sys.exit(main() or 0)
File "/usr/local/bin/gpsinit", line 263, in main
fg = get_known_state(args.output_device, args.speed, None, False)
File "/usr/local/bin/gpsinit", line 227, in get_known_state
resp = send_and_wait(fg, "PMTK000", 5)
File "/usr/local/bin/gpsinit", line 97, in send_and_wait
thread = rx_loop_thread(fg)
TypeError: __init__() takes exactly 3 arguments (2 given)
This error als appears when im running the factory reset command, so i can't set it back to factory state.
So i can’t go on, but it is almost done:)