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. The entire glance of your website is excellent, as smart as the content!

  2. bandungfilterair

    August 9, 2023 at 7:46 pm

    Ady Water menawarkan berbagai produk dan jasa toko filter air sebagai solusi permasalahan air Bapak Ibu sekalian. Baik untuk kebutuhan rumah tangga hingga industri, Ady Water jagonya!

  3. bandungfilterair

    August 9, 2023 at 7:48 pm

    Ady Water menawarkan berbagai produk dan jasa toko filter air sebagai solusi permasalahan air Bapak Ibu sekalian. Baik untuk kebutuhan rumah tangga hingga industri, Ady Water jagonya.!

  4. jakartafilterair

    August 9, 2023 at 7:51 pm

    Di Ady Water, kami menyediakan paket pemasangan toko filter air menggunakan tabung FRP berisikan media filter air sesuai dengan masalah air yang Bapak Ibu hadapi.

  5. Your blog is very inspiration, i hope my website Rajapola can be same.

  6. It’s actually a cool and helpful piece of info.
    I am glad that you simply shared this useful info
    with us. Please keep us informed like this. Thank
    you for sharing.

  7. It’s really a cool and supportive piece of data.
    I am happy that you simply basically shared this valuable information
    with us. It would be ideal if you keep us educated like this. Thank
    you for sharing.

  8. termal kaplıca otelleri fiyat ve konaklama ile ilgili bilgiler bulunan blog sitemizde tatil otelleri hakkında bilgiler yer alıyor

  9. Ketika anda bingung apakah harus membeli atau menyewa container kini tak perlu bingung lagi sebab keduanya bisa anda dapati Bersama kontainer Surabaya

  10. https://boundstems.com/ Giga188 telah hadir untuk anda pada tahun 2023 memperkenalkan platform baru bagi anda para pencinta permainan slot online hanya dengan satu langkah mudah untuk mengakses situs permainan slot

  11. aladdin138 Situs slot online memiliki banyak sekali macam aliran yang sangat menarik. Daftar slot gacor online terpopuler ini harus dirancang oleh situs judi online terbaik.

  12. RTP Giga Slot deposit pulsa tanpa potongan menjadi permainan yang sedang tren saat ini. Anda juga bisa bergabung bersama bettor lainnya dalam hiruk pikuk permainan slot tergacor deposit pulsa.

  13. very informative content to share.thanks for this wonderful post

  14. kaptenwin Situs Judi SLOT Online Terbesar dan Terpercaya. Agen Togel dengan banyak Diskon.

  15. “Great guide! ⏰🛰️ This article on installing and using NTP with a Garmin 18 GPS (with PPS) is a valuable resource for anyone looking to synchronize time accurately. The step-by-step instructions provided for setting up NTP synchronization using the Garmin 18 GPS are clear and well-structured. The inclusion of the PPS (Pulse Per Second) feature adds precision to timekeeping applications. It’s wonderful to see the integration of technology like GPS to enhance time accuracy. This post will undoubtedly benefit those working on projects where accurate timing is crucial, from scientific research to network systems. Thanks for sharing your expertise and making this technical process more accessible to others! ⏱️🌐 #TimeSynchronization #GPSTechnology #TechnicalGuide”
    dunialiterasi

  16. خرید مستقیم نهال از نهالستان
    Direct purchase of seedlings from the nursery

  17. thanks for sharing information
    کلینیک زیبایی در رشت

  18. very good article
    فروشگاه ارخالق

  19. membahas beberapa langkah penting yang dapat Anda ikuti untuk mencapai kesuksesan dalam loker terbaru mencari pekerjaan di tahun 2023.

  20. Toto Slot adalah salah satu situs terpercaya yang memiliki lisensi resmi dari pagcor dan sudah sangat di percaya oleh masyarakat indonesia terkhusus yang sangat suka bermain slot online.

  21. Link Macanbola Website Game Online Terlengkap dan Terbaik di Indonesia. Menyediakan berbagai macam Permainan Game Online seperti Online Sportsbook Betting, Virtual Betting, Permainan Kartu, Casino Live Game, dan Game Slot Gacor.

  22. usually posts some quite exciting stuff like this. If youre new to this site

  23. mac torrent download and play files near-instantly inside your browser. * Having trouble installing on Mac? Find the solution here. Free Download.

  24. Fildena 150mg tabletis a generic drug that is an alternative to the famous Viagra and even contains the same active ingredient found in Viagra itself. The drug improves potency and causes a strong, prolonged, and long erection. One pill should be taken half an hour to an hour before need.

  25. Fildena 150mg tablet is a generic drug that is an alternative to the famous Viagra and even contains the same active ingredient found in Viagra itself. The drug improves potency and causes a strong, prolonged, and long erection. One pill should be taken half an hour to an hour before need.

  26. We have an excellent selection of ladies who are not only beautiful but also intelligent and outspoken. Book our VIP Escort in Kolkata now for unlimited sensual pleasure.

  27. My name is Neha from Kolkata. Anyone meet me for fun and pleasure?

  28. panen138 slot dikembangkan sebagai bandar judi online dengan banyak fitur dan keungulan yang memudahkan para membernya

  29. Your compose website and article is ver nice, thankyou somuch. Can support my website to: Kanjengslot

  30. Toko Bunga Serang adalah toko bunga Serang Banten yang memiliki kualitas bunga nomer satu. Kami menawarkan berbagai jenis bunga untuk keperluan acara, mulai dari buket bunga hingga papan bunga.

  31. Kamu bisa mengunjungi situs ini untuk mendapatkan informasi seputar berita terbaru Utarapost.id

  32. panen138 slot dikembangkan sebagai bandar judi online dengan banyak fitur dan keungulan yang memudahkan para membernya

  33. Buy seedlings from the nursery

  34. bestonlinepharmacy is the most extensive and independent website for medical information online. Our mission is to be the most reliable online prescription and health-related information source. This goal will be accomplished by providing independent, thorough, current information in a style that is simple and straightforward for both consumers and healthcare professionals.

  35. I’m looking forward to new ones great article

  36. I’m looking forward to new ones
    thanks

  37. Before considering cenforce 150 mg or any other ED medication, it’s essential to consult a healthcare professional

  38. Teak Furniture Malaysia operates as a specialist importer of best quality Furniture shop Malaysia solid wood furniture, indoor furniture, Garden Furniture and outdoor furniture . Visit Our Showroom Kuala Lumpur KL and Shah Alam Selangor Malaysia.

  39. کلینیک زیبایی در رشت
    nice article

  40. Kinemodpro is your home to read reviews and download apk of popular free Android Apps and Games across the web like WhatsApp, Facebook Messenger, …

  41. Watch Anupama Today Full Episodes on Star Plus and Hot Star, We presents Yo Desi Serial All Videos Online in High Quality.

  42. I needed to thank you for this excellent read!!

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑