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

30 Comments

  1. I read your blog, hello. This is very fantastic

  2. Thank you very Much For Sharing this Useful information

  3. yalla shoot live بوابتك إلى الأحداث الرياضية في الوقت الحقيقي
    هي الخدمة المتميزة التي يقدمها موقع يلا شوت الجديد، والتي توفر بثًا مباشرًا للأحداث الرياضية في الوقت الحقيقي. هذه الخدمة موجهة خصيصًا للمشجعين الذين يكونون دائمًا في حالة تنقل ويرغبون في متابعة أحداثهم الرياضية المفضلة بشكل مباشر. مع Yalla Shoot Live، يمكن للمستخدمين الوصول إلى بث عالي الجودة للمباريات مع تأخير ضئيل، مما يضمن لهم عدم تفويت أي لحظة من الحدث. تم تحسين المنصة لتوفير تجربة مشاهدة سلسة، حتى على الأجهزة المحمولة، مما يجعلها متاحة في أي وقت وفي أي مكان.
    ما يميز Yalla Shoot Live هو التزامها بتقديم تجربة مشاهدة غير منقطعة وعالية الجودة. توفر الخدمة روابط بث متعددة لكل مباراة، مما يضمن أن يكون لدى المستخدمين خيار بديل في حالة وجود أي مشاكل في الاتصال. بالإضافة إلى ذلك، تقدم المنصة تعليقًا مباشرًا مفصلاً، وإحصائيات المباريات، وميزات تفاعلية تسمح للمستخدمين بالتفاعل مع المحتوى أثناء المشاهدة. سواء كنت تتابع مباراة كرة قدم مشوقة أو مباراة تنس مثيرة، فإن Yalla Shoot Live تغطي لك كل شيء.

  4. Paito Cambodia, Paito Warna Cambodia, Paito Cambodia Harian Terbaru.

  5. Great article, very useful indeed

  6. matka 420 Bahis siteleri yeni giriş adresleri ve güncel bonuslar ile herkese kazandıran kaçak bahis siteleri hakkında en son gelişmeler. Bahis 7/24 ile anında sizlerle…

  7. you post again soon. Big thanks for the useful info. totoslot4d

  8. هل تبحث عن معلومات دقيقة وموثوقة؟ هل ترغب في قراءة مقالات شيقة ومفيدة؟ موقع معرف هو وجهتك المثالية!

  9. If you are living in the state of Telangana then you can now treat yourself by taking spa services in every part of Telangana. You can easily find female to male body massage in hyderabad through the website.

  10. a game that has cute characters and money givers. visit to see it slot lucky neko

  11. شركة سكاي لايف للعطلات تجربة سفر لا تُنسى من دبي
    شركة سكاي لايف للعطلات هي شركة إماراتية مقرها الرئيسي في دبي، متخصصة في تنظيم وتصميم الرحلات السياحية خارج الإمارات. بخبرة تتجاوز 20 عامًا في مجال السياحة والسفر، تُعد سكاي لايف للعطلات الخيار الأول للكثير من المسافرين الذين يبحثون عن تجارب سفر مميزة وذات جودة عالية. تقدم الشركة خدمات متعددة تلبي جميع احتياجات العملاء، مع اهتمام خاص بتوفير تجربة شخصية ومصممة حسب الطلب. يتميز فريق العمل في سكاي لايف للعطلات بكفاءته واحترافيته، مما يجعل العملاء يعودون مرة بعد مرة ويُرشحون الشركة كوجهة سفر موثوقة للآخرين.

    خبرة تفوق 20 عامًا في مجال السياحة
    ما يميز سكاي لايف للعطلات هو الخبرة الواسعة التي تتجاوز 20 عامًا في مجال السفر والسياحة. هذه الخبرة ليست مجرد رقم، بل تعني فهمًا عميقًا لاحتياجات المسافرين ورغباتهم. لقد أتاح لنا العمل في هذا المجال لمدة طويلة فرصة التعرف على أفضل الوجهات السياحية وأفضل الأوقات للسفر، إضافة إلى القدرة على تقديم نصائح قيمة للمسافرين بناءً على تجارب سابقة. نعتبر خبرتنا الطويلة إحدى أعمدة نجاحنا، حيث نستخدمها لتقديم خدمات استثنائية وتجارب سفر لا تُنسى.

  12. oh wow very nice post thanx for sharing

  13. دانلود دوره های آموزشی خارجی از کورس برتر
    دوره های آموزشی خارجی

  14. دانلود دوره های آموزشی خارجی از کورس برتر

  15. Your article content is being very much interested, I am very impressed with your post. I hope to receive more great posts.

  16. Connect the Garmin 18 GPS to your computer For most setups, this will involve connecting the GPS receiver to a serial port or USB-to-serial adapter. This will make your computer work easier.
    Posted by female to male massage in bangalore

  17. Connect the Garmin 18 GPS to your computer For most setups, this will involve connecting the GPS receiver to a serial port or USB-to-serial adapter. This will make your computer work easier.
    Posted by female to male massage in bangalore.

  18. اسشو مرجع آموزش های آنلاین برای بانوان
    https://assho.ir/

  19. Daftar Menggunakan Link Alternatif BDGROUP Slot Gacor Mjp.

  20. Login Mudah di Playbook88 dan Akses Link Alternatif
    Proses login Playbook88 sangat mudah dan cepat. Cukup masukkan username dan password untuk mulai bermain. Jika Anda mengalami kendala akses, tersedia link alternatif Playbook88 yang dapat digunakan untuk tetap terhubung tanpa gangguan. Link alternatif ini penting untuk menghindari pemblokiran dan memastikan pengalaman bermain yang lancar.

    https://playbook88sistem.com

  21. Massage for the body can provide the most relaxing and spiritual satisfaction. It is an extremely difficult job performed by a professional female therapists

  22. Thanks for this detailed guide on installing and using NTP with a Garmin 18 GPS (with PPS)! It provides clear, step-by-step instructions that are really helpful for setting up precise time synchronization. Kudos to David Hart and David Taylor for their contributions to making this process smoother.

    For further assistance or if you need help with other assignments, feel free to check out websites like The
    assignment help for study resources and assignment help.

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑