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

51 Comments

  1. If someone was interested in configuring an ntpserver on linux – How to install and configure NTP on linux

  2. Thanks for the writeup. I’m embarrassed by the install.bat bug you spell out how to work around. I’ve posted a new serialpps-20091228.zip which should correct that. 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.

  3. GPS NTP TimeServer Frequently asked questions – maybe someone will be interested in general info about NTP Servers.

  4. Hi Jeremy,
    I have been trying hard to do this, but a step by step instruction was hard to find. Do you have any results that I can take a loot at. I read somewhere that although the NTP servers run very accurately sync to GPS, the NTP clients when they read the timestamps,there is a lot of jitter. Please help

  5. Shital, your best bet is to look at David Taylor’s website. He has several charts from various computers and configurations.

  6. Thanks for your sharing. Does ntpd from “ntp-4.2.4p6-DLH-QPC-20090315-bin.zip” support baud rate of 9600?

  7. I have not tried it and I personally have not looked through the code to see if it is supported. David Hart has posted his source code. That would be a place to start.

  8. What is the advantage of running both PPS and GPS_NMEA drivers simultaneously? They both seem to support PPS on the Windows build, and I am getting almost exactly the same offset from each.

    23 Feb 23:03:15 ntpd.exe[668]: Using user-mode PPS timestamp for GPS_NMEA(1)
    23 Feb 23:03:15 ntpd.exe[668]: GPS_NMEA(1) 8024 84 reachable
    23 Feb 23:04:02 ntpd.exe[668]: PPS(1) 8024 84 reachable

  9. To: “Thanks for your sharing. Does ntpd from “ntp-4.2.4p6-DLH-QPC-20090315-bin.zip” support baud rate of 9600?”

    Yes, it should.

    To: “What is the advantage of running both PPS and GPS_NMEA drivers simultaneously? They both seem to support PPS on the Windows build, and I am getting almost exactly the same offset from each.”

    The ATOM (PPS) driver can run in kernel mode, and thereby get more precise timestamps (less subject to other system activity). I made one brief comparison on Windows XP SP3 here:

    http://www.satsignal.eu/ntp/NTP-on-Windows-serial-port.html#kernel

    Cheers,
    David Taylor

  10. Follow your steps i have installed it …but i don’t know how to update my PC time;I star NTP server and monitor NTP server,i can see NTP stauts….I set a wrong time on my PC ,My PC time doesn’t update the corrcet time.

  11. could you suggest me some nice GPS softwares.. I planning install one in my car..

  12. mahmoud eladawy

    October 6, 2015 at 9:21 am

    I had similar problem to open abaqus from grid computer and my problem got solved with -mesa flag, abaqus cae -mesa, but the display is very slow, each movement takes ages to load on the screen. I have NVIDIA card. Is there any thing we can do to improve the display loading on the screen. شركة نقل عفش بالرياض

  13. It is a technical article which defines some high level of technical things about Installing and Using NTP with a Garmin 18 GPS (with PPS). Very useful for me…
    create facebook apps

  14. This is such a brave step by installing & using NTP with a Garmin 18 GPS. I really like to read and research the new technological things.

  15. This is a very important update & thanks for mentioning the whole procedure. Also I have thankful to Mr. David Hart & Mr. David Taylor that they done a fantastic job.

  16. I have not tried it and I personally have not looked through the code to see if it is supported. David Hart has posted his source code. That would be a place to start.شركة تنظيف بالرياض

  17. Provide you with Al Rayan high quality living accommodation deal and superior performance in the arts of hygiene in respect of places public and private First: places special Kalqsour, villas, apartments, kitchens and offices as cleaning floors, walls and washing of carpets and rugs and cleaning Alantreat and Rushd pesticides to combat insects and liposuction unpleasant odors The company offers special offers for Tndev villas and palaces progress the company’s comprehensive program of cleaning and control at the highest level and the latest equipment and the best workers trained well on the means to help the cleanliness of all places, even small ones, and difficult to access and that accompanied supervisors specialists to follow up the work line and delivered in the best quality شركة تنظيف بالرياض

  18. This is such a brave step by installing & using NTP with a Garmin 18 GPS. I really like to read and research the new technological things.

  19. This is such a brave step by installing & using NTP with a Garmin 18 GPS. I really like to read and research the new technological

  20. hard to find. Do you have any results

  21. it is a nice site i hope i visit it again

  22. Thanks for this great article.

  23. Thanks for this great article

  24. Thanks for this great article

  25. I had similar problem to open abaqus from grid computer and my problem got solved with -mesa flag, abaqus cae -mesa, but the display is very slow, each movement takes ages to load on the screen. I have NVIDIA card. Is there any thing we can do to improve the display loading on the screen

    شفط الصرف الصحي بالدمام

  26. شركة نقل اثاث وعفش بالمدينة المنورة وينبع

  27. شركة ذات العماد للخدمات بالمدينة المنورة

  28. Paul Bednarchik

    March 4, 2017 at 2:00 pm

    links to various files needed to install the ntp server do not work. Could you direct me to where I can get these files?
    Thanks

    New serialpps-20091228.zip which should correct that [install.bat bug].
    ntp-4.2.4p6-DLH-QPC-20090315-bin.zip
    serialpps-20090606.zip

  29. Paul Bednarchik

    March 4, 2017 at 2:00 pm

    links to various files needed to install the ntp server do not work. Could you direct me to where I can get these files?
    Thanks

    New serialpps-20091228.zip which should correct that [install.bat bug].
    ntp-4.2.4p6-DLH-QPC-20090315-bin.zip
    serialpps-20090606.zip

  30. كما ان جودة التنظيف الخاص بتنظيف الموكيت تعتمد علي نوعيته مع استخدام المكينات الحديثه وبالاضافه الي الايدي العامله المدربه حديثا شركة مكافحة حشرات بالخرج

  31. had similar problem to open abaqus from grid computer and my problem got solved with -mesa flag, abaqus cae -mesa, but the display is very slow, each movement takes ages to load on the screen. I have NVIDIA card. Is there any thing we can do to improve the display loading on the screen.شركة تخزين عفش بالرياض

  32. توجد الان فروع من شركة مكافحة حشرات بمكة وتوفر جميع مواد الاباده و القضاء علي الحشرات المختلفة في جميع فروع شركة ابادة حشرات بمكة و الرياض و جدة

    http://www.el3nod.com/5/company-anti-insect-termite-Pesticides-mecca

  33. توجد الان فروع من شركة مكافحة حشرات بمكة وتوفر جميع مواد الاباده و القضاء علي الحشرات المختلفة في جميع فروع شركة ابادة حشرات بمكة و الرياض و جدة

    http://www.el3nod.com/5/company-anti-insect-termite-Pesticides-mecca

  34. يوجد الان خصومات من توكيل يونيون اير علي عمليات صيانة يونيون اير والمراكز الشاملة للصيانة توفر عرض علي صيانة كاريير الدورية لخدمات صيانة كاريير الدورية المستمره

    http://www.maintenanceg.com/Unionair-Agent-Company-Service.html
    http://www.maintenanceg.com/Carrier-Agent.html

  35. نحرص في صيانه سوني وصيانه جليم جاز على تقديم الخدمة لكافة عملائنا على مستوى الجمهورية من خلال

    فروعنا ومن خلال فروع الصيانه المتنقلة على مستوى الجمهورية الموقع الالكتروني

    http://www.maintenanceg.com/Sony-Agent-Service-Company.html

    http://www.maintenanceg.com/Glemgaz-Agent-Center-Egypt.html

  36. شركة تسليك مجاري بالدمام – بالخبر – بالجبيل – بالاحساء – بالقطيف
    شركة المهندس شركة تسليك مجارى بالدمام_ بالاحساء_ الجبيل الخبر_ القطيف_ سيهات_براس تنورة هل لديك مشاكل فى الصرف الصحى وهى تعمل على عموم الفوضى فى بيتك وفى شارعك وهى تعوق عملك ومرورك وتضيع وقتك ومالك وتجعل مظهر بيتك قبيح وتعمل على جذب جميع الحشرات وتكون رائحتها كريهه وتبحث عن شركه متميزه ولديها الخبره فى عمليات التسليك وتعمل على حل مشكلتك بسرعه واتقان وتجد هذه الامور واكثر فى شركة المهندس
    شركة شفط الصرف الصحى بالدمام
    https://el-mohandes1.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D8%B3%D9%84%D9%8A%D9%83-%D9%85%D8%AC%D8%A7%D8%B1%D9%8A-%D8%A8%D8%A7%D9%84%D8%AF%D9%85%D8%A7%D9%85/
    . شركة تسليك مجارى بالدمام فنحن نمتلك الخبره فلدينا عمال ماهرون ذات خبره عاليه من كثرة العمل فى تسليك المجارى فلا تقف امامهم اى مشكله ويمكنهم حلها بسهوله ونحن نمتلك الات متطوره ومعدات حديثه من الات تقوم بضخ الماء وضخ الاكسجين والات تقوم بشفط الماء ونحن نستخدم افضل المواد التى تعمل على اذابة الدهون والزيوت شركة تسليك مجارى بالدمام
    شركة شفط الصرف الصحى بالخبر
    https://el-mohandes1.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D8%B3%D9%84%D9%8A%D9%83-%D9%85%D8%AC%D8%A7%D8%B1%D9%89-%D8%A8%D8%A7%D9%84%D8%AE%D8%A8%D8%B1/
    ؟ ونحن نقدم خدمات عديده ومتنوعه منها خدمة تنظيف المطابخ فمع تنظيف اوانى الطهى تسقط بقايا الاطعمه والزيوت والدهون ثم تتراكم وتعمل على انسداد البلاعات وقد تسقط مواد صلبه تقوم بالانسداد وبعد ذلك مع الاستعمال يمتلىء المكان بالماء الملوث ذات الرائحه الكريهه والممتلئ بالجراثيم والميكروبات وهذا يعوق حركتك فى منزلك ويسبب فى جذب الحشرات والاصابه بالعديد من الامراض شركة تسليك مجاري بالقطيف
    شركة شفط الصرف الصحى بالجبيل
    https://el-mohandes1.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D8%B3%D9%84%D9%8A%D9%83-%D9%85%D8%AC%D8%A7%D8%B1%D9%89-%D8%A8%D8%A7%D9%84%D8%AC%D8%A8%D9%8A%D9%84/
    . فنحن نعمل على تسليك البلاعات بسوست معدنيه تعمل على تسليكه واستخدام مواد ذات مفعول قوى فى اذابة الدهون وتسليكه باسياخ تعمل على ازالة المواد الصلبه وبقايا الاطعمه المتراكمه ثم نقوم بشفط الماء الموجود فى بيتك وتنظيف الارضيات من الاصفرار واستخدام معطرات ومطهرات لنجعل بيتك نظيف مره اخرى ذات رائحه جميله وخالى من الجراثيم ونحن نقوم بتسليك مواسير الحمامات للتخلص من اى سدود شركة تسليك مجارى بالاحساء
    شركة شفط الصرف الصحى بالاحساء
    https://el-mohandes1.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D8%B3%D9%84%D9%8A%D9%83-%D9%85%D8%AC%D8%A7%D8%B1%D9%89-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/
    ولدينا خدمة تسليك البيارات والبلاعات بجميع احجامها فلدى شركة المهندس لعمليات التسليك بمدينة الدمام سيارات ضخمه بها اجهزه حديثه تعمل على شفط المجارى ثم ضخ ماء او اكسجين حتى تتم عملية التسليك ولدينا عمال مدربون على استعمال الاسياخ فى عمليات التسليك وهذا ما يسمى بالسليك اليدوى شركات تسليك مجاري بالدمام
    . ونحن نستخدم احدث الالات المتطوره ليتم الكشف عن اماكن الانسداد والات للكشف على المواسير لتاكد من خلوها من العيوب ونحن فى شركتنا نعطى ضمان على عملنا لاننا متاكدون مما نقدمه من خدمات لاننا نتميز بالخبره والاتقان والامانه والمصداقيه فلا تبتعد عن الافضل وهى شركة المهندس للقيام بعمليات تسليك المجارى شركة تسليك مجاري بالجبيل
    شركة شفط الصرف الصحى بالقطيف
    https://el-mohandes1.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D8%B3%D9%84%D9%8A%D9%83-%D9%85%D8%AC%D8%A7%D8%B1%D9%89-%D8%A8%D8%A7%D9%84%D9%82%D8%B7%D9%8A%D9%81/
    فهناك شركات تقوم بعمليات تسليك المجارى ثم تعود المشكله مره ثانيه وذلك لانهم يقومون بحل المشكله الظاهره ولايقومون بالبحث عن المشكلات الغير ظاهره بعكس شركتنا ونحن فى شركتنا نقدم جميع خدماتنا باسعار تناسب الجميع وبعض الناس يبحثون عن شركه تكون فى مدينتهم حتى تخلصهم من المشكله سريعا وهى لا تتميز بالخبره ولا بالجوده لذلك نحن انشانا فروع فى جميع انحاء الدمام حتى نكون بالقرب من جميع عملائنا شركة تسليك مجاري بالخبر

  37. Happy Eid 2017,Happy Eid Mubarak SMS for Whatsapp Happy Eid Mubarak Photos Wallpapers,Happy Eid Mubarak Wishes Quotes Happy Eid Mubarak Greetings,Happy Eid Mubarak Shayari for Friends
    http://www.eid2017.info/

  38. ركن نجد افضل شركة نقل اثاث بالرياض والتى تقدم كافة خدمات الفك والتغليف والنقل من اي حي من أحياء الرياض ولكافة احياء الرياض كما اننا نقدم افضل خدمات النقل الدولي …

  39. تعلن مؤسسة ابراج دبي عن فريق عمل شركة مكافحة حشرات بالخبر الذي يتميز بالكفائه والخبرة في اداء العمل المطلوب منه وباسرع وقت ممكن .
    http://abraj-dubai.net/%D8%B4%D8%B1%D9%83%D8%A9-%D9%85%D9%83%D8%A7%D9%81%D8%AD%D8%A9-%D8%AD%D8%B4%D8%B1%D8%A7%D8%AA-%D8%A8%D8%A7%D9%84%D8%AE%D8%A8%D8%B1-%D8%A8%D8%A7%D9%84%D8%AC%D8%A8%D9%8A%D9%84/

Leave a Reply

Your email address will not be published.

© 2024 Jeremy W. Langston

Theme by Anders NorenUp ↑