GPSD does not start on boot

Home Forums General GPSD does not start on boot

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26041
    Stelios Pa
    Participant

    Hi,

    thanks again for the great support team you have, it really matters on a great product, a great support team.

    I’m currently using 1.6.0-RC1 AEP firmware on MTCDT-LEU1-266A and I’m trying to fetch GPS information. I had no luck with 1.4.17 version too.

    From the GUI, I have not changed anything, I haven’t enabled neither server or client mode.

    When i SSH in the device and try ps aux | grep gps I can se only
    admin 2747 0.0 0.3 24728 884 ? Ssl 17:06 0:00 /sbin/mtsgps --en2-load --daemonize --device /dev/ttyXRUSB2

    After manually running /etc/init.d/gpsd start I can see

    
    Starting GPS (Global Positioning System) daemon gpsd
    gpsctl:ERROR: /dev/ttyXRUSB2 already opened by another process
    gpsctl:ERROR: initial GPS device /dev/ttyXRUSB2 open failed
    Expect a timeout error here. Need this error.
    gpsctl:ERROR: /dev/ttyXRUSB2 already opened by another process
    gpsctl:ERROR: initial GPS device /dev/ttyXRUSB2 open failed
    

    and with ps

    admin     2747  0.0  0.3  24728   884 ?        Ssl  17:06   0:00 /sbin/mtsgps --en2-load --daemonize --device /dev/ttyXRUSB2
    nobody    7460  0.0  0.5  13580  1512 ?        S<sl 17:19   0:00 /usr/sbin/gpsd -n -D 1 -F /var/run/gpsd.sock -P /var/run/gpsd.pid /dev/ttyXRUSB2 /dev/pps0
    admin     7594  0.0  0.4   2676  1028 ?        S<   17:19   0:00 /bin/bash /usr/sbin/gpsd_ubx_settime
    admin     7595  0.0  0.4   2696  1076 ?        S<   17:19   0:00 /bin/bash /usr/sbin/gpsd_ubx_fixed
    admin     7598  0.0  0.2   2696   584 ?        S<   17:19   0:00 /bin/bash /usr/sbin/gpsd_ubx_fixed
    admin     7599  0.0  0.4   4340  1152 ?        S<   17:19   0:00 gpsmon -a
    admin     7600  0.0  0.1   2696   496 ?        S<   17:19   0:00 /bin/bash /usr/sbin/gpsd_ubx_fixed

    my /etc/default/gpsd configuration file is the original one

    
    ENABLED="yes"
    GPSD_SOCKET="/var/run/gpsd.sock"
    GPSD_OPTIONS="-n -D 1"
    
    # Conduit 0.1 GPS devices
    GPS_LINE=/dev/ttyXRUSB2
    
    # Highest speed permitted by uBlox.
    GPS_BAUD=115200
    GPS_DEVICES="$GPS_LINE /dev/pps0"
    
    GPS_FIXFILE=/var/run/gpsfix
    
    # GPSD/UBlox Lock requiremnt
    # Create GPS_FIXFILE when reached.
    # UBlox NAV SOL (0x01 0x06) at gpsFix value
    # and above
    # 00 No Fix
    # 01 Dead reckoning only
    # 02 2D fix
    # 03 3D fix
    # 04 GPS + dead reckoning combined
    # 05 Time only fix
    GPSFIX="03 05"
    

    should gpsd autostart by default or /sbin/mtsgps correctly replace it ?

    After killing /sbin/mtsgps and restarting gpsd, it seems to have better luck and now I can use gpsmon and cgps but with “No FIX”

    /var/log/messages
    
    2018-08-14T17:51:54.552131+03:00 mtcdt admin: Problem with the GPS fix.  The fix is an even value, "4", and should be an odd value.  fixOK=0
    2018-08-14T17:51:54.581878+03:00 mtcdt admin: GPS does not have a fix yet.  Try again later.
    

    Also tried http://www.multitech.net/developer/software/mlinux/using-mlinux/gpsgnss-on-conduit/

    #26043
    Jeff Hatch
    Keymaster

    Stelios,

    Try doing “/etc/init.d/mts-gps stop” before starting gpsd. If that fixes the problem, then the mts-gps daemon needs to be disabled before gpsd will start.

    Jeff

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.