Jeremy W. Langston

Personal Website

Installing and Using NTP with a Garmin 18 GPS (with PPS)

I recently needed to synchronize a Windows XP machine with GPS time.  One of the requirements was sub-millisecond accuracy, which is no small thing for non-RTOS computers.  David Hart to the rescue!  He has written an driver for the NTP (network time protocol) service to incorporate a PPS (pulse per second) signal.  The PPS signal, coming from a GPS, is highly accurate after sufficient time has elapsed for the GPS to sync with the satellites.  I’ve received a lot of help from David Taylor; thanks again, David!  So, without further ado, here’s an example of how to proceed with the installation:

[UPDATE:  from David Hart – “I’ve posted a new serialpps-20091228.zip which should correct that [install.bat bug]. The (huge) debug build of serialpps-ppsapi-provider.dll is also added, along with a tiny bit of instructions in install.bat regarding PPSAPI_DLLS.”]

1.  Configure hardware.
Connect the PPS signal to the DCD pin on the RS232 connector.

2.  Install Meinberg NTP software.
Keep all defaults.
Create and use a special NTP account. (I always had problems using anything else)
Account name:  ntp (use whatever you want)
Account pass:  ntpntp

3.  Stop NTP.
Run “C:\Program Files\NTP\bin\stopntp.bat”.   There are alot of useful utils in the \bin directory.

4.  Replace ntpd.exe with altered version.
Extract “ntpd.exe” from “ntp-4.2.4p6-DLH-QPC-20090315-bin.zip
Copy to “C:\Program Files\NTP\bin”, replacing previous ntpd.exe.

5.  Install SerialPPS.
Extract all from “serialpps-20090606.zip“.
Edit “install.bat”
On line 6, remove ‘if “x86″==”%PROCESSOR_ARCHITECTURE” ‘
Remove line 7 and 8 (you can just put “REM ” in front and they will be ignored, almost like a comment)
Run “install.bat”
Ensure that “serialpps.sys” was copied to “C:\Windows\system32\drivers”
Copy “serialpps-ppsapi-provider\x86\serialpps-ppsapi-provider.dll” to “C:\”
Right-click “My Computer”, go to properties.
Click “Advanced” tab
Click “Environment Variables” button
Under “System variables”, Click “New” button
Name:  PPSAPI_DLLS
Value: C:\serialpps-ppsapi-provider.dll

6.  Configure GPS (for Garmin)
Run “SNSRCFG.exe
Connect to GPS
Configure
Set baud rate to 4800
Enable “Pulse Per Second”
Press F7
Enable GPRMC, disable others
Send config to GPS

7.  Configure NTP
Edit “C:\Program Files\NTP\etc\ntp.conf”
Remove all entries, add the following
driftfile “C:\Program Files\NTP\etc\ntp.drift”
enable stats
statsdir “C:\Program Files\NTP\etc\”
statistics loopstats
server 127.127.22.1 minpoll 4 #PPS
server 127.127.20.1 iburst prefer minpoll 4 maxpoll 7 #GPS
#fudge 127.127.20.1 time1 0.4 refid GPS #uncomment and change time1 as needed

8.  Ensure GPS is connected to serial port 1

9.  Restart computer

10. Unplug GPS and disable Microsoft Ball-mouse (if listed)
Go to device manager: My Computer->Properties->Hardware->Device Manager
Under “Mice and other pointing devices”, right-click and disable “Microsoft Serial BallPoint”

11. Reconnect GPS Restart computer

12. Start NTP server
Run “C:\Program Files\NTP\bin\startntp.bat”

13. Monitor NTP server
Run “C:\Program Files\NTP\bin\ntpstatus.bat”
Both GPS and PPS should show up.  After the GPS gets a lock, NTP should sync to the servers.
Refer to online documentation for help.
Alternatively, use “NTP Time Server Monitor” from Meinberg

To Uninstall PPS driver, run “uninstall.bat”.

50 Comments

  1. Welcome to R. Pearson Electrical & Plumbing, a family-run business based in Leeds, serving customers throughout West Yorkshire. Whether you are looking for an emergency plumber for a leak, have an electrical problem that needs immediate attention, or are just looking to make some home improvements, we can help.

  2. BOLA88
    dikenal sebagai situs yang pertama kali mengenalkan game taruhan sportbook online di Indonesia.

  3. AIRASIABET Airasiabet bandar judi sportbook terbesar dengan pelayanan terbaik untuk semua penggemar judi online. Dengan 1 id saja dan minimal deposit yang sangat terjangkau seluruh member bisa merasakan pengalaman bermain game judi online yang sangat menyenangkan dan menguntungkan seperti game judi sportsbook, idnlive & slots, live casino, bolatangkas, Togel, E-sports dan poker yang bisa dimainkan 24 jam penuh.

  4. buku matematika kelas 5 adalah sebuah buku panduan belajar matematika yang di rancang khusus untuk siswa kelas 5 sekolah dasar

  5. BIGDEWA Raih Keberuntunganmu Bersama BigDewa

  6. kemonbet – The most complete & best online game with lots of players in Indonesia

  7. Thanks for sharing your knowledge. If you’re looking for homework help canada , reach out to us immediately.

  8. If you’re looking for homework help canada , reach out to us immediately.

  9. WINSLOTS8 Bandar Slot Gacor Online Terpercaya Di Indonesia

  10. DEWABET Dewabet – Website Taruhan Judi Bola Online Sbobet Terpercaya

  11. goes to number 1 website journal international, goodluck and link alternatif: Merpatislot88 new updated.

  12. Excellent aspects as well as fine points imparted in this condensed content. Waiting for more posts such as this one.

  13. DEWACASH Raih Keberuntunganmu Bersama DewaCash

  14. I really enjoyed reading this blog. The way you explained everything made it easy to understand. Looking forward to more content like this r homework help canada , reach out to us immediately.

  15. I found your this post while searching for some related information on blog search…Its a good post..keep posting and update the information. liga lotus

  16. ویداکیانی آرایشگر حرفه ای و با سابقه در زمینه آرایش دائم
    https://www.vidakiyani.com/

  17. ویداکیانی آرایشگر حرفه ای و با سابقه در زمینه آرایش دائم است
    https://www.vidakiyani.com/

  18. .ویداکیانی آرایشگر حرفه ای و با سابقه در زمینه آرایش دائم است
    https://www.vidakiyani.com/

  19. Most of the time I don’t make comments on websites, but I’d like to say that this article really forced me to do so. Really nice post! denzeitungen

  20. DEWAGG DewaGG hadir sebagai website yang menyediakan taruhan atau judi e-sport pertama dan terbesar di Indonesia.

  21. IDNGOAL Website Bandar Agen Taruhan Judi Bola Sbobet Online Terpercaya Uang Asli merupakan website pasaran sportbook,

  22. very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post! garage door repair

  23. لطفا برای خرید جوراب با کیفیت از سایت السوان دیدن بفرمایید خرید جوراب زنانه

  24. KLIKFIFA Klikfifa website taruhan bola online nomor 1 di Indonesia

  25. Wow, this website slot gacor is really good. I recommend that you always follow this website because this website is filled with useful articles.

  26. situs gacor dan terpecaya server thailand hanya jakartacash ya bosku
    jakartacash

  27. Nice information. t is very helpfulI

  28. I just couldn’t leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.

  29. This page checks to see if it’s really a human reading the requests , and a website Wijaya99 coming from this network.

  30. SKOR88 Raih Keberuntunganmu Bersama SKOR88

  31. MNC Sekuritas menyediakan layanan platform trading terbaik dan layanan Sekuritas yang lengkap melalui lini bisnis Equity sebagai perantara pedagang efek bagi nasabah retail dan institusional

  32. لقد أصبح من السهل معرفة من زار حسابك في تويتر، كما توجد أكثر من طريقة معتادة يتم استخدامها

  33. visit the most gacor site only at kubet indonesia

  34. IBETWIN Ibetwin Situs Taruhan Online Terbaik di Indonesia

  35. if you want to book a scotland travel packages or flight tickets so contact us via website

    https://scotlandpackage.com/packages/care-packages-scotland

  36. IDNGG IDNGG Bandar Slot Gacor Online Terpercaya & Terbesar Di Indonesia

  37. thanks for sharing that with us, you inspired me to share my medical blog with you it’s about plastic surgery

  38. JAVAPLAY88 Javaplay88 Situs Judi Online Terbaik & Berkualitas

  39. It is a great site WAHANATOGEL and The Design looks very good..
    Don’t forget to visit my website https://203.175.10.31/

  40. TIKETSLOT Raih Keberuntunganmu Bersama TIKETSLOT

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑