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

    NTP GPS Settings : serial port speed.

    Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
    12 Posts 3 Posters 1.3k 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.
    • N
      n8it
      last edited by

      Running 2.5.0.a.20200408.1312. The serial port speed is always 4800 for all available port speed settings. Setting the speed to 9600 results in a correct /cf/conf/config.xml file.

      		<gps>
      			<type>Custom</type>
      			<nmea>1</nmea>
      			<flag1>yes</flag1>
      			<flag3>yes</flag3>
      			<extstatus>yes</extstatus>
      			<initcmd>JFBVQlgsNDAsR0dBLDEsMSwxLDEsMCwwKjVBDQokUFVCWCw0MCxHTEwsMSwxLDEsMSwwLDAqNUMNCiRQVUJYLDQwLEdTQSwwLDAsMCwwLDAsMCo0RQ0KJFBVQlgsNDAsR1NWLDAsMCwwLDAsMCwwKjU5DQokUFVCWCw0MCxSTUMsMCwxLDAsMCwwLDAqNDYNCiRQVUJYLDQwLFZURywwLDAsMCwwLDAsMCo1RQ0KJFBVQlgsNDAsR1JTLDAsMCwwLDAsMCwwKjVEDQokUFVCWCw0MCxHU1QsMCwwLDAsMCwwLDAqNUINCiRQVUJYLDQwLFpEQSwxLDEsMSwxLDAsMCo0NA0KJFBVQlgsNDAsR0JTLDAsMCwwLDAsMCwwKjREDQokUFVCWCw0MCxEVE0sMCwwLDAsMCwwLDAqNDYNCiRQVUJYLDQwLEdQUSwwLDAsMCwwLDAsMCo1RA0KJFBVQlgsNDAsVFhULDAsMCwwLDAsMCwwKjQzDQokUFVCWCw0MCxUSFMsMCwwLDAsMCwwLDAqNTQNCiRQVUJYLDQxLDEsMDAwNywwMDAzLDk2MDAsMCoxMA0K</initcmd>
      			<nmeaset>
      				<GPGGA>1</GPGGA>
      				<GPGLL>1</GPGLL>
      				<GPRMC>1</GPRMC>
      				<GPZDA>1</GPZDA>
      			</nmeaset>
      			<gpsminpoll></gpsminpoll>
      			<gpsmaxpoll></gpsmaxpoll>
      			<port>cuau1</port>
      			<speed>16</speed>
      			<fudge2>0.200</fudge2>
      		</gps>
      

      After saving the configuration which restarts NTP, the NTP log file shows " GPS_NMEA(0) serial /dev/gps0 open at 4800 bps " When NTP is stopped, the serial port shows it is set to 9600, but when NTP is running, the serial shows it is set to 4800 and locked.

      n8it

      1 Reply Last reply Reply Quote 1
      • N
        n8it
        last edited by

        I booted 2.5.0.a.20200214.1446 and the GPS serial port speed settings all work. I then restored my config from 2.5.0.a.20200408.1312 and that config worked fine also.

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

          i have also took a look at the generated ntpd.conf, and it was ok, on my pfsense 2.5.0 ntpd is launched with mode 16 (9600 bps),
          your init command was also good,
          $PUBX,41,1,0007,0003,9600,0*10

          maybe it needed a reboot

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          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
          • N
            n8it
            last edited by

            Many reboots and system halts this week and all had no effect.

            1 Reply Last reply Reply Quote 1
            • N
              n8it
              last edited by

              I took my current running 2.5.0.a.20200214.1446 version that could change serial speeds and change the NEMA sentences and updated to the latest 2.5.0.a.20200409.0657 version. Now the serial port always runs at 4800 and the NEMA sentences will not change either.

              viktor_gV 1 Reply Last reply Reply Quote 1
              • viktor_gV
                viktor_g Netgate @n8it
                last edited by

                @n8it said in NTP GPS Settings : serial port speed.:

                I took my current running 2.5.0.a.20200214.1446 version that could change serial speeds and change the NEMA sentences and updated to the latest 2.5.0.a.20200409.0657 version. Now the serial port always runs at 4800 and the NEMA sentences will not change either.

                Please show gps config part

                1 Reply Last reply Reply Quote 0
                • N
                  n8it
                  last edited by

                  I get the message "Post content was flagged as spam by Akismet.com" when I tried to reply with the gps config.

                  1 Reply Last reply Reply Quote 1
                  • N
                    n8it
                    last edited by

                    The config file is being updated, but the port speed is not changed from 4800 baud with 2.5.0.a.20200415.0942. All works fine with 2.5.0.a.20200212.1057. If someone can provide the link to the pfsense release right before and after the last NTP update I will try those.

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

                      @n8it
                      try again to post the ntpd config, you should be able to now

                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                      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
                      • kiokomanK
                        kiokoman LAYER 8
                        last edited by kiokoman

                        it is like you said, i can't change speed on my 2.5.0, it revert back to 4800.
                        @viktor_g
                        $gpsbaud is always reporting 4800 for me on system.inc
                        also the gui revert back to 4800 even if i set the speed to 9600

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        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
                        • viktor_gV
                          viktor_g Netgate
                          last edited by

                          Fix: https://redmine.pfsense.org/issues/7284#note-5

                          You can apply patch or wait for the new 2.5 build

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

                            you are too fast man 😂
                            it work 💪

                            [2.5.0-DEVELOPMENT][root@pfSense.kiokoman.home]/dev: stty -f gps0
                            speed 9600 baud;
                            

                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                            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
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.