NTP GPS Settings : serial port speed.



  • 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



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


  • LAYER 8

    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



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



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


  • Global Moderator

    @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



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



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


  • LAYER 8

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


  • LAYER 8

    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


  • Global Moderator

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

    You can apply patch or wait for the new 2.5 build


  • LAYER 8

    you are too fast man 😂
    it work 💪

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

Log in to reply