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”.

52 Comments

  1. sr12 herbal skincare merupakan produk perawatan wajah sekaligus tubuh yang terbuat herbal dan bahan-bahan alami. Dapatkan di toko online kami https://geraisr12.com/

  2. Duniafilm21 Situs nonton film onlinesubtite indonesia terlengkap dan hemat kuota.

  3. Youwatch Situs nonton drama korea subtite indonesia terlengkap dan hemat kuota.

  4. Dutafilm situs download film indonesi aterbaik gaess, monggo mampir…

  5. Really great and useful post, thanks for sharing.

  6. Distributor oli industri adalah salah satu perusahaan yang bergerak bergerak di bidang Supplier dan Distributor oli pelumas dan grease gemuk untuk industri, mesin kapal, alat berat dan mesin kendaraan.

  7. Lk21 Semi hanya menyajikan film unggulan untuk kalian pencinta film semi

  8. We are a provider that provides free premium ssh free SSH server (Dropbear & OpenSSH), VPN account, OpenVPN server with protocol SSL/TLS UDP/TCP, V2ray Server, ShadowSocks, PPTP, WireGuard VPN and Proxy List, we use the faster servers around the world from a variety of data center server we had.

  9. Game for real money Game for real money If you like to play the game and want to earn money from playing that game, you must here siamruay, the popular online betting game, such as the blow-up, chu-chu, head-koi, high and low, just guess it correctly and get money to use. Easy to use It’s convenient to be where you can play through your mobile phone. Open to play 24 hours a day

  10. temukan tips dan trick terbaru seputar game di website kami https://aoicyber.blogspot.com

  11. Thank You for Share Your Knowledge.

  12. Harika bir site sohbet chat odalari ucretsiz chat mobil sohbet

  13. dutafilm merupakan tempat nonton film subtitle Indonesia dengan kualitas HD secara gratis. Streaming film box office terbaru dan tempat Download terbaru.

  14. Bandar ceme online terpecaya untuk jadi pilihan utama kalian

  15. Jasa Kirim Barang Ke Seluruh Indonesia

  16. agen bandarq sangat aman dan terpecaya untuk pilihan kalian bertaruh dengan tenang

  17. En iyi islami sohbet dini sohbet odalari

  18. ATT Email Login is performed by various users around the globe. This mail service provides the user with the best benefits to its user in every possible way. The user can perform this by following some of the easiest steps. Enter the username and password.
    https://emaillogin.info/att-email-login/

  19. thanks for the information boss

    thank you

  20. Nonton film bioskop 21 box office hanya di situs Bos21 sebagai layanan nonton film gratis terbaik.

  21. یخچال فریزر ، ساید بای ساید ، یخچال فریزر دوقلو ، یخچال هتلی
    همگی در سرویس برتر تعمیر میشوند

  22. Yuvam sohbet odalari sohbet uygulamasi

  23. website https://www.bolamas888.com/Main.aspx merupakan Judi Bola terpecaya untuk tempat bertaruh team kesayangan kamu

  24. Install the Meinberg NTP port for Windows – download here: http://www.meinbergglobal.com/english/sw/ntp.htm
    Installation instructions are here.
    For Windows Vista and Windows-7 I recommend installing to C:\Tools\ rather than C:\Program Files\
    Download the latest development binaries for Windows here.
    Stop the NTP service, and overwrite the files in C:\Tools\NTP\bin\ with those from the download.
    Restart the NTP service and make sure it all works – your Firewall might need to be told about changed program versions.
    Set your GPS so that it only sends $GPRMC sentences only at 4800 baud. Too many sentences won’t allow one per second. This setting will depend on what your GPS receiver allows.
    Attach your GPS to a free COM port, and note the COM port number (e.g. COM4).
    Add a line to your ntpd.conf like:
    server 127.127.20.4 minpoll 4 prefer # NMEA serial port
    The fourth number in the IP-address like field (127.127.20.4) should be the COM port number – 4 in this example.
    Connect your GPS to your PC, and follow any steps to remove the “Microsoft Serial BallPoint Mouse” which has appeared in the Device Manager – details http://www.gpsmap.net/GarminHints.html#GPSR_ComputerMouse
    Reboot, and check that NTP is working correctly. An “ntpq -p” should include the line: *GPS_NMEA(4) where the port number is in brackets.
    If running on Windows Vista or Windows-7, try setting the system environment variable NTPD_USE_INTERP_DANGEROUS = 1, restart NTP, and see whether it improves the timekeeping performance.
    For 64-bit systems, where unsigned drivers are not allowed, see here: NTP on Vista and Windows-7

  25. pleasant data and great blog. thanks much for the article

  26. very goood.
    We hope you evaluate our website specialized in designing home gardens.
    http://landscaperaghad.blogspot.com/2020/03/tansekhdayek.html

  27. very goood.
    We hope you evaluate our website specialized in designing home gardens.
    landscaperaghad.blogspot.com/2020/03/tansekhdayek.html

  28. Teşekkür ediyorum Sayın yonetici sohbet odaları ile eğlenceli vakit geçirebilirsiniz

  29. Casinoroyal7 tempat daftar judi slot online terbaik yang mengedepankan sistem fairplay, deposit kilat dan pembayaran withdraw secara penuh yang hanya diberikan oleh agen slot terpercaya di Indonesia.

  30. We are an independent and faithful third-party tech support service provider who is not connected or associated with any of the companies and business until and unless such type of relationship is specified.

  31. nice content what you sharing to us , come and ping back to us .

  32. nice content what you sharing to us, thank you

  33. hasil togel terlengkap semua pasaran tersedia.

  34. It’s very well explained, thanks for sharing this content with us.

  35. It’s very well explained, thanks for sharing this content with us and this is very very useful for us.

  36. domino777 merupakan website andalan kalian untuk memenangkan banyak uang

  37. Khasoft is a technology site that provides information on the latest updated driver software

  38. Bambang Sunarwibowo merupakan calon kapolri yang baru

  39. Hand Stations is the best Nilaqua Hand Sanitiser selling website. you can buy the best affordable and discount price. hand stations 100% trusted website. you can busy Nilaqua Hand Sanitiser easily. we have a proud history of supplying quality products. Our first business, Hillside Hand Dryers, was founded in 2016 to supply and service for UK businesses.
    Nilaqua Hand Sanitiser

  40. Get exciting deal on your flight booking. Search your preferred destinations and get the best discounts on domestic and international flights.
    JetBlue Airways manage booking
    Do Hurry, Grab unbeatable Offers
    Call for exclusive deals: 1-888-595-2181
    Domestic | International | Flight Reservation Deals
    #airlinesupports #ChristmasFlights #NewYearFlights #AirlineSale #FlightSale #domesticflight #international #Cheapflights #Lowairfare #BookFlight #Airline #Tickets #Airfare #Airlineticket #Sale #Discounts #Flight #flighttoUSA #FlighttoCanada #Europetour #Newyear

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑