Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NTP PPS False Ticker?

    Scheduled Pinned Locked Moved General pfSense Questions
    16 Posts 3 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Mmm, tweaking the fudge times seems to have got me there though with a 3ms offset....

      [2.5.0-DEVELOPMENT][admin@2220.stevew.lan]/root: ntpq -c pe
           remote           refid      st t when poll reach   delay   offset  jitter
      ==============================================================================
      oGPS_NMEA(0)     .GPS.            0 l    9   16  377    0.000    2.998   0.001
       0.pfsense.pool. .POOL.          16 p    -   64    0    0.000    0.000   0.000
      -ntp3.wirehive.n 195.66.241.2     2 u   46   64  377   12.833    1.890   0.440
      -ams.aput.net    131.176.107.13   2 u   43   64  177   15.963    2.575   1.267
      -jdrcomputers.co 206.189.118.143  3 u   38   64  225   10.913   -1.082   0.380
      +ns1.do.steersne 195.66.241.2     2 u  111   64  176   11.381    3.048   0.231
      -ntp1.wirehive.n 195.66.241.10    2 u   53   64  377   11.836    2.332   0.318
      +68.183.253.148  85.199.214.102   2 u  112   64  332   11.772    2.819   0.233
      +85.199.214.102  .GPS.            1 u   50   64  377   12.514    2.645   0.402
      -fifi.m.faelix.n 90.155.74.42     3 u   47   64  373   18.100    1.513   0.176
      

      Hmm

      1 Reply Last reply Reply Quote 0
      • A
        AWBbox
        last edited by

        That's looking better, did you have to do anything to get just one active peer? I ended up leaving the server alone for a couple of days at a time to 'settle' in between trying different things so maybe worth leaving yours a while and seeing how it fares.

        1 Reply Last reply Reply Quote 0
        • kiokomanK
          kiokoman LAYER 8
          last edited by kiokoman

          afaik in the first screenshot of steve only the pps is taken from the GPS_NMEA, and the reference clock is taken from 85.199.214.100
          false ticket maybe?
          you restarted ntpd 2 hours ago but check now if you are still on one active peer or is back to the same situation
          with if you can ntpq -crv -pn

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yes I had assumed it was using the GPS only for PPS. I was never sure why though since the GPS always looks like a good source.

            Still looks good now though apart from the offset. Not 100% sure what is offset from what though. Or why it doesn't correct if everything is showing an offset. 🤔

            1 Reply Last reply Reply Quote 0
            • kiokomanK
              kiokoman LAYER 8
              last edited by

              i had that problem on my raspberry pi with the gps hat, i solved it forcing my gps to send only $GPMRC and set the driver with server 127.127.20.0 mode 17 where 16 is for 9600bps and +1 for process $GPMRC only plus fudge 127.127.20.0 flag1 1 for the pps

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Mmm, I'm using only GPGGA:

                		<gps>
                			<type>MediaTek</type>
                			<speed>16</speed>
                			<nmea>2</nmea>
                			<extstatus>yes</extstatus>
                			<autocorrect_initcmd>yes</autocorrect_initcmd>
                			<initcmd>JFBNVEsyMjUsMCoyQg0KJFBNVEszMTQsMCwwLDAsMSwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCoyOQ0KJFBNVEszMDEsMioyRQ0KJFBNVEszMjAsMCoyRg0KJFBNVEszMzAsMCoyRQ0KJFBNVEszODYsMCoyMw0KJFBNVEszOTcsMCoyMw0KJFBNVEsyNTEsOTYwMCoxNw0K</initcmd>
                			<nmeaset>
                				<gpgga>1</gpgga>
                			</nmeaset>
                			<port>cuau2</port>
                			<fudge2>0.51</fudge2>
                			<flag2>yes</flag2>
                			<flag1>yes</flag1>
                			<flag3>yes</flag3>
                			<gpsminpoll></gpsminpoll>
                			<gpsmaxpoll></gpsmaxpoll>
                			<fudge1>0.003</fudge1>
                		</gps>
                
                1 Reply Last reply Reply Quote 0
                • kiokomanK
                  kiokoman LAYER 8
                  last edited by kiokoman

                  yes but your gps is sending out all the sentences, maybe?
                  i have this on my /etc/rc.local

                  /bin/echo -e '$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n' > /dev/ttyAMA0 #diable all except GPMRC
                  

                  but this is specific for my gps chip

                  so the output from my gps is like this

                  pi@raspberrypi:~ $ cat /dev/gps0
                  $GPRMC,204531.000,A,4520.6621,N,01147.2135,E,0.10,327.93,171219,,,A*69
                  $GPRMC,204532.000,A,4520.6622,N,01147.2135,E,0.18,330.45,171219,,,A*6C
                  $GPRMC,204533.000,A,4520.6622,N,01147.2135,E,0.30,335.70,171219,,,A*64
                  $GPRMC,204534.000,A,4520.6623,N,01147.2134,E,0.26,347.73,171219,,,A*62
                  

                  there are probably other way to solve the problem, i think it's only a question of adjusting the timing between the pps and when your $GPGGA is "printed" on the serial port

                  with fudge 127.127.20.0 flag1 1 time1 -0.00300644 time2 0.470 refid GPS

                  i don't remember right now but i think that

                  tos mindist 0.100
                  

                  helped also

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  Please do not use chat/PM to ask for help
                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Mmm, nope it really is just sending GPGGA. That did help as otherwise it varies what is output making it impossible to tune pretty much. Also the location data is disturbingly accurate. 😉
                    Have to play with this more when I have time.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • kiokomanK
                      kiokoman LAYER 8
                      last edited by

                      yeah, have fun with that when you have the time 😃

                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                      Please do not use chat/PM to ask for help
                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Those micro-seconds all add up. 😁

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.