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. BIZZ77GAME menawarkan Pola Maxwin Slot terbaik dengan tanggung jawab penuh dan game fairplay. Keamanan selalu menjadi prioritas kami.

  2. Nikmati serunya bermain judi online kesukaan kita semua di bandar togel online KAOSTOGEL. Akses dengan menggunakan link https://kaostogel.com

  3. profit303slot

    May 19, 2023 at 9:53 am

    profit 303 menawarkan game online terbaik dengan tanggung jawab penuh dan game fairplay. Keamanan selalu menjadi prioritas kami.

  4. I would like to be a backlink with you and I hope you will join us

    ziverdo-kit

  5. We provide Mount Batur Sunrise Trekking the best trip to catch the most beautiful sunrise in Bali on Mount Batur sunrise hiking or Bali sunrise jeep tour for sunrise lover who don’t want to hike.

  6. Bizz Slot Gacor merupakan daftar situs judi slot gacor online terbaik dan terpercaya di Indonesia yang menyediakan pilihan game slot gacor terbaru dan terlengkap

  7. Makin meningkatnya permintaan situs Rupiah 369 membuat banyak situs slot palsu dari luar negeri muncul termasuk di Indonesia. Situs-situs tersebut menawarkan seperti situs RUPIAH369 Pragmatic atau situs lainnya.

  8. sugartekno.com adalah sebuah website yang membahas seputar teknologi, jika kalian butuh informasi berkaitan dengan windows, android, software, hardware

  9. Very nice blog post. I certainly appreciate this site.

  10. We would like to thank you for this beautiful sharing, which has been a confident sharing, we wish you continued sharing. supplier mug coating jakarta

  11. pola slot gacor yang dapat kamu andalkan. Promo terdahsyat kami di Bonus Cashback mix Parlay lose 1 Team Modal Kembali 100% dan Cashback 5% Mingguan.

  12. Kami PT. Ashanua Global Dinamika, perusahaan dalam penjualan dan jasa manufaktur industri. Meliputi TERAL Engineering Services, Penjualan.

  13. When it comes to buying used car engines, transmissions, and other parts, Car Wreckers Melbourne is the best choice. With Engines and Transmissions you can get a wide range of quality parts at affordable prices.

  14. Kontraktor renovasi renovasi rumah murah & bangun rumah. Dapatkan konsultasi gratis disini! Transaksi Aman & Terjamin. Review Terpercaya. Bandingkan Penawaran. Harga Terjangkau. Jadwalkan Survey. Ahli & Berpengalaman. Proses Mudah & Cepat.

  15. [b]https://kumiskiri.com/blog/ merupakan personal blog yang berisi dokumentasi tentang proses pembuatan website wordpress dll dengan logic yang mudah dipahami[/b]

    [b][color=#ff0000][url=https://kumiskiri.com/blog/]Install Website WordPress[/url][/color][/b]

  16. https://kumiskiri.com/ merupakan personal blog yang berisi dokumentasi tentang proses pembuatan website wordpress dll dengan logic yang mudah dipahami

    https://kumiskiri.com/blog/

  17. Salah satu kelebihan memainkan data hk adalah bisa dimainkan dimana saja selama anda memiliki peralatan canggih seperti smartphone atau komputer dengan akses internet.

  18. Fatima Furnitures presents products to help your eye focus on shape, form, color, and function. We’re in one of the top furniture companies in Dubai, Abu Dhabi We Ensure on Time Delivery and Great quality with the latest designs. We are manufaturing all types of home furnishing products like l shape sofa, sofa set, couchs and other. Please visit our website for more info about our products and company.

  19. Zonar is a service marketplace that connects you to nearby service providers in Selangor, Malaysia. Browse, chat and book services for your home within minutes. Enjoy a quick, convenient and secure way to hire Expert services through the Zonar app. Get home services in one app now!

  20. i love your blog for education!

  21. Hi your blog is educational! Thank you for sharing your idea to us

  22. nice tutorial, you help us with your article about how to installing ntp..thanks alot guys

  23. LegalSatu adalah perusahaan yang berfokus pada layanan legalitas, jasa pendirian PT murah, dan perizinan. Dengan pengalaman dan keahlian kami, kami bertujuan untuk membantu perusahaan dan individu mencapai kepatuhan hukum

  24. aset kripto telah didedikasikan untuk menyediakan berita dan panduan terkait mata uang kripto kepada pembaca kami, membantu menginformasikan dan mendidik pembaca kami tentang topik yang benar-benar kami yakini.

  25. دکتر علی جعفری جراح تومور مغزی در تهران

  26. دکتر علی جعفری جراح تومور مغزی در تهران وایران
    تکراری نیست

  27. you write the nice blog, i loved it!

  28. Great tips! Thank you for this information.I am glad seeing this nice website

  29. Thank you for this information

  30. Untuk bisa bergabung menjadi member rtp slot hari ini tentu tidak Susah, langsung klik kolom list dan hanya perlu isi formulir sesuai data pribadi masing-masing sesuai data Valid dan Benar

  31. Sultansawer adalah daftar situs slotgacor online terbaik di Indonesia dan agen online yang memiliki permainan slot online paling populer dan terlengkap saat ini.

  32. Cenforce D 160 is a medication commonly used to treat erectile dysfunction and premature ejaculation. It contains 160mg of Sildenafil Citrate and 60mg of Dapoxetine, which work together to enhance sexual performance. Cenforce D 160 should be taken as directed by a healthcare professional and may have potential side effects.https://sildenafiledcitrate.com/product/cenforce-d-160/

  33. SiOTP adalah all in one service yang dimana penyedia jasa layanan beli otp untuk semua applikasi yang membutuhkan verifikasi.

  34. Website ini merupakan media yang banyak memberikan informasi terbaru yang berhubungan dengan teknologi masakini seperti praktisi digital marketing

  35. Hi I found here very Good Information thanks so much for sharing
    Sapno Ki Chhalaang

  36. Hi I found here very Good Information thanks so much for sharing
    woh toh hay albela

  37. Great article. I’m experiencing a few of these issues as well.

  38. You have very good articles, I am a big fan of your site

  39. Bantal leher bordir promosi untuk perusahaan tour and travel, rumah sakit, hotel, klinik, sekolah, instansi pemerintahan, souvenir pernikahan, souvenir bantal ulang tahun anak dll.

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑