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. Very nice and awesome post! thanks for sharing such a valuable information with us
    Jual burner incinerator

  2. visit our web to read about history of world coffee

  3. افضل شركة للسماد العضوى من شركة البقرا السودا تعرف على عروضنا الان

  4. Toko Karangan Papan Bunga Ucapan Selamat & Sukses, Papan Bunga Duka Cita, Papan Bunga Happy Wedding, Ulang Tahun, Buket dll Hubungi Kami toko bunga di bali , Florist Bali, Tenaga Profesional, Dijamin Paling Rapi. Cukup tlp/whatsapp kami, Antar Cepat. Bunga Baru & Segar. Order sampai tepat waktu. Banyak Pilihan Bunga. Pelayanan 24 Jam.

  5. Downloading and Installing Ring Application on ios devices is as of now less difficult than before. Presently, you can undoubtedly download Ring App for Mac PCs from the ring’s legitimate site. In the wake of downloading the Ring Application on their Mac PCs, customers can control the endeavours and limits that Ring Doorbell contraption performs.

  6. It’s really nice post and. I am a travel blogger. If you want to go anywhere around the world, so visit Delta Airlines Tickets and get vacation packages and cheap flights.

  7. Situs Judi Togel Hongkong merupakan web terbaik untuk kalian rasakan

  8. Great and useful article, thanks for sharing.

  9. he National Football League is a professional American football league consisting of 32 teams, download lagu divided equally between the National Football

  10. Lux Bow Ties is a men’s accessories company that specializes in designer bow ties, pocket squares, cufflinks and other luxury

  11. jasa SEO terbaik dan terpecaya

  12. Thanks for sharing the information, your writing skills are really impressive.garmin.com/express

  13. National Football League is a professional American football league consisting of 32 teams

  14. bandar55 adalah tempat terpecaya untuk taruhan kalian

  15. Really amazing information, thanks for your efforts for this website.

  16. Really amazing information, .thanks for your efforts for this website.

  17. This blog article is really good, can give me innovation to create a website. Thank you very much. http://188.166.224.8/joker123-gaming/judi-slot-online/
    Joker 123

  18. menyewakan balivillas dengan terbaik dan tempat yang nyaman

  19. A great experience I get after reading this blog. If you are a traveller then a GPS device is must for you. To know which is the best GPS device, read our blog.

  20. Salam kenal, saya kudabola88 situs judi online terbesar yang menyediakan ratusan jenis permainan judi online terlengkap dan paling best di Indonesia.

  21. Rekomendasi dan pembahasan film lengkap
    Blog Ipuly – Diskusi Film

  22. SLOT DEPOSIT PULSA adalah tempat terpecaya untuk gambling kalian

  23. SLOT DEPOSIT PULSA adalah tempat terpecaya untuk gambling kalian kalian yaaa

  24. daftar slot online terpercaya hanya di jbmbet http:/128.199.192.155/

  25. daftar slot online terpercaya hanya di jbmbet
    http:/128.199.192.155/

  26. daftar slot online terpercaya hanya di jbmbet http://128.199.192.155

  27. harga office container termurah untuk keperluan kalian

  28. novel sesat adalah media blog yang
    membahas tentang penerjemahan novel, light novel, dan penyedia layanan penerjemahan berkualitas

  29. i cannot install this, plz help me . کاشت ریش

  30. i cannot install this, plz help me . کاشت ریش
    help me to install on my website

  31. qiu qiu online ubah keberuntungan kamu menjadi uang

  32. nonton drama korea di web kami yuuk, dijamin update selalu

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑